วันศุกร์ที่ 1 กุมภาพันธ์ พ.ศ. 2551

zenity - display GTK+ dialogs

ใช้ Linux Fedora Core5

เห็นใน script ที่ใช้ลง customize desktop menu มีการใช้คำสั่ง zenity เลยลองเช็คดู

zenity --progress \
--title="Sample Nautilus Scripts Installer" \
--text="Performing installation..." \
--percentage=0


zenity --error --text="Installation aborted."


zenity --info --text="Please visit every script folder and press Ctrl+R to reload in order for Nautilus to \"see\" the scripts"


อ่อ เป็น application เอาไว้แสดง dialog box
เออ เจ๋งดีแฮะ เวลาเขียนสคริปต์ก็สามารถนำมาแสดงผลได้ด้วย
จำไว้ๆ เจ๋ง ชอบมาก หึหึ

[thada@localhost ~]$ zenity --help
Usage:
zenity [OPTION...]

Help Options:
-?, --help Show help options
--help-all Show all help options
--help-general Show general options
--help-calendar Show calendar options
--help-entry Show text entry options
--help-error Show error options
--help-info Show info options
--help-file-selection Show file selection options
--help-list Show list options
--help-notification Show notification icon options
--help-progress Show progress options
--help-question Show question options
--help-warning Show warning options
--help-scale Show scale options
--help-text-info Show text information options
--help-misc Show miscellaneous options
--help-gtk Show GTK+ Options

Application Options:
--calendar Display calendar dialog
--entry Display text entry dialog
--error Display error dialog
--info Display info dialog
--file-selection Display file selection dialog
--list Display list dialog
--notification Display notification
--progress Display progress indication dialog
--question Display question dialog
--warning Display warning dialog
--scale Display scale dialog
--text-info Display text information dialog
--display=DISPLAY X display to use

อือม สงสัยต้องหาทางแปะรูปซะหน่อยแฮะ
จบก่อนดีก่า

ไม่มีความคิดเห็น: