diff --git a/gui/Gui/Mainwindow.py b/gui/Gui/Mainwindow.py index 4b73c87..550b7ed 100644 --- a/gui/Gui/Mainwindow.py +++ b/gui/Gui/Mainwindow.py @@ -115,20 +115,19 @@ class MainWindow(wx.Frame): #print "Default toolbar tool size: %s\n" % tb.GetToolBitmapSize() 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(): - tsize = (32,32) - bmp = wx.EmptyBitmap(tsize) + bmp = wx.EmptyBitmap(32,32) return bmp bmpverify = getBmp("verify-button") bmpcharacterize = getBmp("characterize-button") # 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) tb.AddSimpleTool(ID_STATESPACE, - bmpcharacterize,shortHelpString="Statespace") + bmpcharacterize,shortHelpString="Generate statespace for all roles") self.Bind(wx.EVT_TOOL, self.OnStatespace, id=ID_STATESPACE) # tb.AddSeparator() diff --git a/gui/Images/characterize-button.png b/gui/Images/characterize-button.png index 88ac27f..a01871c 100644 Binary files a/gui/Images/characterize-button.png and b/gui/Images/characterize-button.png differ diff --git a/gui/Images/characterize-button.svg b/gui/Images/characterize-button.svg index 46db627..1f23b5c 100644 --- a/gui/Images/characterize-button.svg +++ b/gui/Images/characterize-button.svg @@ -14,11 +14,11 @@ id="svg1307" sodipodi:version="0.32" 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" - inkscape:export-filename="/home/cas/svn/scyther/gui/images/characterize-button.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90"> + inkscape:export-filename="/home/cas/svn/scyther/gui/Images/characterize-button.png" + inkscape:export-xdpi="45" + inkscape:export-ydpi="45"> - REACH + inkscape:export-filename="/home/cas/svn/scyther/gui/Images/verify-button.png" + inkscape:export-xdpi="45" + inkscape:export-ydpi="45"> - CLAIM + style="display:inline">