[GRASS-SVN] r66943 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 27 14:57:47 PST 2015
Author: martinl
Date: 2015-11-27 14:57:47 -0800 (Fri, 27 Nov 2015)
New Revision: 66943
Modified:
grass/trunk/gui/wxpython/gmodeler/frame.py
Log:
wxGUI/modeler: add Refresh button to the items panel
Modified: grass/trunk/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/frame.py 2015-11-27 22:51:54 UTC (rev 66942)
+++ grass/trunk/gui/wxpython/gmodeler/frame.py 2015-11-27 22:57:47 UTC (rev 66943)
@@ -1592,10 +1592,12 @@
self.btnMoveUp = wx.Button(parent=self, id=wx.ID_UP)
self.btnMoveDown = wx.Button(parent=self, id=wx.ID_DOWN)
+ self.btnRefresh = wx.Button(parent=self, id=wx.ID_REFRESH)
self.btnMoveUp.Bind(wx.EVT_BUTTON, self.OnMoveItemsUp)
self.btnMoveDown.Bind(wx.EVT_BUTTON, self.OnMoveItemsDown)
-
+ self.btnRefresh.Bind(wx.EVT_BUTTON, self.list.OnReload)
+
self._layout()
def _layout(self):
@@ -1607,6 +1609,8 @@
manageSizer = wx.BoxSizer(wx.VERTICAL)
manageSizer.Add(item=self.btnMoveUp, border = 5, flag = wx.ALL)
manageSizer.Add(item=self.btnMoveDown, border = 5,
+ flag = wx.LEFT | wx.RIGHT | wx.BOTTOM)
+ manageSizer.Add(item=self.btnRefresh, border = 5,
flag = wx.LEFT | wx.RIGHT)
mainSizer = wx.BoxSizer(wx.HORIZONTAL)
More information about the grass-commit
mailing list