The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
Trueble with tkinterGui
Discuss Trueble with tkinterGui in the Python Programming forum on Dev Shed. Trueble with tkinterGui Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

September 26th, 2003, 10:44 PM
|
 |
Contributing User
|
|
Join Date: Aug 2003
Location: Somewhere over the Rainbow
Posts: 128
Time spent in forums: 3 h 54 m 28 sec
Reputation Power: 10
|
|
|
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.
|

September 27th, 2003, 08:01 AM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
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.
__________________
programming language development: www.netytan.com – Hula
|

September 27th, 2003, 10:49 AM
|
 |
Contributing User
|
|
Join Date: Aug 2003
Location: Somewhere over the Rainbow
Posts: 128
Time spent in forums: 3 h 54 m 28 sec
Reputation Power: 10
|
|
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?
|

September 27th, 2003, 01:22 PM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
Quote: # import a local module we created for Tkinter GUI convenience functions
import tkinterGui |
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
|

October 3rd, 2003, 09:26 AM
|
 |
Contributing User
|
|
Join Date: Jul 2003
Location: France
Posts: 53
  
Time spent in forums: 1 Day 47 m 5 sec
Reputation Power: 13
|
|
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.
|

October 3rd, 2003, 11:23 PM
|
 |
Contributing User
|
|
Join Date: Aug 2003
Location: Somewhere over the Rainbow
Posts: 128
Time spent in forums: 3 h 54 m 28 sec
Reputation Power: 10
|
|
|
Thanks a lot. Now is working fine
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|