[GRASS-SVN] r70401 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 19 16:24:25 PST 2017


Author: wenzeslaus
Date: 2017-01-19 16:24:25 -0800 (Thu, 19 Jan 2017)
New Revision: 70401

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: add debug messages and todos for closing code

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2017-01-19 15:39:35 UTC (rev 70400)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2017-01-20 00:24:25 UTC (rev 70401)
@@ -882,13 +882,16 @@
                 self.parent and \
                 self.parent.GetName() in ('LayerTree',
                                           'MapWindow'):
+            Debug.msg(1, "TaskFrame.OnCancel(): known parent")
             # display decorations and
             # pressing OK or cancel after setting layer properties
             if self.task.name in ['d.barscale', 'd.legend', 'd.northarrow', 'd.histogram', 'd.text', 'd.legend.vect'] \
                     or len(self.parent.GetLayerInfo(self.layer, key='cmd')) >= 1:
+                # TODO: do this through policy
                 self.Hide()
             # canceled layer with nothing set
             elif len(self.parent.GetLayerInfo(self.layer, key='cmd')) < 1:
+                # TODO: do this through callback or signal
                 try:
                     self.parent.Delete(self.layer)
                 except ValueError:
@@ -897,6 +900,7 @@
                     pass
                 self.Destroy()
         else:
+            Debug.msg(1, "TaskFrame.OnCancel(): no parent")
             # cancel for non-display commands
             self.Destroy()
 



More information about the grass-commit mailing list