Fixed some demos

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-10-21 03:44:47 +00:00
parent 729f427637
commit dfef5d5165
4 changed files with 16 additions and 3 deletions

View File

@@ -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()