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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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/
In your python code, add
------
from Tkinter import *
------
Here is the Tkinter guide:
http://www.pythonware.com/library/tkinter/introduction/
ASKER
i get an error that it cant find the module, but it's installed
how come?
how come?
How did you install tkinter?
Here's a 'how to install':
http://tkinter.unpythonic. net/wiki/H ow_to_inst all_Tkinte r
Here's a 'how to install':
http://tkinter.unpythonic.
> 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
What Linux distribution do you have?
For Ubuntu, do
sudo apt-get install tkinter
For Fedora/RedHat/CentOS, do (as root)
yum install tkinter
ASKER
i am using CentOS
using yum install it's saying no update is needed
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?
Just to check the obvious, did you capitalize it correctly?
http://www.python-forum.org/pythonforum/viewtopic.php?f=4&t=7321
Hope it helps. Regards.