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:
#!/bin/sh VALUE=`zenity --scale --text="Select window transparency." --value=50` case $? in 0) echo "You selected $VALUE%.";; 1) echo "No value selected.";; -1) echo "An unexpected error has occurred.";; esac
Haluatko kommentoida? Huomasitko virheen? Oliko ohje epäselvä? Lähetä palautetta tästä sivusta.