linuxOS_AP05/debian/test/usr/share/help/uk/zenity/entry.page
2025-09-26 09:40:02 +08:00

55 lines
1.7 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="entry" xml:lang="uk">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--entry</cmd> option.</desc>
</info>
<title>Діалог вводу тексту</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>Діалог вводу тексту підтримує наступні параметри:</p>
<terms>
<item>
<title><cmd>--text</cmd>=<var>text</var></title>
<p>Вказує текст, який відображається у діалозі вводу тексту.</p>
</item>
<item>
<title><cmd>--entry-text</cmd>=<var>text</var></title>
<p>Вказує текст, який відображається у полі вводу тексту в діалозі вводу тексту.</p>
</item>
<item>
<title><cmd>--hide-text</cmd></title>
<p>Текст у полі вводу тексту ховається.</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>Приклад діалогу вводу тексту</title>
<desc><app>Zenity</app> text entry dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-entry-screenshot.png"/>
</figure>
</page>