mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
update -- Undo is now entry 1
This commit is contained in:
parent
4ec060ad28
commit
a4ddb238bc
1 changed files with 3 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue