]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/About.py
7e9827675e25ff335cd0af6ce6d8233bfcd62f9f
   2 from   wxPython
.wx       
import * 
   3 from   wxPython
.html     
import * 
   4 import wxPython
.lib
.wxpTag
 
   6 #--------------------------------------------------------------------------- 
   8 class MyAboutBox(wxDialog
): 
  11 <body bgcolor="#AC76DE"> 
  12 <center><table bgcolor="#458154" width="100%%" cellspacing="0" 
  13 cellpadding="0" border="1"> 
  15     <td align="center"><h1>wxPython %s</h1></td> 
  19 <p><b>wxPython</b> is a Python extension module that 
  20 encapsulates the wxWindows GUI classes.</p> 
  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> 
  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> 
  31 <font size="-1">Please see <i>license.txt</i> for licensing information.</font> 
  34 <p><wxp class="wxButton"> 
  35     <param name="label" value="Okay"> 
  36     <param name="id"    value="wxID_OK"> 
  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
) 
  56         self
.CentreOnParent(wxBOTH
) 
  58 #---------------------------------------------------------------------------