소스 검색

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]