Link to home
Start Free TrialLog in
Avatar of ymg800
ymg800

asked on

very novice quesion in linux, how do i load tkinter

hi

i know that tkinter the GUI for python is installed, but how do i load the program to start?
i dont see any shortcur in linux, how do i start it?

thx
Avatar of gplana
gplana
Flag of Spain image

Please see this:

http://www.python-forum.org/pythonforum/viewtopic.php?f=4&t=7321

Hope it helps. Regards.
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tkinter is a python tk module for GUI.

In your python code, add
------
from Tkinter import *
------

Here is the Tkinter guide:
http://www.pythonware.com/library/tkinter/introduction/

Avatar of ymg800
ymg800

ASKER

i get an error that it cant find the module, but it's installed
how come?
How did you install tkinter?

Here's a 'how to install':
http://tkinter.unpythonic.net/wiki/How_to_install_Tkinter
> but it's installed
What Linux distribution do you have?
For Ubuntu, do
sudo apt-get install tkinter

For Fedora/RedHat/CentOS, do (as root)
yum install tkinter
Avatar of ymg800

ASKER

i am using CentOS
using yum install it's saying no update is needed
Right, it's normally installed as part of Python.  Something is really wrong if it can't find it.
Just to check the obvious, did you capitalize it correctly?