Re: how to automate java application in window using python

2016-09-15 Thread meInvent bbird
On Thursday, September 15, 2016 at 3:52:41 PM UTC+8, Lawrence D’Oliveiro wrote: > On Thursday, September 15, 2016 at 7:13:05 PM UTC+12, meInvent bbird wrote: > > how to automate java application in window using python > > > > 1. scroll up or down of scroll bar > > 2. click button > > 3. type text

how to robot recognize basic geometric object in window or ubuntu window

2016-09-15 Thread meInvent bbird
i am doing a robot to automate window itself with python i give some basic png diagram such as square, circle, triangle and hope it recognize all kinds of square like things in window such as textbox of notepad etc how a robot recognize basic geometric object in window or ubuntu window i use c

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Gregory Ewing
Marko Rauhamaa wrote: It is actually quite interesting how the brain forms an accurate idea of a straight line and, say, a circle. Whenever you get a new pair of glasses, the brain needs a recalibration and manages to do it within a week. I had an interesting experience in that area a few years

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Random832
On Thu, Sep 15, 2016, at 15:31, Steve D'Aprano wrote: > Light follows geodesics, not straight lines. What is a straight line on a curved space if not a geodesic? That was actually what I was getting at. -- https://mail.python.org/mailman/listinfo/python-list

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Steve D'Aprano
On Fri, 16 Sep 2016 05:19 am, Random832 wrote: > On Thu, Sep 15, 2016, at 15:06, Steve D'Aprano wrote: >> No, the horizon would still be horizontal. It merely wouldn't *look* >> horizontal, an optical illusion. > > I guess that depends on your definition of what a horizon is - and what > a straig

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Ethan Furman
On 09/15/2016 12:19 PM, Random832 wrote: On Thu, Sep 15, 2016, at 15:06, Steve D'Aprano wrote: No, the horizon would still be horizontal. It merely wouldn't *look* horizontal, an optical illusion. I guess that depends on your definition of what a horizon is - and what a straight line is, if

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Marko Rauhamaa
Random832 : > On Thu, Sep 15, 2016, at 15:06, Steve D'Aprano wrote: >> No, the horizon would still be horizontal. It merely wouldn't *look* >> horizontal, an optical illusion. > > I guess that depends on your definition of what a horizon is - and > what a straight line is, if not the path followed

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Random832
On Thu, Sep 15, 2016, at 15:06, Steve D'Aprano wrote: > No, the horizon would still be horizontal. It merely wouldn't *look* > horizontal, an optical illusion. I guess that depends on your definition of what a horizon is - and what a straight line is, if not the path followed by a beam of light. -

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Steve D'Aprano
On Thu, 15 Sep 2016 04:02 pm, Random832 wrote: > On Wed, Sep 14, 2016, at 23:12, Steve D'Aprano wrote: >> Yes it does. Even an infinitely large flat plane has a horizon almost >> identical to the actual horizon. > > Your link actually doesn't support the latter claim, it goes into some > detail o

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Chris Angelico
On Fri, Sep 16, 2016 at 4:41 AM, Steve D'Aprano wrote: >> Kanvas? > > Oh vorry about that, that'v a villy mivtake. I obsiouvly meant to type > Kansav. We're not in Kanvas any more, Toto! ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Steve D'Aprano
On Thu, 15 Sep 2016 11:45 pm, Grant Edwards wrote: > On 2016-09-15, Steve D'Aprano wrote: >> On Thu, 15 Sep 2016 06:19 am, breamore...@gmail.com wrote: >> >>> It is so blantantly obvious that the world is not flat I find this >>> discussion flabbergasting. >> >> You wouldn't say that if you lived

Re: Playing an audio file, but not waiting for it to finish?

2016-09-15 Thread Steve D'Aprano
On Fri, 16 Sep 2016 04:06 am, kerbingamer376 wrote: > Hi, > I have a library that allows me to play sound files. However, the play > function waits for the sound to finish before it returns, and I'd like to > be able to start the sound playing, and then have it return immediately so > my program c

Re: Playing an audio file, but not waiting for it to finish?

2016-09-15 Thread Chris Angelico
On Fri, Sep 16, 2016 at 4:06 AM, kerbingamer376 wrote: > I have a library that allows me to play sound files. However, the play > function waits for the sound to finish before it returns, and I'd like to be > able to start the sound playing, and then have it return immediately so my > program c

Re: how to automate java application in window using python

2016-09-15 Thread kerbingamer376
On Thursday, September 15, 2016 at 8:13:05 AM UTC+1, meInvent bbird wrote: > how to automate java application in window using python > > 1. scroll up or down of scroll bar > 2. click button > 3. type text in textbox wtf? -- https://mail.python.org/mailman/listinfo/python-list

Playing an audio file, but not waiting for it to finish?

2016-09-15 Thread kerbingamer376
Hi, I have a library that allows me to play sound files. However, the play function waits for the sound to finish before it returns, and I'd like to be able to start the sound playing, and then have it return immediately so my program can continue, but also be able to know when the sound finishe

Re: logging TypeError: not all arguments converted during string formatting

2016-09-15 Thread Peter Otten
Daiyue Weng wrote: > Hi, I am trying to record memory and CPU usages and load a logger from an > external config file (logging.conf), [snip] One important debugging strategy is to try and find the minimal example that produces a problem. In this case you can provoke the the behaviour you are s

Re: logging TypeError: not all arguments converted during string formatting

2016-09-15 Thread MRAB
On 2016-09-15 15:57, Daiyue Weng wrote: Hi, I am trying to record memory and CPU usages and load a logger from an external config file (logging.conf), [snip] import logging import psutil logging.config.fileConfig('logging.conf') hardware_log = logging.getLogger(HARDWARELOGNAME) free_mem_g

logging TypeError: not all arguments converted during string formatting

2016-09-15 Thread Daiyue Weng
Hi, I am trying to record memory and CPU usages and load a logger from an external config file (logging.conf), [loggers] keys=root,hardware_log [handlers] keys=consoleHandler,hardwareFileHandler [formatters] keys=hardwareFormatter [logger_root] level=DEBUG handlers=consoleHandler [logger_hardw

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Grant Edwards
On 2016-09-15, Steve D'Aprano wrote: > On Thu, 15 Sep 2016 06:19 am, breamore...@gmail.com wrote: > >> It is so blantantly obvious that the world is not flat I find this >> discussion flabbergasting. > > You wouldn't say that if you lived in Kanvas, or the west coast of Ireland. > > I'm told that

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread Gregory Ewing
Dennis Lee Bieber wrote: And then there is Pratchett's Discworld... which is both flat and round (just not spherical) And it has a horizon -- if you go far enough you fall off the edge. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: ‘pip2 install cryptography’ does not work

2016-09-15 Thread Cecil Westerhof
On Thursday 15 Sep 2016 10:19 CEST, die...@handshake.de wrote: > Cecil Westerhof writes: > >> I try to do a: >> pip2 install cryptography >> >> But this give: gcc -pthread -shared >> build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o >> -L/usr/lib64 -lssl -lcrypto -lpython2.7 -o >

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-15 Thread alister
On Wed, 14 Sep 2016 18:04:26 -0700, Chris Kaynor wrote: > On Wed, Sep 14, 2016 at 1:19 PM, wrote: > >> It is so blantantly obvious that the world is not flat I find this >> discussion flabbergasting. Anybody who has tried to take any form of >> vehicle up, or probably more dangerously down, any

Re: Why don't we call the for loop what it really is, a foreach loop?

2016-09-15 Thread alister
On Wed, 14 Sep 2016 22:01:34 -0700, Paul Rubin wrote: > Travis Griggs writes: >> for each in ['cake'] + ['eat', 'it'] * 2: >> print(each) > > https://pbs.twimg.com/media/Cr-edT2VUAArpVL.jpg the "Cowboy Song" buy Furrokh Bulsara -- Olmstead's Law: After all is said and do

Re: ‘pip2 install cryptography’ does not work

2016-09-15 Thread dieter
Cecil Westerhof writes: > I try to do a: > pip2 install cryptography > > But this give: > gcc -pthread -shared > build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o > -L/usr/lib64 -lssl -lcrypto -lpython2.7 -o > build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/_op

Re: how to automate java application in window using python

2016-09-15 Thread Lawrence D’Oliveiro
On Thursday, September 15, 2016 at 7:13:05 PM UTC+12, meInvent bbird wrote: > how to automate java application in window using python > > 1. scroll up or down of scroll bar > 2. click button > 3. type text in textbox Well, don’t leave us in suspense! Give us the link to your blog post! -- https:

how to automate java application in window using python

2016-09-15 Thread meInvent bbird
how to automate java application in window using python 1. scroll up or down of scroll bar 2. click button 3. type text in textbox -- https://mail.python.org/mailman/listinfo/python-list