Hi, I am running a program with the punishment subrocess.Popen(...)
what I should do is to stop the script until the launched program is
fully open. How can I do this? I used a time.sleep() function but I
think there are other ways. Thanks
Hi, I am running a program with the punishment subrocess.Popen(...) what I should do is to stop the script until the launched program is fully open. How can I do this? I used a time.sleep() function but I think there are other ways. Thanks
On Sun, Aug 21, 2022 at 2:05 PM Chris Angelico <rosuav@gmail.com> wrote:
On Mon, 22 Aug 2022 at 05:39, simone zambonardi
<simone.zambonardi@gmail.com> wrote:
Hi, I am running a program with the punishment subrocess.Popen(...) what I should do is to stop the script until the launched program is fully open. How can I do this? I used a time.sleep() function but I think there are other ways. Thanks
First you have to define "fully open". How would you know?
If you're on X11, you could conceivably use:
xwininfo -tree -root
On Mon, 22 Aug 2022 at 05:39, simone zambonardi
<simone.zambonardi@gmail.com> wrote:
Hi, I am running a program with the punishment subrocess.Popen(...) whatI should do is to stop the script until the launched program is fully open. How can I do this? I used a time.sleep() function but I think there are
other ways. Thanks
First you have to define "fully open". How would you know?
Hi, I am running a program with the punishment subrocess.Popen(...) what I should do is to stop the script until the launched program is fully open.
How can I do this? I used a time.sleep() function but I think there are
other ways. Thanks
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 61:23:18 |
Calls: | 6,712 |
Files: | 12,244 |
Messages: | 5,355,818 |