- Improved.

This commit is contained in:
ccremers 2006-08-09 10:07:57 +00:00
parent c2caa0da8a
commit 70fa59a9b5
5 changed files with 16 additions and 40 deletions

View File

@ -115,20 +115,19 @@ class MainWindow(wx.Frame):
#print "Default toolbar tool size: %s\n" % tb.GetToolBitmapSize() #print "Default toolbar tool size: %s\n" % tb.GetToolBitmapSize()
def getBmp(name): def getBmp(name):
bmp = wx.Bitmap(os.path.join("Images","%s.png" % name),wx.BITMAP_TYPE_PNG) bmp = wx.Image(os.path.join("Images","%s.png" % name),wx.BITMAP_TYPE_PNG).ConvertToBitmap()
if not bmp.Ok(): if not bmp.Ok():
tsize = (32,32) bmp = wx.EmptyBitmap(32,32)
bmp = wx.EmptyBitmap(tsize)
return bmp return bmp
bmpverify = getBmp("verify-button") bmpverify = getBmp("verify-button")
bmpcharacterize = getBmp("characterize-button") bmpcharacterize = getBmp("characterize-button")
# add the actual tools # add the actual tools
tb.AddSimpleTool(ID_VERIFY, bmpverify,shortHelpString="Verify") tb.AddSimpleTool(ID_VERIFY, bmpverify,shortHelpString="Verify claims in protocol")
self.Bind(wx.EVT_TOOL, self.OnVerify, id=ID_VERIFY) self.Bind(wx.EVT_TOOL, self.OnVerify, id=ID_VERIFY)
tb.AddSimpleTool(ID_STATESPACE, tb.AddSimpleTool(ID_STATESPACE,
bmpcharacterize,shortHelpString="Statespace") bmpcharacterize,shortHelpString="Generate statespace for all roles")
self.Bind(wx.EVT_TOOL, self.OnStatespace, id=ID_STATESPACE) self.Bind(wx.EVT_TOOL, self.OnStatespace, id=ID_STATESPACE)
# tb.AddSeparator() # tb.AddSeparator()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -14,11 +14,11 @@
id="svg1307" id="svg1307"
sodipodi:version="0.32" sodipodi:version="0.32"
inkscape:version="0.43" inkscape:version="0.43"
sodipodi:docbase="/home/cas/svn/scyther/gui/images" sodipodi:docbase="/home/cas/svn/scyther/gui/Images"
sodipodi:docname="characterize-button.svg" sodipodi:docname="characterize-button.svg"
inkscape:export-filename="/home/cas/svn/scyther/gui/images/characterize-button.png" inkscape:export-filename="/home/cas/svn/scyther/gui/Images/characterize-button.png"
inkscape:export-xdpi="90" inkscape:export-xdpi="45"
inkscape:export-ydpi="90"> inkscape:export-ydpi="45">
<defs <defs
id="defs1309"> id="defs1309">
<linearGradient <linearGradient
@ -105,8 +105,8 @@
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="12.296875" inkscape:zoom="12.296875"
inkscape:cx="32" inkscape:cx="32"
inkscape:cy="53.817265" inkscape:cy="25.734125"
inkscape:current-layer="layer6" inkscape:current-layer="layer3"
showgrid="true" showgrid="true"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:grid-bbox="true" inkscape:grid-bbox="true"
@ -219,17 +219,6 @@
id="layer3" id="layer3"
inkscape:label="text" inkscape:label="text"
style="display:inline"> style="display:inline">
<text
xml:space="preserve"
style="font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;opacity:0.35353537;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Monospace"
x="31.191406"
y="42.815918"
id="text4893"
sodipodi:linespacing="100%"><tspan
sodipodi:role="line"
id="tspan4895"
x="31.191406"
y="42.815918">REACH</tspan></text>
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Monospace" style="font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Monospace"

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -14,11 +14,11 @@
id="svg1307" id="svg1307"
sodipodi:version="0.32" sodipodi:version="0.32"
inkscape:version="0.43" inkscape:version="0.43"
sodipodi:docbase="/home/cas/svn/scyther/gui/images" sodipodi:docbase="/home/cas/svn/scyther/gui/Images"
sodipodi:docname="verify-button.svg" sodipodi:docname="verify-button.svg"
inkscape:export-filename="/home/cas/svn/scyther/gui/images/verify-button.png" inkscape:export-filename="/home/cas/svn/scyther/gui/Images/verify-button.png"
inkscape:export-xdpi="90" inkscape:export-xdpi="45"
inkscape:export-ydpi="90"> inkscape:export-ydpi="45">
<defs <defs
id="defs1309"> id="defs1309">
<linearGradient <linearGradient
@ -104,7 +104,7 @@
inkscape:zoom="12.296875" inkscape:zoom="12.296875"
inkscape:cx="32" inkscape:cx="32"
inkscape:cy="41.18515" inkscape:cy="41.18515"
inkscape:current-layer="layer7" inkscape:current-layer="layer3"
showgrid="true" showgrid="true"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:grid-bbox="true" inkscape:grid-bbox="true"
@ -218,19 +218,7 @@
inkscape:groupmode="layer" inkscape:groupmode="layer"
id="layer3" id="layer3"
inkscape:label="text" inkscape:label="text"
style="display:inline" style="display:inline">
sodipodi:insensitive="true">
<text
xml:space="preserve"
style="font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;opacity:0.35353537;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Monospace"
x="31.191406"
y="38.815918"
id="text4893"
sodipodi:linespacing="100%"><tspan
sodipodi:role="line"
id="tspan4895"
x="31.191406"
y="38.815918">CLAIM</tspan></text>
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Monospace" style="font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Monospace"

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB