[GRASS-SVN] r66679 - grass/trunk/gui/wxpython/tplot

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 30 08:14:25 PDT 2015


Author: lucadelu
Date: 2015-10-30 08:14:25 -0700 (Fri, 30 Oct 2015)
New Revision: 66679

Modified:
   grass/trunk/gui/wxpython/tplot/frame.py
Log:
g.gui.tplot: fixed error during exit; #2789

Modified: grass/trunk/gui/wxpython/tplot/frame.py
===================================================================
--- grass/trunk/gui/wxpython/tplot/frame.py	2015-10-30 15:05:35 UTC (rev 66678)
+++ grass/trunk/gui/wxpython/tplot/frame.py	2015-10-30 15:14:25 UTC (rev 66679)
@@ -106,6 +106,7 @@
         # We create a database interface here to speedup the GUI
         self.dbif = tgis.SQLDatabaseInterfaceConnection()
         self.dbif.connect()
+        self.Bind(wx.EVT_CLOSE, self.onClose)
 
     def init(self):
         self.timeDataR = OrderedDict()
@@ -125,6 +126,11 @@
             self.dbif.close()
         tgis.stop_subprocesses()
 
+    def onClose(self,evt):
+        self.coorval.OnClose()
+        self.cats.OnClose()
+        self.Destroy()
+
     def _layout(self):
         """Creates the main panel with all the controls on it:
              * mpl canvas



More information about the grass-commit mailing list