Browse Source

wxGUI/dbmgr: set busy cursor when soring values

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72535 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 7 years ago
parent
commit
7db207dcff
1 changed files with 3 additions and 1 deletions
  1. 3 1
      gui/wxpython/dbmgr/base.py

+ 3 - 1
gui/wxpython/dbmgr/base.py

@@ -639,13 +639,15 @@ class VirtualAttributeList(wx.ListCtrl,
 
     def SortItems(self, sorter=cmp):
         """Sort items"""
+        wx.BeginBusyCursor()
         items = list(self.itemDataMap.keys())
         items.sort(self.Sorter)
         self.itemIndexMap = items
 
         # redraw the list
         self.Refresh()
-
+        wx.EndBusyCursor()
+        
     def Sorter(self, key1, key2):
         colName = self.GetColumn(self._col).GetText()
         ascending = self._colSortFlag[self._col]