def show(): init() common.subscreen_event_handler = event_handler common.subscreen_timer_handler = timer_tick common.draw_background() common.pguapp.init(t, common.screen)
def show(): init() global input_user input_user = pgui.Input(value=config.cp.get('auth', 'canonical_name')) common.draw_background() common.pguapp.init(t, common.screen)
def show(): init() global input_nick nick = config.cp.get('multiplayer', 'last_nick') if nick == '': nick = config.cp.get('auth', 'canonical_name') input_nick.value = nick common.draw_background() common.pguapp.init(t, common.screen)
def handle_event(ev): if(ev.type != pygame.MOUSEMOTION): return global last_mpos if last_mpos: pos_diff = [b - a for a,b in zip(ev.pos, last_mpos)] common.scroll_background(*pos_diff) common.draw_background() backbtn.repaint() last_mpos = ev.pos
def show(): init() common.draw_background() common.pguapp.init(t, common.screen)
def show(): init() common.subscreen_event_handler = handle_event common.draw_background() common.pguapp.init(t, common.screen)