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
Michael Barton wrote:
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 <glynn@gclements.plus.com>
On 8/6/07 9:18 AM, "Glynn Clements" <glynn@gclements.plus.com> wrote:
Michael Barton wrote:
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.
This exists. menform.py
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>
3. Some changes to G_gui() to select the desired GUI based upon
$GRASS_GUI.
So it seems to be down to #3
#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
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>
Indeed! I just use the line above to run a script I made, and I got a
dialog with three tabs, one for main, one for options, and one for
output.
really nice
congrats
Carlos
--
+-----------------------------------------------------------+
Carlos Henrique Grohmann - Guano
Visiting Researcher at Kingston University London - UK
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke
Can't stop the signal.