Re: [Tutor] How to interact with the result of subprocess.call()

2016-12-25 Thread Alan Gauld via Tutor
On 25/12/16 01:58, boB Stepp wrote: > the stdin option of call()might be used to direct the desired > keystrokes to LO? After looking at The problem is that keystrokes in a GUI are not read from stdin, they are read as events from the GUI event loop. So, if LO was a CLI tool (like vim or top, sa

Re: [Tutor] How to interact with the result of subprocess.call()

2016-12-25 Thread Jim Byrnes
On 12/24/2016 07:43 PM, Alan Gauld via Tutor wrote: On 25/12/16 01:21, Jim Byrnes wrote: I am not trying to automate libreoffice using subprocess. No, but you are trying to automate LO from within Python by sending it keystrokes and that's not easy. That's why I previously asked whether you r

Re: [Tutor] How to interact with the result of subprocess.call()

2016-12-25 Thread boB Stepp
On Sun, Dec 25, 2016 at 3:08 AM, Alan Gauld via Tutor wrote: > > On 25/12/16 01:58, boB Stepp wrote: > > > the stdin option of call()might be used to direct the desired > > keystrokes to LO? After looking at > > The problem is that keystrokes in a GUI are not read from > stdin, they are read as e

Re: [Tutor] How to interact with the result of subprocess.call()

2016-12-25 Thread Alan Gauld via Tutor
On 25/12/16 17:08, boB Stepp wrote: > Then I see that I have a GCE (Gross Conceptual Error) floating around. > I thought that event loops are just intercepting the redirected stdin > from the keyboard. This is not true? If not, then how is this > working? No event loops don't use stdin. They ar