]>
Commit | Line | Data |
---|---|---|
1fded56b RD |
1 | |
2 | import wx # This module uses the new wx namespace | |
3 | from wx import html | |
4 | from Main import opj | |
5 | ||
6 | #---------------------------------------------------------------------- | |
7 | ||
8 | class 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 | ||
24 | def runTest(frame, nb, log): | |
25 | win = TestPanel(nb, log) | |
26 | return win | |
27 | ||
28 | #---------------------------------------------------------------------- | |
29 | ||
30 | ||
31 | ||
32 | overview = """<html><body> | |
33 | <h2><center>Using the New Namespace</center></h2> | |
34 | ||
35 | This sample isn't really a demo, but rather a place to display the | |
36 | introductory doc for using the new namespace. | |
37 | ||
38 | </body></html> | |
39 | """ | |
40 | ||
41 | ||
42 | ||
43 | if __name__ == '__main__': | |
44 | import sys,os | |
45 | import run | |
46 | run.main(['', os.path.basename(sys.argv[0])]) | |
47 |