-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」分配在哪裏? –