[GRASS-SVN] r68052 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Mar 13 03:11:43 PDT 2016
Author: martinl
Date: 2016-03-13 03:11:43 -0700 (Sun, 13 Mar 2016)
New Revision: 68052
Modified:
grass/trunk/gui/wxpython/gmodeler/model.py
Log:
g.gui.gmodeler - strange duplicity when setting comment (#2944)
Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py 2016-03-13 09:53:19 UTC (rev 68051)
+++ grass/trunk/gui/wxpython/gmodeler/model.py 2016-03-13 10:11:43 UTC (rev 68052)
@@ -1080,16 +1080,18 @@
font.SetStyle(wx.ITALIC)
self.regionComment.SetFont(font)
+ ### clear doesn't work
+ ### self.regionComment.ClearText()
self.regionComment.SetText(comment)
-
+
+ self.ClearRegions()
+ self.AddRegion(self.regionLabel)
+ self.regionLabel.SetProportions(0.0, 1.0)
+
if self.comment:
self.AddRegion(self.regionComment)
self.regionLabel.SetProportions(0.0, 0.4)
- else:
- self.ClearRegions()
- self.AddRegion(self.regionLabel)
- self.regionLabel.SetProportions(0.0, 1.0)
-
+
self.SetRegionSizes()
self.ReformatRegions()
More information about the grass-commit
mailing list