mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #21477: Idle htest: merge and modify run and runall; add many tests.
Patch by Saimadhav Heblikar
This commit is contained in:
parent
10cbb1e463
commit
1b392ffe67
18 changed files with 412 additions and 179 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue