|
5.
|
|
|
The following example script shows how to create a warning dialog:
|
|
|
|
下面的实例脚本演示如何创建一个警告对话框:
|
|
Translated and reviewed by
luojie-dune
|
|
|
|
Located in
C/warning.page:13(p)
|
|
6.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
Translated and reviewed by
luojie-dune
|
|
|
|
Located in
C/warning.page:17(code)
|
|
7.
|
|
|
Warning Dialog Example
|
|
|
|
警告框范例
|
|
Translated by
YunQiang Su
|
|
|
|
Located in
C/warning.page:26(title)
|
|
8.
|
|
|
<app>Zenity</app> warning dialog example
|
|
|
|
<app>Zenity</app> 警告对话框实例
|
|
Translated and reviewed by
luojie-dune
|
|
|
|
Located in
C/warning.page:27(desc)
|
|
9.
|
|
|
You can use <app>Zenity</app> to create simple dialogs that interact graphically with the user.
|
|
|
|
可以使用<app>Zenity</app> 创建简单的对话框类图形交互。
|
|
Translated and reviewed by
luojie-dune
|
|
|
|
Located in
C/usage.page:6(desc)
|
|
10.
|
|
|
Usage
|
|
|
|
用法
|
|
Translated by
YunQiang Su
|
|
|
|
Located in
C/usage.page:8(title)
|
|
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.
|
|
|
|
您可以创建从用户那儿获得信息的对话框。例如,您可以提示用户从日历对话框中选择日期,或者从文件选择框里选择一个文件。
|
|
Translated by
YunQiang Su
|
|
|
|
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.
|
|
|
|
您可以创建向用户提供信息的对话框。例如,您可以用进度条来显示一个操作的当前运行状态,或者用一个警告框提醒用户。
|
|
Translated by
YunQiang Su
|
|
|
|
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.
|
|
|
|
当用户关闭对话框时,<app>Zenity</app>将对话框产生的文字信息简单导出。
|
|
Translated and reviewed by
luojie-dune
|
|
|
|
Located in
C/usage.page:24(p)
|