summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-21 20:13:08 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-21 20:13:08 (GMT)
commita4ddb238bcdd1b64af0d73d7444f18cbb510e7ed (patch)
tree918ebc67c0b8aafb712705452bc15dfa11b76955 /Demo
parent4ec060ad28eacd0f80a9ee74d44a1f86553f566d (diff)
downloadcpython-a4ddb238bcdd1b64af0d73d7444f18cbb510e7ed.zip
cpython-a4ddb238bcdd1b64af0d73d7444f18cbb510e7ed.tar.gz
cpython-a4ddb238bcdd1b64af0d73d7444f18cbb510e7ed.tar.bz2
update -- Undo is now entry 1
Diffstat (limited to 'Demo')
-rw-r--r--Demo/tkinter/matt/menu-simple.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Demo/tkinter/matt/menu-simple.py b/Demo/tkinter/matt/menu-simple.py
index 16172dd..28f2c9e 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")