AttributeError: 'super' object has no attribute '__getattr__'2

I am getting attribute error

File "kivy\properties.pyx", line 863, in kivy.properties.ObservableDict.getattr AttributeError: 'super' object has no attribute 'getattr'

please advise.

Screen_helper = """


ScreenManager:
        
    MenuScreen:
    ProfileScreen:
    UploadScreen:
        
<MenuScreen>:
    name: 'menu'
    MDToolbar:
        title: 'LPS' 
         
    MDRectangleFlatButton:
        text:'Profile'
        pos_hint: {'center_x':0.5,'center_y':0.6}
        on_press: root.manager.current = 'profile'
        
    MDRectangleFlatButton:
        text:'Upload'
        pos_hint: {'center_x':0.5,'center_y':0.3}
        on_press: root.manager.current = 'upload'     
    Label:
        id: lbl9
        font_size: 150
        text: 'Temp Test'

''' ####################################################################### class MenuScreen(Screen):

    def __init__(self, **kwargs):
        super(MenuScreen, self).__init__(**kwargs)
        self.thetemp = None
        Clock.schedule_interval(self.getTheTemp, 1)

    def getTheTemp(self,dt):
        thetemp = GlobalShared.lifeword(ModbusTcpClient('127.0.0.1', 502))
        self.ids.lbl9.text = str(thetemp)
        print(thetemp)

above code i have pasted. please check and make comment to improve

0 ответов

Другие вопросы по тегам