python - Kivy: 'NoneType' object has no attribute 'bind' -


i testing out actionbar widget of kivy, here program -

 kivy.app import app  kivy.lang import builder  kivy.uix.boxlayout import boxlayout   builder.load_string('''  <rootwidget>:       actionbar:           pos_hint: {'top':1}       actionview:           actionbutton:               text: "button" ''')   class rootwidget(boxlayout):      pass  class mainapp(app):      def build(self):          return rootwidget()  if __name__ == "__main__":      mainapp().run() 

nothing going on here, added actionbar inside boxlayout.
here traceback getting on executing program.

try sth this:

 <rootwidget>:       actionbar:           pos_hint: {'top':1}           actionprevious:           actionview:               actionbutton:                   text: "button" 

in case actionview treated child of rootwidget , notice actionprevious .


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -