diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2023-12-03 09:28:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-03 09:28:37 (GMT) |
commit | 3855b45874d5f8eb92a4957fb9de6fdce63eb760 (patch) | |
tree | 49bce1712a8376402acd692f7f44c9b64ab6d4da /Lib/idlelib/iomenu.py | |
parent | a9574c68f04695eecd19866faaf4cdee5965bc70 (diff) | |
download | cpython-3855b45874d5f8eb92a4957fb9de6fdce63eb760.zip cpython-3855b45874d5f8eb92a4957fb9de6fdce63eb760.tar.gz cpython-3855b45874d5f8eb92a4957fb9de6fdce63eb760.tar.bz2 |
gh-66819: More IDLE htest updates(2) (#112642)
Examine and update spec -- callable pairs.
Revise run method.
Diffstat (limited to 'Lib/idlelib/iomenu.py')
-rw-r--r-- | Lib/idlelib/iomenu.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/idlelib/iomenu.py b/Lib/idlelib/iomenu.py index af8159c..7629101 100644 --- a/Lib/idlelib/iomenu.py +++ b/Lib/idlelib/iomenu.py @@ -396,10 +396,11 @@ class IOBinding: def _io_binding(parent): # htest # from tkinter import Toplevel, Text - root = Toplevel(parent) - root.title("Test IOBinding") + top = Toplevel(parent) + top.title("Test IOBinding") x, y = map(int, parent.geometry().split('+')[1:]) - root.geometry("+%d+%d" % (x, y + 175)) + top.geometry("+%d+%d" % (x, y + 175)) + class MyEditWin: def __init__(self, text): self.text = text @@ -423,7 +424,7 @@ def _io_binding(parent): # htest # def savecopy(self, event): self.text.event_generate("<<save-copy-of-window-as-file>>") - text = Text(root) + text = Text(top) text.pack() text.focus_set() editwin = MyEditWin(text) |