May-31-2018, 06:59 AM
Try to change
Lightcontrol(MenuOption)
to Lightcontrol()
menu = Menu( structure={ 'Power Options': { 'Reboot':GraphSysReboot(), 'Shutdown':GraphSysShutdown(), }, 'Aquarium': { 'Lighting': { 'Control': Lightcontrol(), # here } }, 'Clock': Clock(backlight), 'Status': { 'IP': IPAddress(), 'CPU': GraphCPU(backlight), 'Temp': GraphTemp() }, 'Settings': { 'Display': { 'Contrast': Contrast(lcd), 'Backlight': Backlight(backlight) } } }, lcd=lcd, idle_timeout=30, input_handler=Text())You don't have to pass the parent class when you initialise the child.