summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ToolTip.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/ToolTip.py')
-rw-r--r--Lib/idlelib/ToolTip.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/ToolTip.py b/Lib/idlelib/ToolTip.py
index a403804..ce7a3d3 100644
--- a/Lib/idlelib/ToolTip.py
+++ b/Lib/idlelib/ToolTip.py
@@ -83,7 +83,7 @@ def main():
b.pack()
root.update()
tip = ListboxToolTip(b, ["Hello", "world"])
+ root.mainloop()
- # root.mainloop() # not in idle
-
-main()
+if __name__ == '__main__':
+ main()