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"?

16th May 2018, 8:11 PM
X-1
X-1 - avatar
1 Answer
+ 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()
16th May 2018, 8:16 PM
Paul Grasser
Paul Grasser - avatar