[BangPypers] [X-Post] [JOB] Fwd: WebApp requirement @ GSLabs, Pune

2011-01-07 Thread steve
Sorry about the cross-post but I assume that might be people outside Pune who may be interested. I'm forwarding this mail on behalf of someone I know. People interested in this may please contact Mr. Harsh Vardhan (consultdadoo at gmail.com) directly. The job is based in Pune AFAIK. cheers,

[BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Narendra Sisodiya
In my application, I need to move mouse-pointer and generate click event. I am not making any GUI application. mouse and click event will be trigger on dekstop. Quick and dirty way to do this import os def move_mouse(x,y): os.system('xdotool mousemove ' + str(x) + ' ' + str(y)) def

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Narendra Sisodiya
On Fri, Jan 7, 2011 at 4:48 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: You should be using ncurses for applications like this which need mouse positions (x,y) on the console. http://pyncurses.sourceforge.net/ What will be the difference ? can I use pyncurses to generate global

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Anand Balachandran Pillai
On Fri, Jan 7, 2011 at 4:54 PM, Narendra Sisodiya naren...@narendrasisodiya.com wrote: On Fri, Jan 7, 2011 at 4:48 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: You should be using ncurses for applications like this which need mouse positions (x,y) on the console.

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Noufal Ibrahim
On Fri, Jan 07 2011, Narendra Sisodiya wrote: In my application, I need to move mouse-pointer and generate click event. I am not making any GUI application. mouse and click event will be trigger on dekstop. Is this for some kind of testing? If so, the Linux Desktop Testing Project might offer

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Noufal Ibrahim
On Fri, Jan 07 2011, Anand Balachandran Pillai wrote: You should be using ncurses for applications like this which need mouse positions (x,y) on the console. http://pyncurses.sourceforge.net/ Isn't ncurses used for CUI applications? I wasn't aware that you can control your graphical cursor

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Anand Balachandran Pillai
On Fri, Jan 7, 2011 at 5:08 PM, Noufal Ibrahim nou...@gmail.com wrote: On Fri, Jan 07 2011, Anand Balachandran Pillai wrote: You should be using ncurses for applications like this which need mouse positions (x,y) on the console. http://pyncurses.sourceforge.net/ Isn't ncurses used for

[BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this image=ImageOps.grayscale(image) for i in range(0,width): for j in range(0,height): if image.getpixel((i,j)) = 200:

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread kunal
On 01/07/2011 10:04 PM, Narendra Sisodiya wrote: Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this image=ImageOps.grayscale(image) for i in range(0,width): for j in range(0,height): if

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Fri, Jan 7, 2011 at 10:27 PM, kunal kunal...@gmail.com wrote: On 01/07/2011 10:04 PM, Narendra Sisodiya wrote: Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this image=ImageOps.grayscale(image) for i

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Fri, Jan 7, 2011 at 10:04 PM, Narendra Sisodiya naren...@narendrasisodiya.com wrote: Currently I am doing like this image=ImageOps.grayscale(image) for i in range(0,width): for j in range(0,height): if image.getpixel((i,j)) = 200:

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Roshan Mathews
On Fri, Jan 7, 2011 at 22:04, Narendra Sisodiya naren...@narendrasisodiya.com wrote: Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this    image=ImageOps.grayscale(image)    for i in range(0,width):        for j in

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Fri, Jan 7, 2011 at 11:00 PM, Roshan Mathews rmath...@gmail.com wrote: What is the general mailing list to ask question on python ? This is one. There is also: http://mail.python.org/mailman/listinfo/baypiggies And http://mail.python.org/mailman/listinfo/python-list I dont think

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Kenneth Gonsalves
On Fri, 2011-01-07 at 22:04 +0530, Narendra Sisodiya wrote: What is the general mailing list to ask question on python ? you are not satisfied with this list? -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Kenneth Gonsalves
On Fri, 2011-01-07 at 23:07 +0530, Venkatraman S wrote: What is the general mailing list to ask question on python ? This is one. There is also: http://mail.python.org/mailman/listinfo/baypiggies And http://mail.python.org/mailman/listinfo/python-list I dont think baypiggies is

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 6:55 AM, Kenneth Gonsalves law...@au-kbc.org wrote: On Fri, 2011-01-07 at 22:04 +0530, Narendra Sisodiya wrote: What is the general mailing list to ask question on python ? you are not satisfied with this list? -- regards Kenneth Gonsalves This is not a question

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Sat, Jan 8, 2011 at 9:23 AM, Narendra Sisodiya naren...@narendrasisodiya.com wrote: http://mail.python.org/pipermail/image-sig/2011-January/006639.html So i tried my code snippet and it worked. The above thread asks you to convert to greyscale and then do a pixel check. For a sufficiently

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 10:14 AM, Venkatraman S venka...@gmail.com wrote: On Sat, Jan 8, 2011 at 9:23 AM, Narendra Sisodiya naren...@narendrasisodiya.com wrote: http://mail.python.org/pipermail/image-sig/2011-January/006639.html So i tried my code snippet and it worked. I am sorry but

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Sat, Jan 8, 2011 at 10:19 AM, Narendra Sisodiya naren...@narendrasisodiya.com wrote: I am sorry but your code snippet was less efficient then what i posted initially. moreover, I was having black and white image. I thought you needed BW image. (I should read properly!!) Also, can you

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 10:22 AM, Venkatraman S venka...@gmail.com wrote: On Sat, Jan 8, 2011 at 10:19 AM, Narendra Sisodiya naren...@narendrasisodiya.com wrote: I am sorry but your code snippet was less efficient then what i posted initially. moreover, I was having black and white