Revision 15,
561 bytes
checked in by marcus, 15 years ago
(diff) |
|
-
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 | |
---|
3 | import wx, wx.aui |
---|
4 | |
---|
5 | class 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 | |
---|
17 | class MyApp(wx.App): |
---|
18 | def OnInit(self): |
---|
19 | frame = MyFrame(None) |
---|
20 | frame.Show(True) |
---|
21 | self.SetTopWindow(frame) |
---|
22 | return True |
---|
23 | |
---|
24 | app = MyApp(0) |
---|
25 | app.MainLoop() |
---|
Note: See
TracBrowser
for help on using the repository browser.