0
from tkinter import * ?
Could someone break down what is happening when i call this directive, preferably the "from" and * parts? would you also be able to explain why i would use all of these, instead of, say, "import tkinter"?
1 Odpowiedź
+ 5
From means that you're importing something from a library, Tkinter is the name of that library. Import * means everything. If I do:
import tkinter as tk
tk.methodname()
Like this it's better:
from tkinter import *
methodname()