GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing en.wikipedia.org — Zenity - Wikipedia
Zenity is a free software and cross-platform computer program that allows the execution of GTK dialog boxes in command-line and shell scripts. DescriptionLike tools such as whiptail and dialog, Zenity allows easy creation of GUIs,[2] though it has fewer features than more complex GUI-creation tools.[3]
— Chris Tyler[4] Cross-platform compatibilityAs of 2012, Zenity is available for Linux, BSD and Windows.[5] A Zenity port to Mac OS X is available in MacPorts and Homebrew. As of 2018, Zenity ports for Windows are available: zenity-windows (based on version 3.20.0) and winzenity (based on 3.8.0 / statically linked) Zenity does not possess any built-in scripting capabilities and it must, therefore, rely on an interpreter for processing. One option is Python in combination with the PyZenity library.[6] ExamplesPython examplefrom 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!") POSIX shell script example#!/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 Windows shell script example@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 See alsoReferences
External links
Retrieved from "https://en.wikipedia.org/w/index.php?title=Zenity&oldid=1346780005" Hidden categories:
| ||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||