]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/NewNamespace.py
Moved @interface wxNSApplicationDelegate to new header
[wxWidgets.git] / wxPython / demo / NewNamespace.py
CommitLineData
1fded56b
RD
1
2import wx # This module uses the new wx namespace
3from wx import html
4from Main import opj
5
6#----------------------------------------------------------------------
7
8class TestPanel(wx.Panel):
9 def __init__(self, parent, log):
10 self.log = log
11 wx.Panel.__init__(self, parent, -1)
12
13 hwin = html.HtmlWindow(self, -1)
14 hwin.LoadFile(opj('data/wxPackage.html'))
15
16 sizer = wx.BoxSizer(wx.VERTICAL)
17 sizer.Add(hwin, 1, wx.EXPAND)
18
19 self.SetSizer(sizer)
20
21
22#----------------------------------------------------------------------
23
24def runTest(frame, nb, log):
25 win = TestPanel(nb, log)
26 return win
27
28#----------------------------------------------------------------------
29
30
31
32overview = """<html><body>
33<h2><center>Using the New Namespace</center></h2>
34
35This sample isn't really a demo, but rather a place to display the
36introductory doc for using the new namespace.
37
38</body></html>
39"""
40
41
42
43if __name__ == '__main__':
44 import sys,os
45 import run
46 run.main(['', os.path.basename(sys.argv[0])])
47