11 April 2010

Zenity - add GUI dialogs to your shell scripts !

Zenity is the best tool for creating GUI for shell scripts.

for example -

szDate=$(zenity --calendar --text "Pick a day" --title "Medical Leave" --day 23 --month 5 --year 2008); echo $szDate
will open a datepicker dialog box. like this.

zenity calendar dialog

Other use
** Date Picker
** File Picker
** Display warning
** Asking yes/no questions
** Display Processbar

Have a look at this tutorial -

Posted via email from LUG@IITD Community Blog

No comments: