~ubuntu-branches/ubuntu/precise/zenity/precise-updates

« back to all changes in this revision

Viewing changes to help/sl/entry.page

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-03-29 14:50:15 UTC
  • mfrom: (1.1.45)
  • Revision ID: package-import@ubuntu.com-20120329145015-p6jkb44cf19r2qyi
Tags: 3.4.0-0ubuntu1
* New upstream release:
  - Add support for lists and trees with --forms
  - Fix warning reading list from stdin
* debian/zenity-common.install:
  - Doesn't install omf files anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="entry" xml:lang="sl">
 
3
  <info>
 
4
    <link type="guide" xref="index#dialogs"/>
 
5
    <desc>Use the <cmd>--entry</cmd> option.</desc>
 
6
  </info>
 
7
  <title>Text Entry Dialog</title>
 
8
    <p>
 
9
        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. 
 
10
    </p>        
 
11
    <p> 
 
12
        The text entry dialog supports the following options:
 
13
    </p>
 
14
 
 
15
    <terms>
 
16
 
 
17
      <item>
 
18
        <title><cmd>--text</cmd>=<var>text</var></title>
 
19
        <p>Specifies the text that is displayed in the text entry dialog.</p>
 
20
      </item>
 
21
 
 
22
      <item>
 
23
        <title><cmd>--entry-text</cmd>=<var>text</var></title>
 
24
        <p>Specifies the text that is displayed in the entry field of the text entry dialog.</p>
 
25
      </item>
 
26
 
 
27
      <item>
 
28
        <title><cmd>--hide-text</cmd></title>
 
29
        <p>Hides the text in the entry field of the text entry dialog.</p>
 
30
      </item>
 
31
 
 
32
    </terms>
 
33
 
 
34
    <p>
 
35
      The following example script shows how to create a text entry dialog:
 
36
    </p>
 
37
 
 
38
<code>
 
39
#!/bin/sh
 
40
 
 
41
if zenity --entry \
 
42
--title="Add new profile" \
 
43
--text="Enter name of new profile:" \
 
44
--entry-text "NewProfile"
 
45
  then echo $?
 
46
  else echo "No name entered"
 
47
fi
 
48
</code>
 
49
 
 
50
 
 
51
    <figure id="zenity-entry-screenshot">
 
52
      <title>Text Entry Dialog Example</title>
 
53
      <desc><app>Zenity</app> text entry dialog example</desc>
 
54
      <media type="image" mime="image/png" src="figures/zenity-entry-screenshot.png"/>
 
55
    </figure>
 
56
</page>