From d8a0f0e6391e23d72696321ba5bfed22fff0153d Mon Sep 17 00:00:00 2001 From: komoto Date: Tue, 14 Dec 2021 14:42:04 +0900 Subject: [PATCH] Remove comments and cleanup --- wx/py/shell.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/wx/py/shell.py b/wx/py/shell.py index 5ed4aa0a..cd74ed1b 100755 --- a/wx/py/shell.py +++ b/wx/py/shell.py @@ -305,7 +305,6 @@ class Shell(editwindow.EditWindow): # Assign handler for the context menu self.Bind(wx.EVT_CONTEXT_MENU, self.OnContextMenu) - ## self.Bind(wx.EVT_UPDATE_UI, self.OnUpdateContextMenu) # add the option to not use the stock IDs; otherwise the context menu # may not work on Mac without adding the proper IDs to the menu bar @@ -1519,19 +1518,6 @@ class Shell(editwindow.EditWindow): menu = self.GetContextMenu() self.PopupMenu(menu) -## def OnUpdateContextMenu(self, evt): -## id = evt.Id -## if id in (self.ID_CUT, self.ID_CLEAR): -## evt.Enable(self.CanCut()) -## elif id in (self.ID_COPY, frame.ID_COPY_PLUS): -## evt.Enable(self.CanCopy()) -## elif id in (self.ID_PASTE, frame.ID_PASTE_PLUS): -## evt.Enable(self.CanPaste()) -## elif id == self.ID_UNDO: -## evt.Enable(self.CanUndo()) -## elif id == self.ID_REDO: -## evt.Enable(self.CanRedo()) -