Scale Dialog

Use the --scale option to create a scale dialog.

The scale dialog supports the following options:


Set the dialog text. (Default: Adjust the scale value)


Set initial value. (Default: 0) You must specify value between minimum value to maximum value.


Set minimum value. (Default: 0)


Set maximum value. (Default: 100)


Set step size. (Default: 1)


Print value to standard output, whenever a value is changed.


Hide value on dialog.

The following example script shows how to create a scale dialog:


VALUE=`zenity --scale --text="Select window transparency." --value=50`

case $? in
		echo "You selected $VALUE%.";;
                echo "No value selected.";;
                echo "An unexpected error has occurred.";;

Scale Dialog Example

Zenity scale dialog example