diff options
author | Jeremy Bicha <jbicha@debian.org> | 2017-12-16 13:06:04 -0500 |
---|---|---|
committer | Jeremy Bicha <jbicha@debian.org> | 2017-12-16 13:06:04 -0500 |
commit | c5fd821cd582b8d8df624e42c7722a5843ace911 (patch) | |
tree | 571f12c78d287f4c365cda1fb980117176d1167c /help/C/entry.page | |
parent | Update Vcs fields for conversion to git (diff) | |
parent | New upstream version 3.26.0 (diff) | |
download | zenity-c5fd821cd582b8d8df624e42c7722a5843ace911.tar.gz zenity-c5fd821cd582b8d8df624e42c7722a5843ace911.tar.bz2 zenity-c5fd821cd582b8d8df624e42c7722a5843ace911.zip |
Update upstream source from tag 'upstream/3.26.0'
Update to upstream version '3.26.0'
with Debian dir 7b9bef2d6e33af30991a3e59a1c70875d7aa58e2
Diffstat (limited to 'help/C/entry.page')
-rw-r--r-- | help/C/entry.page | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/help/C/entry.page b/help/C/entry.page new file mode 100644 index 00000000..03b2db6e --- /dev/null +++ b/help/C/entry.page @@ -0,0 +1,57 @@ +<page xmlns="http://projectmallard.org/1.0/" + type="topic" + id="entry"> + <info> + <link type="guide" xref="index#dialogs"/> + <desc>Use the <cmd>--entry</cmd> option.</desc> + </info> + <title>Text Entry Dialog</title> + <p> + Use the <cmd>--entry</cmd> option to create a text entry dialog. <app>Zenity</app> returns the contents of the text entry to standard output. + </p> + <p> + The text entry dialog supports the following options: + </p> + + <terms> + + <item> + <title><cmd>--text</cmd>=<var>text</var></title> + <p>Specifies the text that is displayed in the text entry dialog.</p> + </item> + + <item> + <title><cmd>--entry-text</cmd>=<var>text</var></title> + <p>Specifies the text that is displayed in the entry field of the text entry dialog.</p> + </item> + + <item> + <title><cmd>--hide-text</cmd></title> + <p>Hides the text in the entry field of the text entry dialog.</p> + </item> + + </terms> + + <p> + The following example script shows how to create a text entry dialog: + </p> + +<code> +#!/bin/sh + +if zenity --entry \ +--title="Add new profile" \ +--text="Enter name of new profile:" \ +--entry-text "NewProfile" + then echo $? + else echo "No name entered" +fi +</code> + + + <figure> + <title>Text Entry Dialog Example</title> + <desc><app>Zenity</app> text entry dialog example</desc> + <media type="image" mime="image/png" src="figures/zenity-entry-screenshot.png"/> + </figure> +</page> |