3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 1231
/ 2 Years ago, fri, october 28, 2022, 9:24:59
I have python code :
import subprocess
subprocess.call(['sh', './zenity.sh'])
and zenity.sh file which is
#!/usr/bin/python
zenity --forms --title="Question"
--add-entry="Question"
Running it opens window with field to type some text.
I want to type some text inside this zenity window using for e.g. xdotool I tried to use
subprocess.call(["xdotool", "type", "some text"])
not working
then I created another .sh
#!/bin/bash
xdotool search --class zenity windowfocus type 'some text'
also not working
Any ideas?
More From » 18.04