|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
||||
|
||||
|
Trueble with tkinterGui
Hi, I trying to run this code http://www.metaslash.com/brochure/tutorial/filegui.py but when I type:
python filegui.py Traceback (most recent call last): File "GUI.py", line 16, in ? import tkinterGui ImportError: No module named tkinterGui What could be the problem? where can I download tkinterGui? Thanks A lot. Last edited by Gerardoj : September 26th, 2003 at 10:47 PM. |
|
#2
|
||||
|
||||
|
I looked on PyPI and couldn't find anything, i also did a search on google.. think your best bet would be to download the Tk add-on lib's, their are a whole buncha links on that site you linked too
http://www.metaslash.com/brochure/tutorial/ Happy Pying, Mark. |
|
#3
|
||||
|
||||
|
Hey thanks for the reply, I downloaded the TCL 8.4.4 here http://prdownloads.sourceforge.net/...e_mirror=heanet and I installed, but again I type:
python filegui.py Traceback (most recent call last): File "GUI.py", line 16, in ? import tkinterGui ImportError: No module named tkinterGui What could be the problem? |
|
#4
|
||||
|
||||
|
Quote:
You need to save this file to the same location as filegui.py , it should work fine then!You might also wana check out http://tix.sourceforge.net/ for more Tk widgets. Mark |
|
#5
|
||||
|
||||
|
Hi,
if you still have a problem with importing your module, you can try one of the two following solutions : at the first line of your script, type : Code:
import sys
sys.path.append("......")
where ...... stands for the path of your module file. Otherwise, you can add the path of your module file to the PYTHONPATH environment variable. In fact, you may have an import error because python does not search for your module in the correct path. |
|
#6
|
||||
|
||||
|
Thanks a lot. Now is working fine
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Trueble with tkinterGui |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|