class LoginScreen(Screen):
def __init__(self,**kwargs):
super(LoginScreen, self).__init__(**kwargs)
print self,self.parent.current
class AppScreenManager(ScreenManager):
pass
#Base Class
class AppBaseClass(App):
def build(self):
icon='app_icon'
return Builder.load_file('appbase.kv')
________________________________________________________________________________________________
AppScreenManager:
transition: FadeTransition()
LoginScreen:
错误:AttributeError:“NoneType”对象没有“当前”属性。请帮忙。