]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/demo/About.py
forgot to add the image with binary flags
[wxWidgets.git] / utils / wxPython / demo / About.py
1
2 from wxPython.wx import *
3 from wxPython.html import *
4 import wxPython.lib.wxpTag
5
6 #---------------------------------------------------------------------------
7
8 class MyAboutBox(wxDialog):
9 text = '''
10 <html>
11 <body bgcolor="#AC76DE">
12 <center><table bgcolor="#458154" width="100%%" cellspacing="0"
13 cellpadding="0" border="1">
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
20 encapsulates the wxWindows GUI classes.</p>
21
22 <p>This demo shows off some of the capabilities
23 of <b>wxPython</b>. Select items from the menu or tree control,
24 sit back and enjoy. Be sure to take a peek at the source code for each
25 demo 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>
28 <b>Total Control Software</b>, Copyright (c) 1997-1999.</p>
29
30 <p>
31 <font size="-1">Please see <i>license.txt</i> for licensing information.</font>
32 </p>
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):
43 wxDialog.__init__(self, parent, -1, 'About the wxPython demo',
44 size=wxSize(420, 380))
45 self.html = wxHtmlWindow(self, -1)
46 self.html.SetPage(self.text % wx.__version__)
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()
55
56 self.CentreOnParent(wxBOTH)
57
58 #---------------------------------------------------------------------------
59
60
61
62
63
64