Toggle Navigation
Hatchery
Eggs
Test
__init__.py
Login
Register
__init__.py
Content
import badge, ugfx, system def action_exit(pushed): if (pushed): # go back to the home screen system.home() def show_program(location, pushed, font='Roboto_Regular12', color=ugfx.BLACK): if location == 1: nextEventPlace = 'THEATER: 11:10' nextEventTitle = 'GANs and Roses' nextEventTitle2 = 'Weaponizing the CEO Scam Fraud' if location == 2: nextEventPlace = 'DOME: 11:10' nextEventTitle = 'WHOAMI /PRIV' nextEventTitle2 = 'Show Me Your Privileges' if pushed: ugfx.string(0, 0, nextEventPlace, font, color) ugfx.string(0, 20, nextEventTitle, font, color) ugfx.string(0, 40, nextEventTitle2, font, color) ugfx.flush() ugfx.input_init() badge.init() ugfx.input_attach(ugfx.BTN_B, action_exit) ugfx.input_attach(ugfx.JOY_UP, lambda pressed: show_program(1, pressed)) ugfx.input_attach(ugfx.JOY_UP, lambda pressed: show_program(2, pressed)) while True: pass