diff --git a/gui/Mainwindow.py b/gui/Mainwindow.py index fb3420d..1ffd743 100644 --- a/gui/Mainwindow.py +++ b/gui/Mainwindow.py @@ -102,24 +102,26 @@ class MainWindow(wx.Frame): #print "Default toolbar tool size: %s\n" % tb.GetToolBitmapSize() - tsize = (32,32) + tsize = (64,64) - bmp = wx.ArtProvider_GetBitmap(wx.ART_EXECUTABLE_FILE,wx.ART_TOOLBAR,tsize) - if not bmp.Ok(): - bmp = wx.EmptyBitmap(tsize) + bmpverify = wx.Bitmap("images/verify-button.png",wx.BITMAP_TYPE_PNG) + bmpcharacterize = wx.Bitmap("images/characterize-button.png",wx.BITMAP_TYPE_PNG) + #bmp = wx.ArtProvider_GetBitmap(wx.ART_EXECUTABLE_FILE,wx.ART_TOOLBAR,tsize) + #if not bmp.Ok(): + # bmp = wx.EmptyBitmap(tsize) # add the actual tools - tb.AddSimpleTool(ID_VERIFY, bmp,"Verify","Verify claims") + tb.AddSimpleTool(ID_VERIFY, bmpverify,"Verify","Verify claims") self.Bind(wx.EVT_TOOL, self.OnVerify, id=ID_VERIFY) - tb.AddSimpleTool(ID_STATESPACE, bmp,"Statespace","Generate statespace for all roles") + tb.AddSimpleTool(ID_STATESPACE, bmpcharacterize,"Statespace","Generate statespace for all roles") self.Bind(wx.EVT_TOOL, self.OnStatespace, id=ID_STATESPACE) - tb.AddSeparator() + # tb.AddSeparator() - tb.AddSimpleTool(ID_CHECK, bmp,"Check","Check protocol") - self.Bind(wx.EVT_TOOL, self.OnCheck, id=ID_CHECK) - tb.AddSimpleTool(ID_AUTOVERIFY, bmp,"Default claims","Verify default claims") - self.Bind(wx.EVT_TOOL, self.OnAutoVerify, id=ID_AUTOVERIFY) + # tb.AddSimpleTool(ID_CHECK, bmp,"Check","Check protocol") + # self.Bind(wx.EVT_TOOL, self.OnCheck, id=ID_CHECK) + # tb.AddSimpleTool(ID_AUTOVERIFY, bmp,"Default claims","Verify default claims") + # self.Bind(wx.EVT_TOOL, self.OnAutoVerify, id=ID_AUTOVERIFY) tb.Realize() diff --git a/gui/images/characterize-button.png b/gui/images/characterize-button.png new file mode 100644 index 0000000..9a84127 Binary files /dev/null and b/gui/images/characterize-button.png differ diff --git a/gui/images/characterize-button.svg b/gui/images/characterize-button.svg new file mode 100644 index 0000000..fd0fca7 --- /dev/null +++ b/gui/images/characterize-button.svg @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + REACH + REACH + + diff --git a/gui/images/verify-button.png b/gui/images/verify-button.png new file mode 100644 index 0000000..5e8e1fe Binary files /dev/null and b/gui/images/verify-button.png differ diff --git a/gui/images/verify-button.svg b/gui/images/verify-button.svg new file mode 100644 index 0000000..6bef56d --- /dev/null +++ b/gui/images/verify-button.svg @@ -0,0 +1,236 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + CLAIM + CLAIM + +