Zenity
Zenity is a free software and cross-platform computer program that allows the execution of GTK dialog boxes in command-line and shell scripts.
≈ 1 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Zenity is a free software and cross-platform computer program that allows the execution of GTK dialog boxes in command-line and shell scripts. from PyZenity import InfoMessage from PyZenity import Question from PyZenity import ErrorMessage choice = Question("Please press a button.") if choice: InfoMessage("You pressed Yes!") else: ErrorMessage("You pressed No!") !/bin/sh if zenity --question --text="Please press a button."; then zenity --info --text="You pressed Yes\!" else zenity --error --text="You pressed No\!" fi @echo off zenity --question --ok-label="Yes" --cancel-label="No" --text="Please press a button." if %ERRORLEVEL% == 1 goto error zenity --info --text="You pressed Yes!" goto end error zenity --error --text="You pressed No!" end
Text derived from https://en.wikipedia.org/w/index.php?oldid=1346780005 under CC BY-SA 4.0; modifications have been made.