First of all want to thanks for letting me being part of this family,the point is that I'm trying a small project in python and import tkinter in the first line of the program, but in the second line it crashes and launch an error NameError: name 'Tk' is not defined,here what I already wrote
from tkinter import *
v=Tk()
v.mainloop()
I'm using windows 11, but I have another partition with linux and it does work there,what is the issue,please? am I doing something wrong or need to configure something different?Thanks for your time.
source https://stackoverflow.com/questions/70116793/doesnt-recognize-tk-module
Comments
Post a Comment