|
11.
|
|
|
When you write scripts, you can use <app>Zenity</app> to create simple dialogs that interact graphically with the user, as follows:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:9(p)
|
|
12.
|
|
|
You can create a dialog to obtain information from the user. For example, you can prompt the user to select a date from a calendar dialog, or to select a file from a file selection dialog.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:14(p)
|
|
13.
|
|
|
You can create a dialog to provide the user with information. For example, you can use a progress dialog to indicate the current status of an operation, or use a warning message dialog to alert the user.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:19(p)
|
|
14.
|
|
|
When the user closes the dialog, <app>Zenity</app> prints the text produced by the dialog to standard output.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:24(p)
|
|
15.
|
|
|
When you write <app>Zenity</app> commands, ensure that you place quotation marks around each argument.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:29(p)
|
|
16.
|
|
|
For example, use:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:32(p)
|
|
17.
|
|
|
zenity --calendar --title="Holiday Planner"
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:33(screen)
|
|
18.
|
|
|
Do not use:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:34(p)
|
|
19.
|
|
|
zenity --calendar --title=Holiday Planner
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:35(screen)
|
|
20.
|
|
|
If you do not use quotation marks, you might get unexpected results.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
C/usage.page:36(p)
|