RE: prompting for arguments in launchers



On Wed, 2004-08-11 at 08:18 -0400, De Lucia, Peter [IT] wrote:
> Hello,
> I am not sure I understand.
> 
> My script is a bash script.
> There are 4 possible arguments.
> How does this work with what you put below?

Still using zenity, something like:

your_program $(zenity --entry --text="Argument 1" && zenity --entry --text="Argument 2")

will prompt for each arg in turn, then pass the list to your_program.
Depending on the type of argument you are asking for, zenity has widgets
for date entry, file selection, data lists.

Equally since your script is in bash, you can use zenity directly from
the script if you wish. a wrapper script which emulates the old
'gdialog' program is included, which will fallback to console dialogs if
you are concerned about keeping the script usable from the terminal. Be
warned however, that this script expects the old-fashioned (and rather
more complex) gdialog syntax.

Finally, if you want to present a more complicated interface for your
data entry, you might want to consider a small Python script using PyGTK
as a wrapper to obtain and pass on your data.

Mike



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]