def OnInit(self): ClientCenter.__init__(self) self.config = {} # = { 'uin' : 'psyc://blah/~user', 'foo': 'bar'} self.config[u'uni'] = u'psyc://ve.symlynx.com/~betatim3' self.config[u'password'] = u'tim' self.config[u'action'] = u'brabbel' self.config[u'bgcolour'] = (255, 236, 191) self.config[u'fontcolour'] = (34, 63, 92) self.config[u'fontsize'] = 8 self.config[u'prompt'] = u'* ' print sys.getdefaultencoding() print os.name #print self.config self.frame = wxPFrame(logic_parent=self) # nen frame um die tabs aufzuheben self.client = PClient(self.config['uni'], self) self.create_server_place(netLocation(self.config['uni'])) # eignetlich is es kein place aber naja self.default_connection = netLocation(self.config['uni']) self.client.online() self.client.create_display(self) self.SetTopWindow(self.client.display) self.client.display.Show() self.timer = wxPyTimer(self.socket_check) self.timer.Start(100) # alle 100 ms return True
def sendmsg(self, vars, mc, data, caller = None): print_psyc(vars, mc, data, 'center sending') ClientCenter.sendmsg(self, vars, mc, data, caller)