Re: simple math question

2006-02-11 Thread Rinzwind
'/' is a floor division (1/2 == 0) unless validated by a from __future__ import division. So: 5/2=2.5 - nearest lowest non-decimal number makes it 2. 5/-2=-2.5 - nearest lowest non-decilmal number makes it -3 -- http://mail.python.org/mailman/listinfo/python-list

Re: how to remove BR using replace function?

2006-02-09 Thread Rinzwind
Works for me. txt = an unfortunate br in the middle print txt.replace(br, ) an unfortunate in the middle Though I don't like the 2 spaces it gives ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Mouse manipulation

2006-01-30 Thread Rinzwind
arkestra schreef: I am writing a script that interacts with the computer screen. Is there a module (either built in or add on) that would allow the script to manipulate the mouse pointer ? -- eg right click, move two pixels to the right, left click etc? thank you. pygame is able to do

Re: beta.python.org content

2006-01-26 Thread Rinzwind
I am not a design professional but since you didn't ask for professionals but for beginners ;-) ... - At the left hand side you used abbreviations (like PSF). Using the full name says more about the option. - I don't like capitals alot either (as used in the menu). - The corporate look of the

Re: Running a DOS exe file from python

2006-01-26 Thread Rinzwind
Hello, Something like this: progname = 'c:\tmp\myprog.exe arg1 '+'-- help' os.system(r'progname) should work too. So you should be able to change progname to any location you need to start it and all the args to whatever is needed. -- http://mail.python.org/mailman/listinfo/python-list

Re: Dominant color PIL

2006-01-23 Thread Rinzwind
For example: getdata im.getdata() = sequence Returns the contents of an image as a sequence object containing pixel values. The sequence object is flattened, so that values for line one follow directly after the values of line zero, and so on. Note that the sequence object returned by this