Skip to main content

Zenity Commands in Linux


What is Zenity?

zenity is a program that will display GTK+ dialogs, and return (either in the return code, or on standard output) the users input. This allows you to present information, and ask for information from the user, from all manner of shell scripts.
For example, zenity --question will return either 0, 1 or 5, depending on whether the user pressed OK, Cancel or timeout has been reached. zenity --entry will output on standard output what the user typed into the text entry field.


Lets see some major & special zenity commands

Options in Zenity:

1.man zenity : By using this command one can easily find the commands inside the zenity.



2.zenity --error text="ERROR"


3.zenity --color-selection yellow

4.zenity --progress


5.zenity --question --text="Are you sure you want to exit?


6.zenity --info --title="COFFE-MACHINE" --window-icon="/index.jpg" --text="let's take a break"


7.zenity --list --radiolist --text="choose your gender" --hide-header --column "Select" --column "gender" FALSE "MALE" FALSE "FEMALE"


8.zenity --forms --text="LOGIN" --add-entry="username" --add-entry="password"


Comments

Popular posts from this blog

What are the differences between StaticJsonBuffer and DynamicJsonBuffer?

   StaticJsonBuffer ArduinoJson  uses preallocated memory to store the data and this is possible due to StaticJsonBuffer. If one has to use this library then firstly they should create t he StaticJsonBuffer just like: StaticJsonBuffer<200> jsonBuffer; then it creates an  memory of 200 byte size which creates allocated memory in the system for storing the data static as the name tells it has fixed in size type of memory.Also we cannot reuse the memory once it gets allocated.it has high speed performance. DynamicJsonBuffer This library supports DynamicJsonBuffer since it has parameters for dynamic memory allocation but it will be more useful if we use this buffer in the machine having memory more than 10KB of RAM. to use this syntax is just similar. DynamicJsonBuffer jsonBuffer; This will create one dynamic memory for the system so that it can allocate it more precisely.its size is variable it stores the data in heap.while storing it take time and its somehow pro...

Introduction Types of Computer Network

  What is a Computer Network? Computer networks is bunch of computers connected through optical cables, wires and fibers so that it interacts with each other through networks. The goal is to share the content and the information among the system of same network or other. In computer networks there are different types of networks that shares the information among each other they maybe simplex or complex ones.

Implement the concept of template in python & the concept of do while loop in python.