X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..f9ee64b1356530b7f5c957d250d2a1dcbef60f60:/wxPython/demo/wxNotebook.py 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() + + +