[GRASS-SVN] r53520 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 21 11:12:24 PDT 2012
Author: annakrat
Date: 2012-10-21 11:12:24 -0700 (Sun, 21 Oct 2012)
New Revision: 53520
Modified:
grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: move tgis.init() to be called only for GUI forms with t-elements gselect
Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py 2012-10-21 10:09:18 UTC (rev 53519)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py 2012-10-21 18:12:24 UTC (rev 53520)
@@ -165,8 +165,6 @@
self.fullyQualified = True
self.SetFilter(None)
-
- tgis.init()
def Create(self, parent):
self.seltree = wx.TreeCtrl(parent, style=wx.TR_HIDE_ROOT
@@ -550,6 +548,8 @@
"""!Set object properties"""
if 'type' in kargs:
self.type = kargs['type']
+ if self.type in ('stds', 'strds', 'str3ds', 'stvds'):
+ tgis.init()
if 'mapsets' in kargs:
self.mapsets = kargs['mapsets']
if 'multiple' in kargs:
More information about the grass-commit
mailing list