summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/iomenu.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2023-12-03 09:28:37 (GMT)
committerGitHub <noreply@github.com>2023-12-03 09:28:37 (GMT)
commit3855b45874d5f8eb92a4957fb9de6fdce63eb760 (patch)
tree49bce1712a8376402acd692f7f44c9b64ab6d4da /Lib/idlelib/iomenu.py
parenta9574c68f04695eecd19866faaf4cdee5965bc70 (diff)
downloadcpython-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.py9
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)