mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] gh-66819: More IDLE htest updates(2) (GH-112642) (#112643)
Examine and update spec -- callable pairs.
Revise run method.
(cherry picked from commit 3855b45874
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
f5965c2385
commit
ee3ef7f196
9 changed files with 70 additions and 69 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue