[GRASS-GUI] List of items in a combo-box or a list

Glynn Clements glynn at gclements.plus.com
Wed Apr 7 01:38:48 EDT 2010


Luisa Peña wrote:

> I'm new at this mailing list, but I have been using GRASS for a While. But
> now, I need to create a script to process a few data but and I have a
> technical GUI-question:
> I want to have an script-input to be a combo-box or a list of options. But,
> this list instead of being pre-defined (e.g. r.in.wms the key option format
> has a pre-defined list of possibilities that the user can select) I don't
> want to have a list of possible options Header but read from other
> source(e.g. global variables, text file, other variables). Is this possible?
> (Did I made myself clear?)

You can't do this via g.parser. You would need to either dynamically
generate a script with a suitable header, or have the script create
the GUI itself using wxPython or Tcl/Tk.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-gui mailing list