[GRASS-SVN] r55680 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 10 05:14:59 PDT 2013
Author: annakrat
Date: 2013-04-10 05:14:59 -0700 (Wed, 10 Apr 2013)
New Revision: 55680
Modified:
grass/trunk/gui/wxpython/gui_core/treeview.py
Log:
wxGUI: fix TreeListView for wx2.9.4
Modified: grass/trunk/gui/wxpython/gui_core/treeview.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/treeview.py 2013-04-10 12:05:30 UTC (rev 55679)
+++ grass/trunk/gui/wxpython/gui_core/treeview.py 2013-04-10 12:14:59 UTC (rev 55680)
@@ -47,7 +47,6 @@
def __init__(self, model, parent, *args, **kw):
self._model = model
super(AbstractTreeViewMixin, self).__init__(parent=parent, *args, **kw)
- self.RefreshItems()
self.selectionChanged = Signal('TreeView.selectionChanged')
self.itemActivated = Signal('TreeView.itemActivated')
@@ -125,6 +124,7 @@
"""!Tree view class inheriting from wx.TreeCtrl"""
def __init__(self, model, parent, *args, **kw):
super(TreeView, self).__init__(parent=parent, model=model, *args, **kw)
+ self.RefreshItems()
class CTreeView(AbstractTreeViewMixin, CT.CustomTreeCtrl):
"""!Tree view class inheriting from wx.TreeCtrl"""
@@ -138,6 +138,7 @@
kw[style] = CT.TR_HIDE_ROOT | CT.TR_FULL_ROW_HIGHLIGHT |\
CT.TR_HAS_BUTTONS | CT.TR_LINES_AT_ROOT | CT.TR_SINGLE
super(CTreeView, self).__init__(parent=parent, model=model, **kw)
+ self.RefreshItems()
class TreeListView(AbstractTreeViewMixin, ExpansionState, gizmos.TreeListCtrl):
def __init__(self, model, parent, columns, **kw):
@@ -146,7 +147,6 @@
for column in columns:
self.AddColumn(column)
self.SetMainColumn(0)
- # refresh again
self.RefreshItems()
# to solve events inconsitency
self.Bind(wx.EVT_TREE_ITEM_RIGHT_CLICK, lambda evt:
More information about the grass-commit
mailing list