RtmAbout.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 # @file RtmAbout.py
5 # @brief rtc-link version declaration dialog class
6 # @date $Date: 2005-05-12 09:06:19 $
7 # @author Noriaki Ando <n-ando@aist.go.jp>
8 #
9 # Copyright (C) 2003-2005
10 # Task-intelligence Research Group,
11 # Intelligent Systems Research Institute,
12 # National Institute of
13 # Advanced Industrial Science and Technology (AIST), Japan
14 # All rights reserved.
15 #
16 # $Id: RtmAbout.py 775 2008-07-28 16:14:45Z n-ando $
17 #
18 
19 import sys
20 
21 import wx # This module uses the new wx namespace
22 import wx.html
23 import wx.lib.wxpTag
24 
25 #---------------------------------------------------------------------------
26 
27 class RtdAboutBox(wx.Dialog):
28  text = '''
29 <html>
30 <body bgcolor="#eeeeee">
31 <center><table bgcolor="#ffffff" width="100%%" cellspacing="0"
32 cellpadding="0" border="1">
33 <tr>
34  <td align="center">
35  <h1>RTCLink %s</h1>
36  Running on wxPython %s<br>
37  </td>
38 </tr>
39 </table>
40 
41 <p><b>RTCLink</b> is a RTComponent based system design tool that
42 component connection, assembly, etc on GUI.</p>
43 
44 <p><b>RTCLink</b> is brought to you by <br>
45 <b>Task-Intelligence Research Group,</b><br>
46 <b>Intelligent System Research Institute,</b><br>
47 <b>National Institute of Advanced Industrial Science and Techonology (AIST) Japan,</b><br>
48 Copyright (c) 2004.</p>
49 
50 <p>
51 <!--font size="-1">Please see <i>license.txt</i> for licensing information.</font-->
52 </p>
53 
54 <p><wxp module="wx" class="Button">
55  <param name="label" value="Okay">
56  <param name="id" value="ID_OK">
57 </wxp></p>
58 </center>
59 </body>
60 </html>
61 '''
62  def __init__(self, parent):
63  wx.Dialog.__init__(self, parent, -1, 'About the wxPython demo',)
64  html = wx.html.HtmlWindow(self, -1, size=(420, -1))
65  py_version = sys.version.split()[0]
66  html.SetPage(self.text % ("0.1", wx.VERSION_STRING))
67  btn = html.FindWindowById(wx.ID_OK)
68  ##btn.SetDefault()
69  ir = html.GetInternalRepresentation()
70  html.SetSize( (ir.GetWidth()+25, ir.GetHeight()+25) )
71  self.SetClientSize(html.GetSize())
72  self.CentreOnParent(wx.BOTH)
73 
74 #---------------------------------------------------------------------------
75 
76 
77 
78 if __name__ == '__main__':
79  app = wx.PySimpleApp()
80  dlg = RtdAboutBox(None)
81  dlg.ShowModal()
82  dlg.Destroy()
83  app.MainLoop()
84 
def __init__(self, parent)
Definition: RtmAbout.py:62


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:55