Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 import sys
00020
00021 import wx
00022 import wx.html
00023 import wx.lib.wxpTag
00024
00025
00026
00027 class RtdAboutBox(wx.Dialog):
00028 text = '''
00029 <html>
00030 <body bgcolor="#eeeeee">
00031 <center><table bgcolor="#ffffff" width="100%%" cellspacing="0"
00032 cellpadding="0" border="1">
00033 <tr>
00034 <td align="center">
00035 <h1>RTCLink %s</h1>
00036 Running on wxPython %s<br>
00037 </td>
00038 </tr>
00039 </table>
00040
00041 <p><b>RTCLink</b> is a RTComponent based system design tool that
00042 component connection, assembly, etc on GUI.</p>
00043
00044 <p><b>RTCLink</b> is brought to you by <br>
00045 <b>Task-Intelligence Research Group,</b><br>
00046 <b>Intelligent System Research Institute,</b><br>
00047 <b>National Institute of Advanced Industrial Science and Techonology (AIST) Japan,</b><br>
00048 Copyright (c) 2004.</p>
00049
00050 <p>
00051 <!--font size="-1">Please see <i>license.txt</i> for licensing information.</font-->
00052 </p>
00053
00054 <p><wxp module="wx" class="Button">
00055 <param name="label" value="Okay">
00056 <param name="id" value="ID_OK">
00057 </wxp></p>
00058 </center>
00059 </body>
00060 </html>
00061 '''
00062 def __init__(self, parent):
00063 wx.Dialog.__init__(self, parent, -1, 'About the wxPython demo',)
00064 html = wx.html.HtmlWindow(self, -1, size=(420, -1))
00065 py_version = sys.version.split()[0]
00066 html.SetPage(self.text % ("0.1", wx.VERSION_STRING))
00067 btn = html.FindWindowById(wx.ID_OK)
00068
00069 ir = html.GetInternalRepresentation()
00070 html.SetSize( (ir.GetWidth()+25, ir.GetHeight()+25) )
00071 self.SetClientSize(html.GetSize())
00072 self.CentreOnParent(wx.BOTH)
00073
00074
00075
00076
00077
00078 if __name__ == '__main__':
00079 app = wx.PySimpleApp()
00080 dlg = RtdAboutBox(None)
00081 dlg.ShowModal()
00082 dlg.Destroy()
00083 app.MainLoop()
00084