Re: problem moving from char to integer

2006-09-26 Thread Pontus Ekberg
Melih Onvural wrote: > Group, > > I'm trying to get a very basic cast from a string to an integer > working. Here is what I'm doing: > > for i in url: > result[counter] = int(i) > counter += 1; > > return result; > > anything that I'm doing drastically wrong? Mac OS 10.4, MacPython >

Re: How to draw a rectangle with gradient?

2006-09-16 Thread Pontus Ekberg
Daniel Mark wrote: > Hello all: > > I am using PIL to draw a rectangle filled with color blue. > > Is there anyway I could set the fill pattern so that the drawn > rectangle could be filled with > gradient blue? > > > Thank you > -Daniel I don't think there is a built-in gradient function, bu

Re: Catching toplevel move and resize

2006-09-16 Thread Pontus Ekberg
Tuomas wrote: > From a PyGTK component I would like to react moving and resizing the > toplevel window. I try to connect the toplevel 'frame-event' to my > callback, but the toplevel do not fire on moving or resizing. Any > suggestions? > > Tuomas > (Linux, Python 2.3, GTK 2.6.7) You are pro

Re: How to run Python file?

2006-09-02 Thread Pontus Ekberg
mistral wrote: > I have installed ActivePython > http://www.activestate.com/Products/ActivePython/ > How I can run Python file, test.py? $ python test.py or $ ./test.py (if test.py is executable) -- http://mail.python.org/mailman/listinfo/python-list

Re: audio with graphics

2006-08-30 Thread Pontus Ekberg
On Wed, 30 Aug 2006 17:00:56 +, [EMAIL PROTECTED] wrote: > How do I make audio play when the graphics window is opened and then > loop so it repeats until the graphics window is closed? I'm not even > sure how to make ANY audio file play in using Python. > Please give us more information, we

Re: uploading files to file system/zipping/downloading problems

2006-08-20 Thread Pontus Ekberg
On Sun, 20 Aug 2006 13:49:22 -0700, OriginalBrownster wrote: > I am currently uploading a file from a users computer to the file > system on my server using python, just reading the file and writing the > binaries. > > total_data=' ' > while True: > data = upload_file.

Re: A little assistance with os.walk please.

2006-08-14 Thread Pontus Ekberg
On Mon, 14 Aug 2006 07:44:39 -0700, KraftDiner wrote: > The os.walk function walks the operating systems directory tree. > > This seems to work, but I don't quite understand the tupple that is > returned... > Can someone explain please? > > for root, dirs, files in os.walk('/directory/'): >

Re: String Formatting

2006-08-10 Thread Pontus Ekberg
On Thu, 10 Aug 2006 05:35:26 -0700, OriginalBrownster wrote: > Hi there: > > I was wondering if its at all possible to search through a string for a > specific character. > > I want to search through a string backwords and find the last > period/comma, then take everything after that period/comm

Re: Easy image rendering?

2006-08-09 Thread Pontus Ekberg
On Wed, 09 Aug 2006 16:27:50 -0700, [EMAIL PROTECTED] wrote: > Can someone tell me what's the absolute easiest way of putting an image > on to the screen in Python without just opening it up in an > application? What's the simplest way to just put something up on the > screen? If you are using P