def OnHumanMan(self, event): if self.humanManFrame_count < 1: self.humanManFrame_count += 1 data = self.human_init() self.humanManFrame = humanman.create(self, self.cntx, data) self.humanManFrame.Maximize() self.humanManFrame.Show()
def __init__(self): wx.MDIParentFrame.__init__(self, parent=None, id=-1, title=u'吉星管理系统',size=(800,600),style=wx.DEFAULT_FRAME_STYLE) self.count = 0 self.ptypeman_count = 0 self.humanManFrame_count = 0 #self.cntx=r"dbname='gstar' user='******' host='192.168.1.200' password='******' port=5432" #self.cntx=r"dbname='gstar' user='******' host='localhost' password='******' port=5432" self.cntx=r"dbname='gstar' user='******' host='localhost' password='******' port=5432" self.m_createMenu() self.humanManFrame_count += 1 data = self.human_init() self.humanManFrame = humanman.create(self, self.cntx, data) self.humanManFrame.Maximize() self.humanManFrame.Show()