1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
#Boa:Dialog:wxDialog1
import wxversion
wxversion.select('2.8')
import wx
import wx.html
import webbrowser
import __version__
def create(parent):
return wxDialog1(parent)
[wxID_WXDIALOG1, wxID_WXDIALOG1CLOSE, wxID_WXDIALOG1HTMLWINDOW1,
wxID_WXDIALOG1TUTORIAL,
] = [wx.NewId() for _init_ctrls in range(4)]
class wxDialog1(wx.Dialog):
def _init_ctrls(self, prnt):
# generated method, don't edit
wx.Dialog.__init__(self, id=wxID_WXDIALOG1, name='', parent=prnt,
pos=wx.Point(554, 80), size=wx.Size(357, 508),
style=wx.DEFAULT_DIALOG_STYLE, title='About')
self.SetClientSize(wx.Size(357, 508))
self.htmlWindow1 = wx.html.HtmlWindow(id=wxID_WXDIALOG1HTMLWINDOW1,
name='htmlWindow1', parent=self, pos=wx.Point(8, 8),
size=wx.Size(344, 464),
style=wx.html.HW_SCROLLBAR_AUTO | wx.html.HW_DEFAULT_STYLE)
self.htmlWindow1.SetThemeEnabled(True)
self.htmlWindow1.SetToolTipString('About ModelBuilder')
self.htmlWindow1.SetBackgroundColour(wx.Colour(255, 0, 0))
self.close = wx.Button(id=wxID_WXDIALOG1CLOSE, label='Close',
name='close', parent=self, pos=wx.Point(272, 482),
size=wx.Size(80, 22), style=0)
self.close.Bind(wx.EVT_BUTTON, self.OnCloseButton,
id=wxID_WXDIALOG1CLOSE)
self.tutorial = wx.Button(id=wxID_WXDIALOG1TUTORIAL, label='Tutorial',
name='tutorial', parent=self, pos=wx.Point(8, 480),
size=wx.Size(80, 22), style=0)
self.tutorial.Bind(wx.EVT_BUTTON, self.OnTutorialButton,
id=wxID_WXDIALOG1TUTORIAL)
def __init__(self, parent):
self._init_ctrls(parent)
page = """
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>About Model Builder</title>
</head>
<body>
<table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="text-align: center; vertical-align: middle;">
<div style="text-align: center;">Model Builder 0.4.1<br>
January, 2008<br>
</div>
<br>
</td>
<td style="vertical-align: top;"><img src="http://www.procc.fiocruz.br/procc/Members/flavio/flavio" title="" alt="" style="width: 100px; height: 100px;"><br>
</td>
</tr>
</tbody>
</table>
ModelBuilder was originally developed and is maintained by Flávio
Codeço Coelho <fccoelho@fiocruz.br>.<br>
<br>
Current Development team is composed by:<br>
<ul>
<li>Flávio Codeço Coelho (Main code and Bayesian Melding module) </li>
<li>Antonio Pacheco (sensitivity analysis module)</li>
<li>Claudia Torres Codeço (tester)</li>
</ul>
<h3>Acknowledgements</h3>
<ul>
<li> Thanks to Varun Hiremath for packaging Model Builder for Debian.
</ul>
<br><br>
A tutorial to ModelBuilder can be accessed by pressing the Tutorial
button below.<br>
<br>
For more information go to Model Buider's <a href="http://model-builder.sourceforge.net">website</a>
</body>
</html>
"""
self.htmlWindow1.SetPage(page)
def OnCloseButton(self, event):
self.Close()
def OnTutorialButton(self, event):
webbrowser.open_new('http://model-builder.sourceforge.net')
|