wxpython tab标签式 gui实现方法,wxpythongui,import wxcla
文章由Byrx.net分享于2019-03-23 09:03:34
wxpython tab标签式 gui实现方法,wxpythongui,import wxcla
import wxclass cjlists(wx.Panel): def __init__(self,parent): wx.Panel.__init__(self, parent) wx.StaticText(self,label='Absolute Positioning1') passclass cjview(wx.Panel): def __init__(self,parent): wx.Panel.__init__(self, parent) wx.StaticText(self,label='Page Two2') passclass cjsave(wx.Panel): def __init__(self,parent): wx.Panel.__init__(self, parent) wx.StaticText(self,label='Page Three3') passif __name__ == '__main__': app = wx.App(False) frame = wx.Frame(None, title="Demo with Notebook") nb = wx.Notebook(frame) nb.AddPage(cjlists(nb), "Absolute Positioning") nb.AddPage(cjview(nb), "Page Two") nb.AddPage(cjsave(nb), "Page Three") frame.Show() app.MainLoop() pass#该片段来自于http://byrx.net
评论关闭