From: Guido van Rossum Date: Wed, 21 Aug 1996 20:13:08 +0000 (+0000) Subject: update -- Undo is now entry 1 X-Git-Tag: v1.4b3~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4ddb238bcdd1b64af0d73d7444f18cbb510e7ed;p=thirdparty%2FPython%2Fcpython.git update -- Undo is now entry 1 --- diff --git a/Demo/tkinter/matt/menu-simple.py b/Demo/tkinter/matt/menu-simple.py index 16172dddda8d..28f2c9eff52d 100644 --- a/Demo/tkinter/matt/menu-simple.py +++ b/Demo/tkinter/matt/menu-simple.py @@ -74,8 +74,9 @@ def makeEditMenu(): # just to be cute, let's disable the undo option: Edit_button.menu.add('command', label="Undo") - # undo is the 0th entry... - Edit_button.menu.entryconfig(0, state=DISABLED) + # Since the tear-off bar is the 0th entry, + # undo is the 1st entry... + Edit_button.menu.entryconfig(1, state=DISABLED) # and these are just for show. No "command" callbacks attached. Edit_button.menu.add_command(label="Cut")