-4
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'对象没有属性'current'。请帮忙。AttributeError:'NoneType'对象没有'current'属性
这个错误ocurr在哪里?我没有看到'current'被调用 –
@劳伦斯本森请立即检查。 –
“self.parent”分配在哪里? –