diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-05-24 22:48:03 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-05-24 22:48:03 (GMT) |
commit | 62012fc719818b6087b01c93fcc1cd0d2b4d8932 (patch) | |
tree | 5104802fce85d89b4f2d186d38ec0b579f486237 /Lib/idlelib/tabbedpages.py | |
parent | d383bafa556de686be4898d6544ce998a0812532 (diff) | |
download | cpython-62012fc719818b6087b01c93fcc1cd0d2b4d8932.zip cpython-62012fc719818b6087b01c93fcc1cd0d2b4d8932.tar.gz cpython-62012fc719818b6087b01c93fcc1cd0d2b4d8932.tar.bz2 |
Issue #21477: Idle htest: merge and modify run and runall; add many tests.
Patch by Saimadhav Heblikar
Diffstat (limited to 'Lib/idlelib/tabbedpages.py')
-rw-r--r-- | Lib/idlelib/tabbedpages.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/idlelib/tabbedpages.py b/Lib/idlelib/tabbedpages.py index 8d7113d..0723d94 100644 --- a/Lib/idlelib/tabbedpages.py +++ b/Lib/idlelib/tabbedpages.py @@ -467,9 +467,12 @@ class TabbedPageSet(Frame): self._tab_set.set_selected_tab(page_name) -if __name__ == '__main__': +def _tabbed_pages(parent): # test dialog root=Tk() + width, height, x, y = list(map(int, re.split('[x+]', parent.geometry()))) + root.geometry("+%d+%d"%(x, y + 175)) + root.title("Test tabbed pages") tabPage=TabbedPageSet(root, page_names=['Foobar','Baz'], n_rows=0, expand_tabs=False, ) @@ -488,3 +491,8 @@ if __name__ == '__main__': labelPgName.pack(padx=5) entryPgName.pack(padx=5) root.mainloop() + + +if __name__ == '__main__': + from idlelib.idle_test.htest import run + run(_tabbed_pages) |