[GRASS-SVN] r59207 - in grass/trunk/gui/wxpython: iclass iscatt
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 6 11:20:39 PST 2014
Author: annakrat
Date: 2014-03-06 11:20:39 -0800 (Thu, 06 Mar 2014)
New Revision: 59207
Modified:
grass/trunk/gui/wxpython/iclass/frame.py
grass/trunk/gui/wxpython/iscatt/frame.py
Log:
wxGUI/g.gui.iclass: fix #2211 (wxPython 3 issue)
Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py 2014-03-06 15:15:17 UTC (rev 59206)
+++ grass/trunk/gui/wxpython/iclass/frame.py 2014-03-06 19:20:39 UTC (rev 59207)
@@ -794,6 +794,7 @@
"""!Show category management dialog"""
if self.dialogs['classManager'] is None:
dlg = IClassCategoryManagerDialog(self)
+ dlg.CenterOnParent()
dlg.Show()
self.dialogs['classManager'] = dlg
else:
Modified: grass/trunk/gui/wxpython/iscatt/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iscatt/frame.py 2014-03-06 15:15:17 UTC (rev 59206)
+++ grass/trunk/gui/wxpython/iscatt/frame.py 2014-03-06 19:20:39 UTC (rev 59207)
@@ -400,12 +400,9 @@
def Update(self, **kwargs):
self.SetItemCount(len(self.cats_mgr.GetCategories()))
- self.RefreshItems(0, len(self.cats_mgr.GetCategories()))
+ if len(self.cats_mgr.GetCategories()):
+ self.RefreshItems(0, len(self.cats_mgr.GetCategories()) - 1)
- def InitCoreCats(self):
- self.SetItemCount(len(self.cats_mgr.GetCategories()))
- self.RefreshItems(0, len(self.cats_mgr.GetCategories()))
-
def SetVirtualData(self, row, column, text):
attr = self.columns[column][1]
if attr == 'name':
More information about the grass-commit
mailing list