If you want to give a list for user to choose, you can use the option "--list". The command synopsis as below: SYNOPSIS zenity --list [--title=title] [--window-icon=path] [--width=width] [--height=height] [--timeout=seconds] [--column=text] [--checklist] [--radiolist] [--separator=character] [--multiple] [--editable] [--print-column=number] [--hide-column=number] Just like " --calendar ", if you press "ESC" key or click button "Cancel", the return code will be "1". If you select one option and click "OK", zenity will response the option and return the code will be "0". And also the same effect about the options "--title", "--timeout"...etc, for saving your time, please refer to the previous post " [Level 2] Shell Interactive With Zenity Episode 1 -- calendar ", too. About "--multiple" and "--separator", please refer to tht previous post " [Lev...
Comments
Post a Comment