I\'m following a Sentdex tutorial, found here, specifically this part about creating a GUI in Python. However the tutorial is in python 3 and I\'m using 2.7.
Importing <
If you use ttk.Button
, it absolutely will use the ttk button. It can't possibly do anything else because you're explicitly saying to use the Button
class from the ttk
module.
Note: Depending on what platform you're on, the tk and ttk buttons may look identical.
Other than the way you do the imports, there's virtually no difference between tkinter in python 2.x and 3.x.