RE: prompting for arguments in launchers
- From: "De Lucia, Peter [IT]" <peter delucia citigroup com>
- To: "Mike Newman" <mike greatnorthern demon co uk>
- Cc: gnome-list gnome org
- Subject: RE: prompting for arguments in launchers
- Date: Wed, 11 Aug 2004 14:56:19 -0400
Thank you! I got it working.. there also a conflict in my LD_LIBRARY_PATH!
Thanks again!
Peter.
-----Original Message-----
From: Mike Newman [mailto:mike greatnorthern demon co uk]
Sent: Wednesday, August 11, 2004 2:05 PM
To: De Lucia, Peter [IT]
Cc: Bruno Orcha García; gnome-list gnome org
Subject: 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]