From: Kurt B. Kaiser Date: Wed, 23 Nov 2005 15:12:19 +0000 (+0000) Subject: Fix main() call X-Git-Tag: v2.5a0~1115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9df23ea1fc7cc9325b03c9a4beb7f4852687378f;p=python Fix main() call Patch 1315161 sebastien blanchet --- diff --git a/Lib/idlelib/ToolTip.py b/Lib/idlelib/ToolTip.py index a403804aff..ce7a3d3ee5 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()