Discussion:
[GRASSGUI] module dialogs in wxPython
Michael Barton
2007-11-14 22:56:52 UTC
Permalink
Daniel and Glynn,

What would it take to have a module come up in the wxPython version of the
autogenerated dialog if GRASS_GUI is set to wx in .grassrc6? I think this
discussion got started sometime back, but wasn't resolved.

I think we're close enough to begin distributing the new GUI as an alternate
interface for people to use, beginning the transition to wxPython, that we
could think about what is needed to do this.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-gui/attachments/20070805/81b61683/attachment.html
Glynn Clements
2007-11-14 22:56:52 UTC
Permalink
Post by Michael Barton
What would it take to have a module come up in the wxPython version of the
autogenerated dialog if GRASS_GUI is set to wx in .grassrc6? I think this
discussion got started sometime back, but wasn't resolved.
It needs:

1. A Python equivalent of lib/gis/gui.tcl.

2. A Python equivalent of generate_tcl(), unless you make #1 accept
XML, in which case G_usage_xml() can be used.

3. Some changes to G_gui() to select the desired GUI based upon
$GRASS_GUI.

#1 is the main part; the rest is straightforward.
--
Glynn Clements <***@gclements.plus.com>
Michael Barton
2007-11-14 22:56:52 UTC
Permalink
Post by Glynn Clements
Post by Michael Barton
What would it take to have a module come up in the wxPython version of the
autogenerated dialog if GRASS_GUI is set to wx in .grassrc6? I think this
discussion got started sometime back, but wasn't resolved.
1. A Python equivalent of lib/gis/gui.tcl.
This exists. menform.py
Post by Glynn Clements
2. A Python equivalent of generate_tcl(), unless you make #1 accept
XML, in which case G_usage_xml() can be used.
menuform accepts and parses xml generated by
<command> --interface-description

Futzing around with this, I was able to get a wxPython last night dialog by
entering:

python $GISBASE/etc/wx/gui_modules/menuform.py <command>
Post by Glynn Clements
3. Some changes to G_gui() to select the desired GUI based upon
$GRASS_GUI.
So it seems to be down to #3
Post by Glynn Clements
#1 is the main part; the rest is straightforward.
Excellent

Michael

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Loading...