Disabled items in the menu bar as there are no bound functions yet
This commit is contained in:
parent
068a67fbc8
commit
92b1016bdf
@ -7,11 +7,15 @@ class mainWindow(wx.Frame):
|
|||||||
mb = wx.MenuBar()
|
mb = wx.MenuBar()
|
||||||
buffer = wx.Menu()
|
buffer = wx.Menu()
|
||||||
self.update = buffer.Append(wx.NewId(), _(u"Update current buffer"))
|
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 = buffer.Append(wx.NewId(), _(u"Load previous items"))
|
||||||
|
self.load_previous_items.Enable(False)
|
||||||
mb.Append(buffer, _(u"Buffer"))
|
mb.Append(buffer, _(u"Buffer"))
|
||||||
help_ = wx.Menu()
|
help_ = wx.Menu()
|
||||||
self.about = help_.Append(wx.NewId(), _(u"About {0}").format(application.name,))
|
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 = help_.Append(wx.NewId(), _(u"Check for updates"))
|
||||||
|
self.check_for_updates.Enable(False)
|
||||||
mb.Append(help_, _(u"Help"))
|
mb.Append(help_, _(u"Help"))
|
||||||
self.SetMenuBar(mb)
|
self.SetMenuBar(mb)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user