]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/NewNamespace.py
2 import wx
# This module uses the new wx namespace
6 #----------------------------------------------------------------------
8 class TestPanel(wx
.Panel
):
9 def __init__(self
, parent
, log
):
11 wx
.Panel
.__init
__(self
, parent
, -1)
13 hwin
= html
.HtmlWindow(self
, -1)
14 hwin
.LoadFile(opj('data/wxPackage.html'))
16 sizer
= wx
.BoxSizer(wx
.VERTICAL
)
17 sizer
.Add(hwin
, 1, wx
.EXPAND
)
22 #----------------------------------------------------------------------
24 def runTest(frame
, nb
, log
):
25 win
= TestPanel(nb
, log
)
28 #----------------------------------------------------------------------
32 overview
= """<html><body>
33 <h2><center>Using the New Namespace</center></h2>
35 This sample isn't really a demo, but rather a place to display the
36 introductory doc for using the new namespace.
43 if __name__
== '__main__':
46 run
.main(['', os
.path
.basename(sys
.argv
[0])])