After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611931 - zenity must provide an option for multiple text entires in a single window
zenity must provide an option for multiple text entires in a single window
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-05 18:23 UTC by hemanth
Modified: 2011-01-18 03:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description hemanth 2010-03-05 18:23:32 UTC
read -a option in a script to read multiple inputs from a same window you be very useful, for example to read user-name and password twice from a single window to a array will be very useful, rather than using text-entry thrice for this, an option like zenity --entry --text="Name" --text="password" --text="re-enter"
Comment 1 Arx Cruz 2011-01-17 14:30:24 UTC
Hello,

There's a --forms option already on master.

Usage:
zenity --forms --add-entry="Type your name" --add-password="Type your password" --add-password="Retype your password"

Other options:
--add-calendar=TEXT - Add a calendar
--separator=SEPARATOR - Change the separator (default is "|" )
--forms-date-format=PATTERN - Change date format for calendar widget ie. "%d / %m / %Y"
Comment 2 hemanth 2011-01-18 03:24:51 UTC
Kool fix, which checkout the latest source and compile.

-- 
'I am what I am because of who we all are'
h3manth.com
-- Hemanth HM