Implement changing menu-items / toolbar icons

This commit is contained in:
cncfanatics
2010-08-19 19:56:01 +02:00
parent 1b07a6f1af
commit 0383bf4168
5 changed files with 29 additions and 13 deletions

View File

@@ -100,9 +100,8 @@ class MainFrame(wx.Frame):
#Ship browser
self.Bind(wx.EVT_MENU, self.toggleShipBrowser, id=10)
self.Bind(wx.EVT_MENU, self.toggleShipBrowser, id=11)
def toggleShipBrowser(self, event):
toolbar = self.GetToolBar()
toolbar.ToggleTool(10, not toolbar.GetToolState(10))
toolbar.toggleShipBrowser(event)
self.GetToolBar().toggleShipBrowser(event)