Hi Monte,

> I'm starting to think it'd just be easier to put some tags in comments at
> the start of the file to tell pylint to disable warning me about wildcard
> imports, and just go back to using those!

Yes, a lot simpler.

A lot of symbols such as S, N, X, Y, BOTH etc.
are constants (well, variables which don't change value)
used within Tkinter.

Most of us do a blanket "from tkinter import *"
to get all of these symbols defined.

Wildcard imports are considered bad because of
possible conflicts, you might end up importing
a symbol from two modules, and then your code
might end up using the wrong one.

My solution to this is to ONLY do wildcard import
from tkinter, or any module I myself write, and
in which I avoid tkinter symbols.

Mick
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to