Disabled items in the menu bar as there are no bound functions yet

This commit is contained in:
Manuel Cortez 2016-02-18 08:29:56 -06:00
parent 068a67fbc8
commit 92b1016bdf

View File

@ -7,11 +7,15 @@ class mainWindow(wx.Frame):
mb = wx.MenuBar()
buffer = wx.Menu()
self.update = buffer.Append(wx.NewId(), _(u"Update current buffer"))
self.update.Enable(False)
self.load_previous_items = buffer.Append(wx.NewId(), _(u"Load previous items"))
self.load_previous_items.Enable(False)
mb.Append(buffer, _(u"Buffer"))
help_ = wx.Menu()
self.about = help_.Append(wx.NewId(), _(u"About {0}").format(application.name,))
self.about.Enable(False)
self.check_for_updates = help_.Append(wx.NewId(), _(u"Check for updates"))
self.check_for_updates.Enable(False)
mb.Append(help_, _(u"Help"))
self.SetMenuBar(mb)