Menu

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 -

http://linux.byexamples.com/archives/259/a-complete-zenity-dialog-examples-1/
http://linux.byexamples.com/archives/259/a-complete-zenity-dialog-examples-2/
http://www.linuxjournal.com/content/make-your-scripts-user-friendly-zenity

Posted via email from LUG@IITD Community Blog

No comments: