mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -259,8 +259,8 @@ def _color_delegator(parent): # htest #
|
|||
|
||||
top = Toplevel(parent)
|
||||
top.title("Test ColorDelegator")
|
||||
top.geometry("200x100+%d+%d" % (parent.winfo_rootx() + 200,
|
||||
parent.winfo_rooty() + 150))
|
||||
x, y = map(int, parent.geometry().split('+')[1:])
|
||||
top.geometry("200x100+%d+%d" % (x + 250, y + 175))
|
||||
source = "if somename: x = 'abc' # comment\nprint\n"
|
||||
text = Text(top, background="white")
|
||||
text.pack(expand=1, fill="both")
|
||||
|
|
@ -276,5 +276,6 @@ if __name__ == "__main__":
|
|||
import unittest
|
||||
unittest.main('idlelib.idle_test.test_colorizer',
|
||||
verbosity=2, exit=False)
|
||||
|
||||
from idlelib.idle_test.htest import run
|
||||
run(_color_delegator)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue