2006-08-11 11:43:28 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
""" Import externals """
|
|
|
|
import wx
|
|
|
|
import wx.html
|
2007-01-27 22:52:22 +00:00
|
|
|
import os.path
|
2006-08-11 11:43:28 +01:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
""" Import scyther-gui components """
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
2007-01-27 22:52:22 +00:00
|
|
|
""" Globals """
|
|
|
|
|
|
|
|
basedir = ""
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
2006-08-11 11:43:28 +01:00
|
|
|
class AboutScyther(wx.Dialog):
|
2007-01-27 22:52:22 +00:00
|
|
|
def __init__(self,parent,mybasedir=None):
|
2007-01-31 12:20:44 +00:00
|
|
|
|
|
|
|
global basedir
|
|
|
|
|
2007-01-27 22:52:22 +00:00
|
|
|
self.text = '''
|
2006-08-11 11:43:28 +01:00
|
|
|
<html>
|
|
|
|
<body bgcolor="#ffffff">
|
2007-01-27 22:52:22 +00:00
|
|
|
<img src="$SPLASH">
|
|
|
|
<p align="right"><b>Scyther : $VERSION</b></p>
|
2006-08-11 16:23:32 +01:00
|
|
|
<p>
|
|
|
|
<b>Scyther</b> is an automatic tool for the verification and
|
|
|
|
falsification of security protocols.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Scyther and Scyther GUI developed by
|
2007-01-11 11:22:57 +00:00
|
|
|
Cas Cremers 2004-2007.
|
2006-08-11 16:23:32 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
For news and updates visit the Scyther pages at
|
2007-01-27 22:52:22 +00:00
|
|
|
<a target="_blank" href="http://people.inf.ethz.ch/cremersc/scyther/index.html">
|
|
|
|
http://people.inf.ethz.ch/cremersc/scyther/index.html</a>
|
2006-08-11 16:23:32 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Credits: Cas Cremers (Scyther theory, backend, and main GUI
|
2007-01-27 22:52:22 +00:00
|
|
|
code), Gijs Hollestelle (Python parser for Scyther XML output).
|
2006-08-11 11:43:28 +01:00
|
|
|
</p>
|
2007-01-27 22:52:22 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
if mybasedir:
|
|
|
|
basedir = mybasedir
|
|
|
|
|
|
|
|
splashdir = os.path.join(basedir,"Images")
|
|
|
|
splashimage = os.path.join(splashdir,"scyther-splash.png")
|
|
|
|
self.text = self.text.replace("$SPLASH",splashimage)
|
|
|
|
|
|
|
|
# version information
|
|
|
|
self.text = self.text.replace("$VERSION", "1.0-beta6")
|
2006-08-11 11:43:28 +01:00
|
|
|
|
|
|
|
wx.Dialog.__init__(self, parent, -1, 'About Scyther',
|
2007-01-27 22:52:22 +00:00
|
|
|
size=(660,620))
|
2006-08-11 11:43:28 +01:00
|
|
|
html = wx.html.HtmlWindow(self)
|
2007-01-27 22:52:22 +00:00
|
|
|
#if "gtk2" in wx.PlatformInfo:
|
|
|
|
# html.SetStandardFonts()
|
|
|
|
html.SetBorders(10)
|
2006-08-11 11:43:28 +01:00
|
|
|
html.SetPage(self.text)
|
2007-01-27 22:52:22 +00:00
|
|
|
button = wx.Button(self, wx.ID_OK, "Close window")
|
2006-08-11 11:43:28 +01:00
|
|
|
|
|
|
|
sizer = wx.BoxSizer(wx.VERTICAL)
|
2007-01-27 22:52:22 +00:00
|
|
|
sizer.Add(html, 1, wx.EXPAND|wx.ALL,0)
|
2006-08-11 11:43:28 +01:00
|
|
|
sizer.Add(button,0,wx.ALIGN_CENTER|wx.ALL,5)
|
|
|
|
|
|
|
|
self.SetSizer(sizer)
|
|
|
|
self.Layout()
|
|
|
|
|
2007-01-27 22:52:22 +00:00
|
|
|
# vim: set ts=4 sw=4 et list lcs=tab\:>-:
|