]> granicus.if.org Git - python/commitdiff
update -- Undo is now entry 1
authorGuido van Rossum <guido@python.org>
Wed, 21 Aug 1996 20:13:08 +0000 (20:13 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 21 Aug 1996 20:13:08 +0000 (20:13 +0000)
Demo/tkinter/matt/menu-simple.py

index 16172dddda8dd30e7d5406ddebd88ab3dac98589..28f2c9eff52d8d7cbe9037b1378a5387c4550815 100644 (file)
@@ -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")