Re: [Tutor] adding a new folder to Python's importable modules search path

2007-11-25 Thread Jeff Younker
> so when I run my script from the command line, the folder does seem > to be added to Python's importable modules search path. When I > attempt to import my_module I get the error: > > ImportError: No module named my_module Do your module directories have an __init__.py file in them? - Jef

Re: [Tutor] adding a new folder to Python's importable modules search path

2007-11-25 Thread tpc247
On 11/25/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > > > > Should be sys.path.append(...) > > Kent yes, I'm sorry, in my posting I did have a typographical error, but my code has the following seemingly correct lines: sys.path.append(PATH_TO_MODULE) print "Path added:

Re: [Tutor] adding a new folder to Python's importable modules search path

2007-11-25 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Dear fellow Python enthusiasts, > > I trust your Thanksgiving holiday has been a relaxing one. A quick > question for you: I have a script that attempts to import my_module from > a folder that is not in Python's importable modules search path. In my > script, that

[Tutor] Caching for speed

2007-11-25 Thread Dick Moores
Caching for speed is a concept brand new to me, and there's a remarkable example in a thread on the python-list. I thought some readers of this list might find it instructive. However, to run the scripts you'll need mpmath. < http://code.google.com/p/mpmath/> Begin by jumping in toward the end of

[Tutor] adding a new folder to Python's importable modules search path

2007-11-25 Thread tpc247
Dear fellow Python enthusiasts, I trust your Thanksgiving holiday has been a relaxing one. A quick question for you: I have a script that attempts to import my_module from a folder that is not in Python's importable modules search path. In my script, that I run from the command line, I have the

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread Michael Langford
On 11/25/07, elis aeris <[EMAIL PROTECTED]> wrote: > I need to keep a bit of python code ready to run at anytime, in the ram, but > this is what I need to do You have several options. You can use sockets to talk to a local program that has opened a server port. You can batch out commands to a file

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread O.R.Senthil Kumaran
> elis aeris wrote: > > I need to keep a bit of python code ready to run at anytime, in the ram, > > but this is what I need to do > > > > I am using two languages at the same time, because python doesn't really > > have any effective way of simulating keyboard and mouse events, > > > > Check Py

Re: [Tutor] altering a list of lists

2007-11-25 Thread Alan Gauld
"Christina Margaret Berens" <[EMAIL PROTECTED]> wrote > or gold on the board, I have to change one of the spaces to a '+', > but > when I do it, it changes all the elements in that position in each > list. This is a classic sign that you have 5reated your nested list by using the same list inst

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread Alan Gauld
"Ricardo Aráoz" <[EMAIL PROTECTED]> wrote > > Check PyWinAuto, it might provide what you need. > You can find it at : http://www.openqa.org/pywinauto/ > Nice link thanks, I've not seen that before. Using ctypes/winall and PostMessage is not friendly. Alan G.

Re: [Tutor] use my own code

2007-11-25 Thread Alan Gauld
"elis aeris" <[EMAIL PROTECTED]> wrote > ok, i can import them. > > how do I use them though? When you import the module the code is executed. If you have executable code rather than function or class definitions then it will be executed (print statements etc). Thats why its always good pra

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread Alan Gauld
"elis aeris" <[EMAIL PROTECTED]> wrote >I need to keep a bit of python code ready to run at anytime, in the >ram, but > this is what I need to do > > I am using two languages at the same time, because python doesn't > really > have any effective way of simulating keyboard and mouse events, This

[Tutor] image rendering in python

2007-11-25 Thread mobiledreamers
http://cdnll.i.imagechef.com/ic/templimg2/Shaved%20Head.jpg Do u know how to make such images using PIL or other tools in python thanks a lot for your kind help ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] altering a list of lists

2007-11-25 Thread Ricardo Aráoz
Christina Margaret Berens wrote: > I am supposed to make a very simple gameboard where a person is to > find the gold by moving up, down, left, or right. I have most of the > math worked out and am trying to place the person on the game board. > We were to make a list of lists for the board, b

Re: [Tutor] altering a list of lists

2007-11-25 Thread John Fouhy
On 26/11/2007, Christina Margaret Berens <[EMAIL PROTECTED]> wrote: > I am supposed to make a very simple gameboard where a person is to > find the gold by moving up, down, left, or right. I have most of the > math worked out and am trying to place the person on the game board. > We were to make a

[Tutor] altering a list of lists

2007-11-25 Thread Christina Margaret Berens
I am supposed to make a very simple gameboard where a person is to find the gold by moving up, down, left, or right. I have most of the math worked out and am trying to place the person on the game board. We were to make a list of lists for the board, but to place the person or gold on the bo

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread Ricardo Aráoz
elis aeris wrote: > I need to keep a bit of python code ready to run at anytime, in the ram, > but this is what I need to do > > I am using two languages at the same time, because python doesn't really > have any effective way of simulating keyboard and mouse events, > Check PyWinAuto, it might

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread Evert Rol
> I need to keep a bit of python code ready to run at anytime, in the > ram, but this is what I need to do > > I am using two languages at the same time, because python doesn't > really have any effective way of simulating keyboard and mouse events, Well, not the language itself, but there may

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread elis aeris
any specific leads? any ready code would rock thankyou for responding On Nov 26, 2007 2:41 AM, bob gailer <[EMAIL PROTECTED]> wrote: > elis aeris wrote: > > I need to keep a bit of python code ready to run at anytime, in the > > ram, but this is what I need to do > > > > I am using two languages

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread elis aeris
thanks for the reply On Nov 26, 2007 2:38 AM, Evert Rol <[EMAIL PROTECTED]> wrote: > > I need to keep a bit of python code ready to run at anytime, in the > > ram, but this is what I need to do > > > > I am using two languages at the same time, because python doesn't > > really have any effective

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread bob gailer
elis aeris wrote: > I need to keep a bit of python code ready to run at anytime, in the > ram, but this is what I need to do > > I am using two languages at the same time, because python doesn't > really have any effective way of simulating keyboard and mouse events, > > so I need to run auto it

[Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread elis aeris
I need to keep a bit of python code ready to run at anytime, in the ram, but this is what I need to do I am using two languages at the same time, because python doesn't really have any effective way of simulating keyboard and mouse events, so I need to run auto it 3, and then call my python code

Re: [Tutor] use my own code

2007-11-25 Thread Evert Rol
> ok, i can import them. > > how do I use them though? That's also in the tutorial; if there are variables (constants) instead of functions in your module, it works just the same. > > I have some .py files that have things I need to use, sometimes > > it's the functions and sometimes it's the

Re: [Tutor] use my own code

2007-11-25 Thread Evert Rol
> I have some .py files that have things I need to use, sometimes > it's the functions and sometimes it's the whole .py (they have no > functions) > > how do I use them in my other .py codes? Import them at the top of your other .py file(s): import (without the .py extension). If they're i

Re: [Tutor] use my own code

2007-11-25 Thread elis aeris
ok, i can import them. how do I use them though? On Nov 26, 2007 1:42 AM, Evert Rol <[EMAIL PROTECTED]> wrote: > > I have some .py files that have things I need to use, sometimes > > it's the functions and sometimes it's the whole .py (they have no > > functions) > > > > how do I use them

[Tutor] use my own code

2007-11-25 Thread elis aeris
I have some .py files that have things I need to use, sometimes it's the functions and sometimes it's the whole .py (they have no functions) how do I use them in my other .py codes? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman

[Tutor] Tkinter Grid Layout Problems

2007-11-25 Thread Johnston Jiaa
I'm trying to get the left part of a window to look like this: http://img.photobucket.com/albums/v228/gaypig123ABC/PB240055.jpg I tried using sticky's, but nothing seems to work correctly. This is my attempt, without the sticky's.. self.lt_lbl = Label(frame, text="Left label") s

Re: [Tutor] unexpected signal behaviour

2007-11-25 Thread Alan Gauld
I can't see anything obvious. Try putting some debug messages into read_config and the main loop. Also you could try catching the SystemExit exception at the top level and dumping a stacktrace to see exactly where it is exiting. HTH, Alan G. "dave selby" <[EMAIL PROTECTED]> wrote in message