[GRASS-SVN] r58071 - in grass/trunk/gui/wxpython: dbmgr lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 19 20:45:08 PDT 2013
Author: annakrat
Date: 2013-10-19 20:45:08 -0700 (Sat, 19 Oct 2013)
New Revision: 58071
Modified:
grass/trunk/gui/wxpython/dbmgr/manager.py
grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI/dbmgr: message dialog and BusyInfo should not overlap (wxpython 2.9 issue)
Modified: grass/trunk/gui/wxpython/dbmgr/manager.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/manager.py 2013-10-20 03:27:29 UTC (rev 58070)
+++ grass/trunk/gui/wxpython/dbmgr/manager.py 2013-10-20 03:45:08 UTC (rev 58071)
@@ -87,6 +87,9 @@
"You can define new connection in "
"'Manage layers' tab.") % self.dbMgrData['vectName'])
+ busy = wx.BusyInfo(message=_("Please wait, loading attribute data..."),
+ parent=self.parent)
+ wx.SafeYield()
self.CreateStatusBar(number = 1)
self.notebook = GNotebook(self.panel, style = globalvar.FNPageDStyle)
@@ -106,7 +109,8 @@
self.CreateDbMgrPage(parent = self, pageName = 'manageLayer')
self.notebook.AddPage(page = self.pages['manageLayer'], text = _("Manage layers"),
name = 'layers')
-
+ del busy
+
if selection:
wx.CallAfter(self.notebook.SetSelectionByName, selection)
else:
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2013-10-20 03:27:29 UTC (rev 58070)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2013-10-20 03:45:08 UTC (rev 58071)
@@ -1600,18 +1600,12 @@
dcmd = tree.GetLayerInfo(layer, key = 'cmd')
if not dcmd:
return
-
- busy = wx.BusyInfo(message = _("Please wait, loading attribute data..."),
- parent = self)
- wx.Yield()
-
+
dbmanager = AttributeManager(parent = self, id = wx.ID_ANY,
size = wx.Size(500, 300),
item = layer, log = self._gconsole,
selection = selection)
-
- busy.Destroy()
-
+
# register ATM dialog
self.dialogs['atm'].append(dbmanager)
More information about the grass-commit
mailing list