X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..3fbcc7fce5cb170b1a7cbc9c22299e44152cb1f7:/wxPython/demo/wxNotebook.py?ds=inline diff --git a/wxPython/demo/wxNotebook.py b/wxPython/demo/wxNotebook.py index 00d2f5b9d0..745b40c13c 100644 --- a/wxPython/demo/wxNotebook.py +++ b/wxPython/demo/wxNotebook.py @@ -6,6 +6,8 @@ import GridSimple import wxListCtrl import wxScrolledWindow +import sys + #---------------------------------------------------------------------------- class TestNB(wxNotebook): @@ -85,3 +87,14 @@ This class represents a notebook control, which manages multiple windows with as To use the class, create a wxNotebook object and call AddPage or InsertPage, passing a window to be used as the page. Do not explicitly delete the window for a page that is currently managed by wxNotebook. """ + + +if __name__ == "__main__": + app = wxPySimpleApp() + frame = wxFrame(None, -1, "Test Notebook", size=(600, 400)) + win = TestNB(frame, -1, sys.stdout) + frame.Show(true) + app.MainLoop() + + +