May-31-2018, 05:18 PM
The examples of the module are not very comprehensive. I see that an instance of the main class is passed to Menu as a parameter.
I see that you are trying something that I was in about to propose before I hit accidentally Back button of my browser and lost the whole post
Pass the instance to the Menu, not the class itself.
I see that you are trying something that I was in about to propose before I hit accidentally Back button of my browser and lost the whole post
Pass the instance to the Menu, not the class itself.
menu = Menu( structure={ 'Power Options': { 'Reboot':GraphSysReboot(), 'Shutdown':GraphSysShutdown(), }, 'Aquarium': { 'Lighting': { 'Control': { 'On': LC, } } }, 'Clock': Clock(backlight), 'Status': { 'IP': IPAddress(), 'CPU': GraphCPU(backlight), 'Temp': GraphTemp() }, 'Settings': { 'Display': { 'Contrast': Contrast(lcd), 'Backlight': Backlight(backlight) } } }, lcd=lcd, idle_handler=LC, # here is the change. idle_timeout=30, input_handler=Text())