The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 1,757     Votes:  5 
Tags: 18.04   bash   python   xdotool   zenity  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1337013
Title: How to interact with zenity window and type some text inside it?
ID: /2021/05/08/How-to-interact-with-zenity-window-and-type-some-text-inside-it_
Created: May 8, 2021    Edited:  January 8, 2022
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Change your zenity.sh file with:

#!/usr/bin/python

zenity --forms --title="Question" \
   --add-entry="Question" \

To:

#!/bin/bash

zenity --forms --title="Question" \
   --add-entry="Question" \

You are not calling zenity within a python script. You are calling it from a bash/shell command so your shebang (first line) must be #!/bin/bash not #!/usr/bin/python.

⇧ How to improve/fix choppy audio when streaming with pulseaudio? How can I tell which of these video devices is a webcam?  ⇩