浏览代码

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 年之前
父节点
当前提交
7db207dcff
共有 1 个文件被更改,包括 3 次插入1 次删除
  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]