summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/undo.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-04 05:10:22 (GMT)
committerGitHub <noreply@github.com>2023-12-04 05:10:22 (GMT)
commite347a8e0e3c00ef726ae627686771aadd74fc967 (patch)
treeb0e96849e03e474e10681e1da0d5ca19e5cd0b24 /Lib/idlelib/undo.py
parent73411ea95eaf09b926bee4f682bf8e9a1e4825a7 (diff)
downloadcpython-e347a8e0e3c00ef726ae627686771aadd74fc967.zip
cpython-e347a8e0e3c00ef726ae627686771aadd74fc967.tar.gz
cpython-e347a8e0e3c00ef726ae627686771aadd74fc967.tar.bz2
[3.11] gh-66819: More IDLE htest updates(3) (GH-112683) (#112685)
Revise spec-callable pairs from percolator to end. (cherry picked from commit 5a1b5316af648ae79bb91f28253b6272bbbd2886) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/undo.py')
-rw-r--r--Lib/idlelib/undo.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/idlelib/undo.py b/Lib/idlelib/undo.py
index 5f10c0f..f1d03f4 100644
--- a/Lib/idlelib/undo.py
+++ b/Lib/idlelib/undo.py
@@ -339,23 +339,23 @@ class CommandSequence(Command):
def _undo_delegator(parent): # htest #
from tkinter import Toplevel, Text, Button
from idlelib.percolator import Percolator
- undowin = Toplevel(parent)
- undowin.title("Test UndoDelegator")
+ top = Toplevel(parent)
+ top.title("Test UndoDelegator")
x, y = map(int, parent.geometry().split('+')[1:])
- undowin.geometry("+%d+%d" % (x, y + 175))
+ top.geometry("+%d+%d" % (x, y + 175))
- text = Text(undowin, height=10)
+ text = Text(top, height=10)
text.pack()
text.focus_set()
p = Percolator(text)
d = UndoDelegator()
p.insertfilter(d)
- undo = Button(undowin, text="Undo", command=lambda:d.undo_event(None))
+ undo = Button(top, text="Undo", command=lambda:d.undo_event(None))
undo.pack(side='left')
- redo = Button(undowin, text="Redo", command=lambda:d.redo_event(None))
+ redo = Button(top, text="Redo", command=lambda:d.redo_event(None))
redo.pack(side='left')
- dump = Button(undowin, text="Dump", command=lambda:d.dump_event(None))
+ dump = Button(top, text="Dump", command=lambda:d.dump_event(None))
dump.pack(side='left')
if __name__ == "__main__":