Monday, March 18, 2013

Check if Tkinter installed in Python

Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk.

To check if Tkinter installed, type the following command in IDLE(Python Shell), for Python 2.x:

>>> import Tkinter


import Tkinter for Python 2.x
import Tkinter for Python 2.x


for Python 3.x:

>>> import tkinter

import tkinter for Python 3.x
import tkinter for Python 3.x


No comments:

Post a Comment