<HTML>
<HEAD>
<TITLE>d.rast.edit in wxgrass</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>d.rast.edit ought to run from wxgrass, assuming that TclTk is installed. It launches the wxPython properties dialog when called from the menu. However, the wxPython properties dialog, then launches the TclTk properties dialog instead of just running the command (note that running d.rast.edits with arguments runs fine from the wxgrass built in CLI). <BR>
<BR>
The place where the command is getting rerouted to call the TclTk dialog seems to be in line 636 of menuform.py<BR>
<BR>
retcode = subprocess.call(cmd, shell=True)<BR>
<BR>
Any idea why this might be? I could hack around this for the one command, but there should be a more generic solution it seems.<BR>
<BR>
BTW, I got the xterm launching method to work by using subprocess.Popen(cmdlist) for starting the needed xmon ['d.mon', 'start=xmon']. Both cmd.Command(cmdlist) and cmd.Command(cmdlist, wait=False) didn't work and hung up waiting on the xmon. Don't know why.<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 &amp; 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>
<BR>
</SPAN></FONT>
</BODY>
</HTML>