Exemple #1
0
 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)
Exemple #2
0
    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)
Exemple #3
0
    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)
Exemple #4
0
    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)
Exemple #5
0
 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)