[GRASS-SVN] r72535 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 23 12:20:22 PDT 2018
Author: martinl
Date: 2018-03-23 12:20:22 -0700 (Fri, 23 Mar 2018)
New Revision: 72535
Modified:
grass/trunk/gui/wxpython/dbmgr/base.py
Log:
wxGUI/dbmgr: set busy cursor when soring values
Modified: grass/trunk/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/base.py 2018-03-23 19:18:23 UTC (rev 72534)
+++ grass/trunk/gui/wxpython/dbmgr/base.py 2018-03-23 19:20:22 UTC (rev 72535)
@@ -639,6 +639,7 @@
def SortItems(self, sorter=cmp):
"""Sort items"""
+ wx.BeginBusyCursor()
items = list(self.itemDataMap.keys())
items.sort(self.Sorter)
self.itemIndexMap = items
@@ -645,7 +646,8 @@
# redraw the list
self.Refresh()
-
+ wx.EndBusyCursor()
+
def Sorter(self, key1, key2):
colName = self.GetColumn(self._col).GetText()
ascending = self._colSortFlag[self._col]
More information about the grass-commit
mailing list