RtmAbout.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: utf-8 -*-
00003 #
00004 #  @file RtmAbout.py
00005 #  @brief rtc-link version declaration dialog class
00006 #  @date $Date: 2005-05-12 09:06:19 $
00007 #  @author Noriaki Ando <n-ando@aist.go.jp>
00008 # 
00009 #  Copyright (C) 2003-2005
00010 #      Task-intelligence Research Group,
00011 #      Intelligent Systems Research Institute,
00012 #      National Institute of
00013 #          Advanced Industrial Science and Technology (AIST), Japan
00014 #      All rights reserved.
00015 # 
00016 #  $Id: RtmAbout.py 775 2008-07-28 16:14:45Z n-ando $
00017 # 
00018 
00019 import sys
00020 
00021 import wx                  # This module uses the new wx namespace
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         ##btn.SetDefault()
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 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:06