def enterInit(self): ''' init of main/global structures ''' self.screen = Screen() if ConfigVariableBool('stats').getValue(): self.update_gaming=pstat(self.update_gaming) PStatClient.connect() taskMgr.add(self.update, 'GameClient.update') self.acceptOnce('escape',self.demand,extraArgs=['Quit']) self.demand('Intro')
def __init__(self,*args,**kwargs): kwargs['layout']=VLayout Frame.__init__(self,*args,**kwargs) self.process_server_input=pstat(self.process_server_input) #to be set as soon as a connection is done with the server self.pid=None