<HTML>
<HEAD>
<TITLE>Updates to gism.py - autogenerated gui for all commands.</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I just uploaded a new version of gism.py and related files. I'll keep an archive and so changed the link in the GRASS WIKI (development/python section) to go to the folder rather than the file itself so I won't have to keep changing the link. This update includes the following changes:<BR>
<BR>
*The biggest change in wrapping in grassgui.py. This provides autogenerated wxPython GUI dialogs for all grass commands.<BR>
This can now be called from the command console (just type in the command name with no arguments as you do now) or the<BR>
prototype menus. I updated grassgui.py to current wxPython syntax (mostly &#8211; event bindings need to change to new Bind method) and added methods to make it callable from other modules. I also added scroll bars. We need to add buttons (and relevant module or method like select.tcl) to browse GRASS &#8216;elements&#8217; (i.e., rasters, vectors, files, etc.). Thanks very much to </SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Geneva, Verdana, Helvetica, Arial">Yann Chemin for showing that grassgui.py worked.<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial"><BR>
*Methods added to gism.py and grassgui.py that automatically restart them with pythonw for the Mac.<BR>
<BR>
*Change to subprocess module for running commands in the shell--seems to have stopped the double dialog boxes.<BR>
<BR>
Important things to do. I&#8217;d like to start thinking about moving this to the cvs so that we can work on it collaboratively in a more controlled way. It should go into the grass6/gui/wxpython folder in the cvs. In the compiled binary, I&#8217;m guessing that it should end up in its own directory (e.g., wxp or gmwxp) like gm and dm. But I have a BIG PROBLEM. I can&#8217;t get gism.py to run from another directory, even though python is in my path and runs fine. That is, when in my home directory, if I try to run...<BR>
<BR>
&gt; pythonw $GISBASE/etc/wxp/gism.py<BR>
<BR>
...my Mac crashes with a bus error&#8212;even though $GISBASE has a value and even when I expand it to type out the full path. I&#8217;ve tried setting $PYTHONPATH (i.e., for module search path) and it makes no difference. I don&#8217;t know whether this is a Mac problem, something weird with my system, or something I don&#8217;t know about &nbsp;yet with Python. Anyone have any thoughts? <BR>
<BR>
If this were fixed, we could easily make a script (e.g., gismpy) that could launch it from the GRASS command prompt.<BR>
<BR>
I can&#8217;t yet get d.* commands to work from the new autodialogs, but they work from the command line. It&#8217;s a parameter passing issue. Other commands seem to work fine.<BR>
<BR>
I think we&#8217;re ready to do the layer manager, layer options panels, and menu or toolbox.<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics and Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
</FONT></SPAN>
</BODY>
</HTML>