Text Information Dialog

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

The text information dialog supports the following options:

--filename=nom_de_fichièr

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="Seleccionatz un fichièr"`

        case $? in
                 0)
                        zenity --text-info  \
                          --title=$FILE  
                          --filename=$FILE  \
                          --editable 2>/tmp/tmp.txt;;
                 1)
                        echo "Pas de fichièr seleccionat.";;
                -1)
                        echo "Pas de fichièr seleccionat.";;
        esac
      

Figure 11Text Information Dialog Example