]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/demo/About.py
cde5f33c4b296ec524e608324254cdd8a8f27ace
[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" cellpadding="0" border="1">
13 <tr>
14 <td align="center"><h1>wxPython %s</h1></td>
15 </tr>
16 </table>
17
18 <p><b>wxPython</b> is a Python extension module that
19 encapsulates the wxWindows GUI classes.</p>
20
21 <p>This demo shows off some of the capabilities
22 of <b>wxPython</b>. Select items from the menu or tree control,
23 sit back and enjoy. Be sure to take a peek at the source code for each
24 demo item so you can learn how to use the classes yourself.</p>
25
26 <p><b>wxPython</b> is brought to you by <b>Robin Dunn</b> and<br>
27 <b>Total Control Software</b>, Copyright (c) 1998-1999.</p>
28
29 <p><font size="-1">Please see <i>license.txt</i> for licensing information.</font></p>
30
31 <p><wxp class="wxButton">
32 <param name="label" value="Okay">
33 <param name="id" value="wxID_OK">
34 </wxp></p>
35 </center>
36 </body>
37 </html>
38 '''
39 def __init__(self, parent):
40 wxDialog.__init__(self, parent, -1, 'About wxPython')
41 self.html = wxHtmlWindow(self, -1, wxPoint(5,5), wxSize(400, 350))
42 self.html.SetPage(self.text % wx.__version__)
43 self.Fit()
44
45
46 #---------------------------------------------------------------------------