I know it is a stupid question but I am just starting to learn python and i don\'t have good knowledge of python. My question is what is the difference between
You can certainly use
import Tkinter
However, if you do that, you'd have to prefix every single Tk class name you use with Tkinter.
.
This is rather inconvenient.
On the other hand, the following:
import Tkinter as tk
sidesteps the problem by only requiring you to type tk.
instead of Tkinter.
.
As to:
from Tkinter import *
it is generally a bad idea, for reasons discussed in Should wildcard import be avoided?