Text Information Dialog

原文来自:http://library.gnome.org/users/zenity/stable/zenity-text-options.html.en

 

Use the --text-info option to create a text information dialog.

The text information dialog supports the following options:

--filename =filename

Specifies a file that is loaded in the text information dialog.

--editable

Allows the displayed text to be edited. The edited text is returned to standard output when the dialog is closed.

The following example script shows how to create a text information dialog:

        #!/bin/sh

FILE=`zenity --file-selection /
--title="Select a File"`

case $? in
0)
zenity --text-info /
--title=$FILE /
--filename=$FILE /
--editable 2>/tmp/tmp.txt;;
1)
echo "No file selected.";;
-1)
echo "No file selected.";;
esac
Figure 11 Text Information Dialog Example

你可能感兴趣的:(File,dialog,output)