summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tkinter/test/support.py')
-rw-r--r--Lib/tkinter/test/support.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py
index 67264df..97212fb 100644
--- a/Lib/tkinter/test/support.py
+++ b/Lib/tkinter/test/support.py
@@ -15,6 +15,14 @@ def get_tk_root():
return root
+def root_deiconify():
+ root = get_tk_root()
+ root.deiconify()
+
+def root_withdraw():
+ root = get_tk_root()
+ root.withdraw()
+
def simulate_mouse_click(widget, x, y):
"""Generate proper events to click at the x, y position (tries to act