1

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?

Nathan2055
  • 2,283
  • 9
  • 30
  • 49

3 Answers3

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").

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