MiRCART.py:MiRCARTFrame.__init__(): disable (grey out) menuEdit{Redo,Undo} initially.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-01-05 18:12:02 +01:00
parent c7fbe5b20c
commit 813d49a3f2

View File

@ -481,8 +481,10 @@ class MiRCARTFrame(wx.Frame):
self.menuEdit = wx.Menu() self.menuEdit = wx.Menu()
self.menuEditUndo = self.menuEdit.Append(wx.ID_UNDO, "&Undo", "Undo") self.menuEditUndo = self.menuEdit.Append(wx.ID_UNDO, "&Undo", "Undo")
self.menuEditUndo.Enable(False)
self.Bind(wx.EVT_MENU, self.onEditUndo, self.menuEditUndo) self.Bind(wx.EVT_MENU, self.onEditUndo, self.menuEditUndo)
self.menuEditRedo = self.menuEdit.Append(wx.ID_REDO, "&Redo", "Redo") self.menuEditRedo = self.menuEdit.Append(wx.ID_REDO, "&Redo", "Redo")
self.menuEditRedo.Enable(False)
self.Bind(wx.EVT_MENU, self.onEditRedo, self.menuEditRedo) self.Bind(wx.EVT_MENU, self.onEditRedo, self.menuEditRedo)
self.menuEdit.AppendSeparator() self.menuEdit.AppendSeparator()
self.menuEditCut = self.menuEdit.Append(wx.ID_CUT, "Cu&t", "Cut") self.menuEditCut = self.menuEdit.Append(wx.ID_CUT, "Cu&t", "Cut")