]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/demo/About.py
Added some test code...
[wxWidgets.git] / utils / wxPython / demo / About.py
CommitLineData
e166644c
RD
1
2from wxPython.wx import *
3from wxPython.html import *
4import wxPython.lib.wxpTag
5
6#---------------------------------------------------------------------------
7
8class MyAboutBox(wxDialog):
9 text = '''
10<html>
11<body bgcolor="#AC76DE">
2f90df85
RD
12<center><table bgcolor="#458154" width="100%%" cellspacing="0"
13cellpadding="0" border="1">
e166644c
RD
14<tr>
15 <td align="center"><h1>wxPython %s</h1></td>
16</tr>
17</table>
18
19<p><b>wxPython</b> is a Python extension module that
20encapsulates the wxWindows GUI classes.</p>
21
22<p>This demo shows off some of the capabilities
23of <b>wxPython</b>. Select items from the menu or tree control,
24sit back and enjoy. Be sure to take a peek at the source code for each
25demo item so you can learn how to use the classes yourself.</p>
26
27<p><b>wxPython</b> is brought to you by <b>Robin Dunn</b> and<br>
2f90df85 28<b>Total Control Software</b>, Copyright (c) 1997-1999.</p>
e166644c 29
2f90df85
RD
30<p>
31<font size="-1">Please see <i>license.txt</i> for licensing information.</font>
32</p>
e166644c
RD
33
34<p><wxp class="wxButton">
35 <param name="label" value="Okay">
36 <param name="id" value="wxID_OK">
37</wxp></p>
38</center>
39</body>
40</html>
41'''
42 def __init__(self, parent):
2f90df85
RD
43 wxDialog.__init__(self, parent, -1, 'About the wxPython demo',
44 size=wxSize(420, 380))
45 self.html = wxHtmlWindow(self, -1)
e166644c 46 self.html.SetPage(self.text % wx.__version__)
2f90df85
RD
47 self.SetAutoLayout(true)
48 lc = wxLayoutConstraints()
49 lc.top.SameAs(self, wxTop, 5)
50 lc.left.SameAs(self, wxLeft, 5)
51 lc.bottom.SameAs(self, wxBottom, 5)
52 lc.right.SameAs(self, wxRight, 5)
53 self.html.SetConstraints(lc)
54 self.Layout()
e166644c 55
2f90df85 56 self.CentreOnParent(wxBOTH)
e166644c
RD
57
58#---------------------------------------------------------------------------
2f90df85
RD
59
60
61
62
63
64