SunQuest
           Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old September 26th, 2003, 10:44 PM
Gerardoj's Avatar
Gerardoj Gerardoj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Somewhere over the Rainbow
Posts: 128 Gerardoj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 54 m 28 sec
Reputation Power: 5
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.

Reply With Quote
  #2  
Old September 27th, 2003, 08:01 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 18 m 50 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
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


Reply With Quote
  #3  
Old September 27th, 2003, 10:49 AM
Gerardoj's Avatar
Gerardoj Gerardoj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Somewhere over the Rainbow
Posts: 128 Gerardoj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 54 m 28 sec
Reputation Power: 5
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?

Reply With Quote
  #4  
Old September 27th, 2003, 01:22 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 18 m 50 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
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

Reply With Quote
  #5  
Old October 3rd, 2003, 09:26 AM
Zoso's Avatar
Zoso Zoso is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: France
Posts: 53 Zoso User rank is Corporal (100 - 500 Reputation Level)Zoso User rank is Corporal (100 - 500 Reputation Level)Zoso User rank is Corporal (100 - 500 Reputation Level)Zoso User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 47 m 5 sec
Reputation Power: 8
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.

Reply With Quote
  #6  
Old October 3rd, 2003, 11:23 PM
Gerardoj's Avatar
Gerardoj Gerardoj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Somewhere over the Rainbow
Posts: 128 Gerardoj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 54 m 28 sec
Reputation Power: 5
Thanks a lot. Now is working fine

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Trueble with tkinterGui


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway