Gray out graph menu item if graphs aren't available
This commit is contained in:
@@ -21,6 +21,7 @@ import wx
|
||||
import bitmapLoader
|
||||
import gui.fittingView
|
||||
import gui.mainFrame
|
||||
import gui.graphFrame
|
||||
|
||||
class MainMenuBar(wx.MenuBar):
|
||||
def __init__(self):
|
||||
@@ -76,6 +77,7 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user