[GRASS-SVN] r30503 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 8 08:05:34 EST 2008


Author: martinl
Date: 2008-03-08 08:05:34 -0500 (Sat, 08 Mar 2008)
New Revision: 30503

Modified:
   grass/trunk/gui/wxpython/gui_modules/gcmd.py
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI (menuform) set up overwrite/verbose/quit, fix os.kill() on POSIX

Modified: grass/trunk/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gcmd.py	2008-03-07 23:59:43 UTC (rev 30502)
+++ grass/trunk/gui/wxpython/gui_modules/gcmd.py	2008-03-08 13:05:34 UTC (rev 30503)
@@ -132,7 +132,10 @@
             handle = win32api.OpenProcess(1, 0, self.pid)
             return (0 != win32api.TerminateProcess(handle, 0))
 	else:
-            os.kill(-self.pid, signal.SIGTERM) # kill whole group
+            try:
+                os.kill(-self.pid, signal.SIGTERM) # kill whole group
+            except OSError:
+                pass
 
     if subprocess.mswindows:
         def send(self, input):

Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-03-07 23:59:43 UTC (rev 30502)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-03-08 13:05:34 UTC (rev 30503)
@@ -920,8 +920,10 @@
                 vq = UserSettings.Get(group='cmd', key='verbosity', subkey='selection')
                 if f['name'] == vq:
                     chk.SetValue(True)
+                    f['value'] = True
             elif f['name'] == 'overwrite':
                 chk.SetValue(UserSettings.Get(group='cmd', key='overwrite', subkey='enabled'))
+                f['value'] = True
                 
         #
         # parameters



More information about the grass-commit mailing list