def OnInit(self):
     # wx.InitAllImageHandlers()
     self.connected = False
     self.settings = settings.settings()
     # Crée la frame principale
     self.frame = frame.frame(None, self, App.title)
     self.frame.Show(True)
     self.SetTopWindow(self.frame)
     self.score = frame_score.frame_score(self.frame)
     self.score.Show(False)
     self.son = son.son()
     self.tour_on = False
     self.t1 = wx.Timer(self)
     self.reliquat = reliquat.reliquat()
     self.onExit = False
     # Appelle la frame de connexion au début
     d = dlgconn.dlgconnframe(self)
     d.ShowModal()
     if not d.nick:
         return False
     self.nick = d.nick
     self.host = d.host
     self.port = d.port
     self.lance_net()
     return True
示例#2
0
 def OnInit(self) :
     # wx.InitAllImageHandlers()
     self.connected = False
     self.settings = settings.settings()
     # Crée la frame principale
     self.frame = frame.frame(None, self, App.title)
     self.frame.Show(True)
     self.SetTopWindow(self.frame)
     self.score = frame_score.frame_score(self.frame)
     self.score.Show(False)
     self.son = son.son()
     self.tour_on = False
     self.t1 = wx.Timer(self)
     # Appelle la frame de connexion au début
     self.d = dlgconn.dlgconnframe(self.frame, self)
     self.d.Show()
     self.d.MakeModal(True)
     self.reliquat = reliquat.reliquat()
     self.onExit = False
     return True
 def traite_score(self, m):
     self.score.Destroy()
     self.score = frame_score.frame_score(self.frame, m.param)
     if not self.tour_on:
         self.score.Show(True)
示例#4
0
 def traite_score(self, m) :
     self.score.Destroy()
     self.score = frame_score.frame_score(self.frame, m.param)
     if not self.tour_on :
         self.score.Show(True)