-def runTest(frame, nb, log):
-
- testWin = wxNotebook(nb, -1)
-
- win = ColorPanel.ColoredPanel(testWin, wxBLUE)
- testWin.AddPage(win, "Blue")
- st = wxStaticText(win, -1,
- "You can put nearly any type of window here!",
- wxPoint(10, 10))
- st.SetForegroundColour(wxWHITE)
- st.SetBackgroundColour(wxBLUE)
-
- win = ColorPanel.ColoredPanel(testWin, wxRED)
- testWin.AddPage(win, "Red")
+class TestNB(wxNotebook):
+ def __init__(self, parent, id, log):
+ wxNotebook.__init__(self, parent, id, style=wxNB_BOTTOM)
+ self.log = log