Started messing with Tkinter today, but when I tried to run my first program it crashed. It appears the reason is that I don't have Tkinter. This is a standard installation of Python 3.3 on Windows 7, why is it not there? How can I get it?
Asked
Active
Viewed 5,129 times
1
-
Please post any errors you are getting. – Jared May 19 '13 at 21:44
-
1make sure you are importing in lower case, that is 'tkinter' and not 'Tkinter' – behzad.nouri May 19 '13 at 21:50
3 Answers
6
This answer might be irrelevant with more information, but, for now: are you capitalizing "Tkinter" when using the import command? In Python 3.x, it's imported as lower-case ("import tkinter"), but in 2.x code it's imported with an initial capital ("import Tkinter").

katzenklavier
- 193
- 4
-
-
Just faced the same issue now and glad that someone asked the same question some 5 hours back :) – Pulimon May 20 '13 at 03:09
3
Maybe you disabled it during Python installation? It is Tcl/Tk item in install wizard and it can be disabled. Try reinstall Python and do not turn it off.

DuXeN0N
- 1,577
- 1
- 14
- 29
1
Both of the answers above are perfectly good ideas but if neither of these work make sure you are using this code:
from tkinter import *
Rather than this code:
import tkinter

111111100101110111110
- 63
- 1
- 1
- 8