mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -468,10 +468,9 @@ class TabbedPageSet(Frame):
|
|||
self._tab_set.set_selected_tab(page_name)
|
||||
|
||||
def _tabbed_pages(parent): # htest #
|
||||
import re
|
||||
top=Toplevel(parent)
|
||||
width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
|
||||
top.geometry("+%d+%d"%(x, y + 175))
|
||||
x, y = map(int, parent.geometry().split('+')[1:])
|
||||
top.geometry("+%d+%d" % (x, y + 175))
|
||||
top.title("Test tabbed pages")
|
||||
tabPage=TabbedPageSet(top, page_names=['Foobar','Baz'], n_rows=0,
|
||||
expand_tabs=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue