Hey there, I don't know why, but when I import tkinter on IDLE like this: from tkinter import * And I say: window = Tk() Even known I use python 3.2.5, which should be able to use Tkinter, the python shell raises a ValueError that says that Tk() is not defined. I am very sure I use python 3.2.5 and tutorials from the Python Foundation say that is what I have to do. But it still doesn't work. Does anyone have an idea of how to solve this problem? Thank you! | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Hey there, I don't know why, but when I import tkinter on IDLE like this: from tkinter import * And I say: window = Tk() Even known I use python 3.2.5, which should be able to use Tkinter, the python shell raises a ValueError that says that Tk() is not defined. I am very sure I use python 3.2.5 and tutorials from the Python Foundation say that is what I have to do. But it still doesn't work. Does anyone have an idea of how to solve this problem? Thank you!

1st Apr 2017, 10:52 AM
MisterMM23
3 Réponses
+ 1
Yes but is there any other possibility with from tkinter import * ?
1st Apr 2017, 11:09 PM
MisterMM23
+ 1
Ok don't worry
2nd Apr 2017, 8:33 AM
MisterMM23
0
tkinter Not Tkinter
25th Jun 2017, 11:07 PM
Danny Daniels
Danny Daniels - avatar