mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-66819: More IDLE htest updates(2) (#112642)
Examine and update spec -- callable pairs. Revise run method.
This commit is contained in:
parent
a9574c68f0
commit
3855b45874
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