Here I am using from tkinter import *
inside a function and when I am running the code it is showing me a SyntaxError
.
Please tell me how I can use from tkinter import *
inside a function.
Advertisement
Answer
You should move the import
statements to the beginning of the file, at the top. You are also importing tkinter
twice.