]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/About.py
3 from wxPython
.wx
import *
4 from wxPython
.html
import *
5 import wxPython
.lib
.wxpTag
7 #---------------------------------------------------------------------------
9 class MyAboutBox(wxDialog
):
12 <body bgcolor="#AC76DE">
13 <center><table bgcolor="#458154" width="100%%" cellspacing="0"
14 cellpadding="0" border="1">
18 Running on Python %s<br>
23 <p><b>wxPython</b> is a Python extension module that
24 encapsulates the wxWindows GUI classes.</p>
26 <p>This demo shows off some of the capabilities
27 of <b>wxPython</b>. Select items from the menu or tree control,
28 sit back and enjoy. Be sure to take a peek at the source code for each
29 demo item so you can learn how to use the classes yourself.</p>
31 <p><b>wxPython</b> is brought to you by <b>Robin Dunn</b> and<br>
32 <b>Total Control Software,</b> Copyright (c) 1997-2002.</p>
35 <font size="-1">Please see <i>license.txt</i> for licensing information.</font>
38 <p><wxp class="wxButton">
39 <param name="label" value="Okay">
40 <param name="id" value="wxID_OK">
46 def __init__(self
, parent
):
47 wxDialog
.__init
__(self
, parent
, -1, 'About the wxPython demo',)
48 html
= wxHtmlWindow(self
, -1, size
=(420, -1))
49 py_version
= string
.split(sys
.version
)[0]
50 html
.SetPage(self
.text
% (wx
.__version
__, py_version
))
51 btn
= html
.FindWindowById(wxID_OK
)
53 ir
= html
.GetInternalRepresentation()
54 html
.SetSize( (ir
.GetWidth()+5, ir
.GetHeight()+5) )
55 self
.SetClientSize(html
.GetSize())
56 self
.CentreOnParent(wxBOTH
)
58 #---------------------------------------------------------------------------