mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Refine geometry of idlelib htests (and a few other fix-ups).
This commit is contained in:
parent
cd5e388c39
commit
a748032653
19 changed files with 52 additions and 58 deletions
|
@ -57,7 +57,6 @@ class Percolator:
|
|||
|
||||
def _percolator(parent): # htest #
|
||||
import tkinter as tk
|
||||
import re
|
||||
|
||||
class Tracer(Delegator):
|
||||
def __init__(self, name):
|
||||
|
@ -74,8 +73,8 @@ def _percolator(parent): # htest #
|
|||
|
||||
box = tk.Toplevel(parent)
|
||||
box.title("Test Percolator")
|
||||
width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
|
||||
box.geometry("+%d+%d" % (x, y + 150))
|
||||
x, y = map(int, parent.geometry().split('+')[1:])
|
||||
box.geometry("+%d+%d" % (x, y + 175))
|
||||
text = tk.Text(box)
|
||||
p = Percolator(text)
|
||||
pin = p.insertfilter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue