[Tutor] Tkinter and python

Arun Kumar PG arunkumarpg at gmail.com
Sun Oct 8 17:06:31 CEST 2006


Hi,

You can try:

>> import sys
>> sys.path.append('<absolute_path_to_program_dir>')
>> import <module.py>

Or else you can append the path to global PYTHONPATH environment variable
and whenever you will type:

python <module.py> on the command prompt/bash shell the script gets
executed.


Hope that helps.

Thanks,

- Arun


On 10/8/06, max . <ph34r_th3_d4rkn3s at hotmail.com> wrote:
>
> first off i just started looking for Tkinter tutorials but havent found
> much
> and what i have found was not very good if anyone knows og any Tkinter
> tutorials pleas let me know
>
> second is thair anyway to change the path that python looks for a program
> in
> ex: if i enter python hello into the command line then i get this error
>
>
> /Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python:
> can't open file 'hello1': [Errno 2] No such file or directory
>
> can i chage that search path?
> if so how?
>
> thx
>
>
>
> ^_^"  s33 y4
>
> _________________________________________________________________
> Search—Your way, your world, right now!
>
> http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061008/3d218f47/attachment-0001.html 


More information about the Tutor mailing list