[Tutor] Tkinter layout question
Phil
phil_lor at bigpond.com
Sat Apr 22 16:47:11 EDT 2017
On Sat, 22 Apr 2017 10:37:19 +0200
Peter Otten <__peter__ at web.de> wrote:
> That's unnecessary. The code protected by 'if __name__ == "__main__"'
> is not executed when the module is imported. In fact that's the very
> purpose of this idiom.
>
> "Best practice" is to avoid star imports which bind every name from
> table_class that does not start with "_", including 'tk' to the same
> name in the importing module.
>
Thank you Petter for explaining these points, most helpful.
--
Regards,
Phil
More information about the Tutor
mailing list