def OnPopupOne(self, event): #print(event,event.GetId()) pmid = event.GetId() a = pro.DoProgram(self.MnuDic[pmid][1], 'A') s = a.size() if 'size' in dir(a) else () win1 = wx.Frame(self, -1) win1.SetSize(s) a.main(win1)
def Okey(self, event): import GUI.proman as pro a = pro.DoProgram(1001) #print dir(a) s = a.size() if 'size' in dir(a) else () win1 = wx.Frame(self, -1) win1.SetSize(s) a.main(win1)
def OnMenu(self, event): self.mid = event.GetId() #print self.mid a = pro.DoProgram(self.mid) #print dir(a) s = a.size() if 'size' in dir(a) else () win1 = wx.Frame(self, -1) win1.SetSize(s) a.main(win1)
def OnTool(self, event): self.tid = event.GetId() #print( self.tid ) a = pro.DoProgram(self.tid, 'T') # print dir(a) s = a.size() if 'size' in dir(a) else () win1 = wx.Frame(self, -1) win1.SetSize(s) a.main(win1)
def OnMenu(self, event): self.mid = event.GetId() #print self.mid if self.mid == 107: #q = self.GetParent() #q.Close() self.Close() else: a = pro.DoProgram(self.mid) s = a.size() if 'size' in dir(a) else () win1 = wx.Frame(self, -1) win1.SetSize(s) a.main(win1)