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?