]> granicus.if.org Git - python/commitdiff
Fix main() call
authorKurt B. Kaiser <kbk@shore.net>
Wed, 23 Nov 2005 15:12:19 +0000 (15:12 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 23 Nov 2005 15:12:19 +0000 (15:12 +0000)
Patch 1315161 sebastien blanchet

Lib/idlelib/ToolTip.py

index a403804aff186176fea9e3288e4a2781d23e6a50..ce7a3d3ee5253abdb59cc3a7981e6eba27f3d822 100644 (file)
@@ -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()