Hi everyone,

I recently installed Python on Windows. I wanted to develop a gui program using Tkinter. The problem is that when I try to import Tkinter module. It gives me a 'module not found' error. But I thought Tkinter was preintalled within Python's installation. It is even more confusing when I look in the Python modules and see a folder named 'Tkinter'! Please, can someone help me.

The python version installed is 3.40 beta 1.
Here is the code I am attempting to run.

Recommended Answers

All 4 Replies

You also have to have TCL and Tk installed. I don't know if it comes with MS Windows or not but this link has a section for installing
Click Here ofClick Here For further help we will have to see more than
"module not found" of the error message as it may be some other module completly.

I am pretty sure that to import Tkinter in python 3.X you have to type:

import tkinter

instead of

import Tkinter

Seeing the code would help us see the problem.

Did you use ActiveState to get Python? If not, what did you use?

Was this problem solved? If so, could you please mark as solved?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.