'/' 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
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
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
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
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
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