PDA

View Full Version : Zenity multiple dialogs in one window?



diafygi
October 20th, 2008, 03:44 PM
Hey all,

I am just getting started in shell scripting, and I'm trying to understand zenity more. Does anyone know if it is possible to generate multiple dialogs in one window?

For example, I would like to create a window that has two text entry dialogs in it. However, all I can get zenity to currently do is create two separate windows, each with a text entry.

If zenity can't combine dialogs to a single window, what is the next step? Python?

geirha
October 20th, 2008, 03:58 PM
I'm afraid zenity isn't that advanced, so I guess you'll need to program the GUI yourself. Python should be one of the easier choices for that.

slavik
October 20th, 2008, 04:35 PM
I'm afraid zenity isn't that advanced, so I guess you'll need to program the GUI yourself. Python should be one of the easier choices for that.
along with Perl and Ruby. :)

roccivic
October 20th, 2008, 05:01 PM
If you have C background, then GTK+.
Which is what zenity is written in by the way.

Rouslan

dtmilano
October 20th, 2008, 05:06 PM
Try autoglade (http://autoglade.sf.net) and you will be able to design your dialogs with glade and obtain values back to your script.

diafygi
October 22nd, 2008, 06:23 AM
Try autoglade (http://autoglade.sf.net) and you will be able to design your dialogs with glade and obtain values back to your script.

Thanks all for your suggestions. It looks like it will be quite a bit more work to consolidate a multi-step gui script to a single-step.