Added a nice icon for preferences dialog

This commit is contained in:
HomeWorld
2010-12-06 13:37:38 +02:00
parent c703252ee5
commit ca21652be8
3 changed files with 10 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ class MainMenuBar(wx.MenuBar):
self.damagePatternEditorId = wx.NewId()
self.graphFrameId = wx.NewId()
self.backupFitsId = wx.NewId()
self.preferencesId = wx.NewId()
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
@@ -78,10 +79,11 @@ class MainMenuBar(wx.MenuBar):
graphFrameItem = wx.MenuItem(windowMenu, self.graphFrameId, "Graphs\tCTRL+G")
graphFrameItem.SetBitmap(bitmapLoader.getBitmap("graphs_small", "icons"))
# graphFrameItem.Enable(gui.graphFrame.enabled)
windowMenu.AppendItem(graphFrameItem)
windowMenu.Append(wx.ID_PREFERENCES)
preferencesItem = wx.MenuItem(windowMenu, self.preferencesId, "Preferences\tCTRL+P")
preferencesItem.SetBitmap(bitmapLoader.getBitmap("preferences_small", "icons"))
windowMenu.AppendItem(preferencesItem)
# graphFrameItem.Enable(gui.graphFrame.enabled)
# Help menu
helpMenu = wx.Menu()