source: SHX/trunk/src/sandbox/tabs.py @ 15

Revision 15, 561 bytes checked in by marcus, 15 years ago (diff)
  • tabs example
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Rev Id Date
Line 
1# $Id$ $Rev$
2
3import wx, wx.aui
4
5class MyFrame(wx.Frame):
6    def __init__(self, parent):
7        wx.Frame.__init__(self, parent)
8
9        commandNB = wx.aui.AuiNotebook(self)
10        scriptP = wx.Panel(commandNB)
11        settingsP = wx.Panel(commandNB)
12        wx.Button(settingsP)
13
14        commandNB.AddPage(scriptP, "script")
15        commandNB.AddPage(settingsP, "settings")
16
17class MyApp(wx.App):
18    def OnInit(self):
19        frame = MyFrame(None)
20        frame.Show(True)
21        self.SetTopWindow(frame)
22        return True
23
24app = MyApp(0)
25app.MainLoop()
Note: See TracBrowser for help on using the repository browser.