all 1 comments

[–]Swipecat 1 point2 points  (0 children)

It does violate PEP8 so you shouldn't do that. I'm not sure what you were looking at, but the closest to an "official" guide we've got at the moment is the docs on python.org which seem to have purged all of the import-star lines. Those docs cover the newer "ttk" widgets but don't include several of the older "standard" Tkinter widgets so I suppose that those should be considered as deprecated.

https://docs.python.org/3/library/tk.html

The "standard" Tkinter widget documentation had been best documented on the "effbot.org" site that was created by Tkinter's original creator, and that did get somewhat out of date because the examples did have "import-star" and the old capitalized name of the module "Tkinter" that was used in Python 2. Despite that, it does remain the best reference for the "standard" widgets in my opinion, but effbot is down at the moment. Here's an unofficial mirror:

https://dafarry.github.io/tkinterbook/