You are not logged in.

#1 2016-10-05 09:13:52

fagus
Member
Registered: 2015-10-19
Posts: 10

[SOLVED]python2 - Tkinter problem

Hello
I try to run a python program with GUI using python 2.7.12 and Tkinter.
But I always get this error message:

    from TKinter import *
ImportError: No module named TKinter

But I 've installed Tkinter. When I type import Tkinter in my python2 shell it gives no error. Running Tkinter._test() in my shell works well.

Can anyone help me please. I've been reading posts on this topic for days now, but I really can't figure out. I'm really stuck.

Thanks a lot!

Last edited by fagus (2016-10-05 11:57:17)

Offline

#2 2016-10-05 09:17:07

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: [SOLVED]python2 - Tkinter problem

fagus wrote:
    from TKinter import *
ImportError: No module named TKinter

There is probably a typo in that application: the module is called Tkinter (lowercase 'k').


pkgs │ hacks │ cfg │ blag

Offline

#3 2016-10-05 11:58:05

fagus
Member
Registered: 2015-10-19
Posts: 10

Re: [SOLVED]python2 - Tkinter problem

Okay thanks!

Offline

Board footer

Powered by FluxBB