[GRASS-SVN] r43887 - in grass/trunk/gui/wxpython: . xml

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 13 14:30:30 EDT 2010


Author: martinl
Date: 2010-10-13 11:30:29 -0700 (Wed, 13 Oct 2010)
New Revision: 43887

Modified:
   grass/trunk/gui/wxpython/wxgui.py
   grass/trunk/gui/wxpython/xml/menudata.xml
Log:
wxGUI: OnQuit() method removed (not really working)


Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2010-10-13 16:32:49 UTC (rev 43886)
+++ grass/trunk/gui/wxpython/wxgui.py	2010-10-13 18:30:29 UTC (rev 43887)
@@ -1435,23 +1435,8 @@
         
         event.Skip()
 
-    def OnQuit(self, event):
-        """!Quit GRASS session (wxGUI and shell)"""
-        # quit wxGUI session
-        self.OnCloseWindow(event)
-
-        # quit GRASS shell
-        try:
-            pid = int(os.environ['GIS_LOCK'])
-        except (KeyError, ValueError):
-            sys.stderr.write('\n')
-            sys.stderr.write(_("WARNING: Unable to quit GRASS, unknown GIS_LOCK"))
-            return
-        
-        os.kill(pid, signal.SIGQUIT)
-        
     def OnCloseWindow(self, event):
-        """!Cleanup when wxGUI is quit"""
+        """!Cleanup when wxGUI is quitted"""
         if not self.curr_page:
             self._auimgr.UnInit()
             self.Destroy()

Modified: grass/trunk/gui/wxpython/xml/menudata.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/menudata.xml	2010-10-13 16:32:49 UTC (rev 43886)
+++ grass/trunk/gui/wxpython/xml/menudata.xml	2010-10-13 18:30:29 UTC (rev 43887)
@@ -678,12 +678,6 @@
 	  <handler>OnCloseWindow</handler>
 	  <shortcut>Ctrl+W</shortcut>
 	</menuitem>
-	<menuitem>
-	  <label>Quit GRASS GIS</label>
-	  <help>Quit GRASS session including wxGUI</help>
-	  <handler>OnQuit</handler>
-	  <shortcut>Ctrl+Q</shortcut>
-	</menuitem>
       </items>
     </menu>
     <menu>



More information about the grass-commit mailing list