+ 5
Why it doesn't works?
import tkinter as tk import tkinter as ttk win = tk.Tk() win.mainloop() đ¤
2 Answers
+ 8
When you do import _ as __, what you're doing is storing all the functions in _ into the variable __. Therefore, you need to use win = tkk.Tk() or remove the 2nd line.
+ 3
I think it is because you changed the module to be called ttk and it dosent reconize tk as a suitable shortcut
for example if i say x = 1 and then say x = 2 then x changes from 1 to 2