[GRASS-SVN] r54729 - grass/trunk/gui/wxpython/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 21 09:06:45 PST 2013
Author: martinl
Date: 2013-01-21 09:06:44 -0800 (Mon, 21 Jan 2013)
New Revision: 54729
Modified:
grass/trunk/gui/wxpython/modules/extensions.py
Log:
wxGUI/extensions dialog: fetch extensions when dialog is created
Modified: grass/trunk/gui/wxpython/modules/extensions.py
===================================================================
--- grass/trunk/gui/wxpython/modules/extensions.py 2013-01-21 12:59:45 UTC (rev 54728)
+++ grass/trunk/gui/wxpython/modules/extensions.py 2013-01-21 17:06:44 UTC (rev 54729)
@@ -202,7 +202,9 @@
# propagation stops here, no need to show text twice
self.Bind(EVT_SHOW_NOTIFICATION,
lambda event: self.SetStatusText(event.message))
-
+
+ wx.CallAfter(self._fetch)
+
self._layout()
def _layout(self):
@@ -296,6 +298,10 @@
def OnFetch(self, event):
"""!Fetch list of available extensions"""
+ self._fetch()
+
+ def _fetch(self):
+ """!Fetch list of available extensions"""
wx.BeginBusyCursor()
self.SetStatusText(_("Fetching list of modules from GRASS-Addons SVN (be patient)..."), 0)
self.tree.Load(url = self.repo.GetValue().strip(), full = self.fullDesc.IsChecked())
More information about the grass-commit
mailing list