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

Wolf Bergenheim wolf+grass at bergenheim.net
Wed Apr 7 21:03:52 EDT 2010


Have a look at v.krige[1]. It is written in python and fetches a list
of suitable vector maps dynamically[2]. It makes its own gui.

--Wolf

[1] http://trac.osgeo.org/grass/browser/grass/trunk/scripts/v.krige
[2] http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/scripts/vkrige.py#L75

On Wed, Apr 7, 2010 at 14:22, Luisa Peña <luisapena1979 at gmail.com> wrote:
> Hello Glynn
>>
>> You can't do this via g.parser. You would need to either dynamically
>> generate a script with a suitable header,
>
> Ah is it possible to have a script in which i have a dynamic script? Is
> there any available script/function, developed for GRASS, in which I can get
> some "inspiration"?
>
>>
>> or have the script create
>> the GUI itself using wxPython or Tcl/Tk.
>>
>
> So you mean, instead of using g.parser, that reads wxpython file that define
> module, My script would have Wxpython code similar to the one, that g.parser
> uses, but with dynamic fields?
> For instance, combo-boxes that lists available rasters/vectorial files in
> GRASS are dynamic. Right?
> Thank you Glynn and everyone else for your help
> Luisa
> _______________________________________________
> grass-gui mailing list
> grass-gui at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-gui
>
>



-- 
<8  )---- Wolf Bergenheim ----(  3>


More information about the grass-gui mailing list