#coding=utf-8importsqlite3 as liteimportwx,os,sys,stringimportwx.lib.buttonsimportwx.lib.buttons as buttonsimportosfromwxPython.wximport*#界面############################主页############################################classInFrame(wx.Frame):def__init__(self, parent, id):
wx.Frame.__init__(self, parent, id,'人机交互检索界面'.decode('utf-8')
,size=(800,730))
panel=wx.Panel(self)
self.tb=TestTB(panel,id)
self.tb.Bind(wx.EVT_TOOLBOOK_PAGE_CHANGED, self.OnPageChanged)
。
。
。###########################使用说明######################################classPageOne(wx.Panel):def__init__(self, parent):
wx.Panel.__init__(self, parent)
panel=wx.Panel(self)
colour=[(255,255,255),(153,204,255),(151,253,225),]
。
。
。############################查看结果#####################################classPageThree(wx.Panel):def__init__(self, parent):
wx.Panel.__init__(self, parent)
self.toolkit=parentglobalflag1
panel=wx.Panel(self)
self.Bind(wx.EVT_PAINT, self.Paint1)
colour=[(255,255,204),(255,204,255),(255,255,255),(0,123,167)]
self.SetBackgroundColour(colour[2])
。
。
。############################选择检索######################################classPageTwo(wx.Panel):#在PageTwo中设置全局变量以便于进行结果输出中新生成的按钮进行清空处理。flag=0def__init__(self, parent,page3):
wx.Panel.__init__(self, parent)
self.toolkit=parent
panel=wx.Panel(self)if__name__=='__main__':
app=wx.PySimpleApp()
frame=InFrame(parent=None, id=-1)
frame.Show()
app.MainLoop()