summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/undo.py
diff options
context:
space:
mode:
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__":