1ZENITY(1)                   General Commands Manual                  ZENITY(1)
2
3
4

NAME

6       zenity - display GTK+ dialogs
7

SYNOPSIS

9       zenity [options]
10

DESCRIPTION

12       zenity  is a program that will display GTK+ dialogs, and return (either
13       in the return code, or on standard output) the users input. This allows
14       you to present information, and ask for information from the user, from
15       all manner of shell scripts.
16
17       For example, zenity --question will return either 0 or 1, depending  on
18       whether  the  user  pressed OK or Cancel. zenity --entry will output on
19       standard output what the user typed into the text entry field.
20
21       Comprehensive documentation is available in  the  GNOME  Help  Browser,
22       under GNOME/Utilities.
23

OPTIONS

25       This  program  follows  the  usual  GNU  command line syntax, with long
26       options starting with two dashes (`-').
27
28
29       Dialog options
30
31
32       --calendar
33              Display calendar dialog
34
35       --entry
36              Display text entry dialog
37
38       --error
39              Display error dialog
40
41       --file-selection
42              Display file selection dialog
43
44       --info Display info dialog
45
46       --list Display list dialog
47
48       --notification
49              Display notification icon
50
51       --progress
52              Display progress indication dialog
53
54       --question
55              Display question dialog
56
57       --text-info
58              Display text information dialog
59
60       --warning
61              Display warning dialog
62
63
64       General options
65
66
67       --title=TITLE
68              Set the dialog title
69
70       --window-icon=ICONPATH
71              Set the window icon
72
73       --width=WIDTH
74              Set the dialog width
75
76       --height=HEIGHT
77              Set the dialog height
78
79       Calendar options
80
81
82       --text=STRING
83              Set the dialog text
84
85       --day=INT
86              Set the calendar day
87
88       --month=INT
89              Set the calendar month
90
91       --year=INT
92              Set the calendar year
93
94       --date-format=STRING
95              Set the format for the returned date
96
97
98       Text entry options
99
100
101       --text=STRING
102              Set the dialog text
103
104       --entry-text=STRING
105              Set the entry text
106
107       --hide-text
108              Hide the entry text
109
110
111       Error options
112
113       --text=STRING
114              Set the dialog text
115
116
117       File selection options
118
119       --filename=FILENAME
120              Set the filename
121
122       --multiple
123              Allow selection of multiple filenames in file selection dialog
124
125       --separator=SEPARATOR
126              Specify separator character when returning multiple filenames
127
128
129       Info options
130
131       --text=STRING
132              Set the dialog text
133
134
135       List options
136
137
138       --text=STRING
139              Set the dialog text
140
141       --column=STRING
142              Set the column header
143
144       --checklist
145              Use check boxes for first column
146
147       --radiolist
148              Use radio buttons for first column
149
150       --separator=STRING
151              Set output separator character
152
153       --editable
154              Allow changes to text
155
156       --print-column=STRING
157              Specify what column to print to standard output. The default  is
158              to  return the first column. 'ALL' may be used to print all col‐
159              umns.
160
161
162       Notification options
163
164
165       --text=STRING
166              Set the notification text
167
168
169       Progress options
170
171
172       --text=STRING
173              Set the dialog text
174
175       --percentage=INT
176              Set initial percentage
177
178       --auto-close
179              Close dialog when 100% has been reached
180
181       --pulsate
182              Pulsate progress bar
183
184              Question options
185
186       --text=STRING
187              Set the dialog text
188
189
190       Text options
191
192
193       --filename=FILENAME
194              Open file
195
196       --editable
197              Allow changes to text
198
199
200       Warning options
201
202
203       --text=STRING
204              Set the dialog text
205
206
207       Miscellaneous options
208
209
210       -?, --help
211              Show summary of options.
212
213       --about
214              Display an about dialog.
215
216       --version
217              Show version of program.
218
219
220       Also the standard GTK+ options are accepted.
221
222

EXAMPLES

224       Display a file selector with the title Select a  file  to  remove.  The
225       file selected is returned on standard output.
226
227              zenity  --title="Select a file to remove" --file-selection
228
229       Display  a  text  entry  dialog with the title Select Host and the text
230       Select the host you would like  to  flood-ping.  The  entered  text  is
231       returned on standard output.
232
233              zenity   --title  "Select  Host" --entry --text "Select the host
234              you would like to flood-ping"
235
236       Display a dialog, asking Microsoft Windows has been  found!  Would  you
237       like  to remove it?. The return code will be 0 (true in shell) if OK is
238       selected, and 1 (false) if Cancel is selected.
239
240              zenity  --question --title "Alert"   --text  "Microsoft  Windows
241              has been found! Would you like to remove it?"
242
243       Show  the search results in a list dialog with the title Search Results
244       and the text Finding all header files....
245
246              find . -name '*.h' |  zenity  --list  --title  "Search  Results"
247              --text "Finding all header files.." --column "Files"
248
249       Show an icon in the notification area
250
251              zenity  --notification  --window-icon=update.png  --text "System
252              update necessary!"
253
254       Display a weekly shopping list in a check list dialog with  Apples  and
255       Oranges pre selected
256
257              zenity  --list  --checklist  --column "Buy" --column "Item" TRUE
258              Apples TRUE Oranges FALSE Pears FALSE Toothpaste
259
260       Display a progress dialog while searching for all the postscript  files
261       in your home directory
262
263       find $HOME -name '*.ps' | zenity --progress --pulsate
264

AUTHOR

266       Zenity was written by Glynn Foster <glynn.foster@sun.com>.
267
268       This manual page was written by Ross Burton <ross@burtonini.com>.
269
270

SEE ALSO

272       gdialog(1), dialog(1)
273
274
275
276                              February 1st, 2003                     ZENITY(1)
Impressum