[GRASS-SVN] r65660 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 19 12:18:14 PDT 2015
Author: annakrat
Date: 2015-07-19 12:18:14 -0700 (Sun, 19 Jul 2015)
New Revision: 65660
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
Log:
wxGUI: #2313 copy button added (author Robert Kuszinger), merge from trunk, r65203
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py 2015-07-19 19:17:50 UTC (rev 65659)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py 2015-07-19 19:18:14 UTC (rev 65660)
@@ -517,22 +517,22 @@
self.btn_run.SetDefault()
self.btn_run.SetForegroundColour(wx.Colour(35, 142, 35))
- # copy
- self.btn_clipboard = wx.Button(parent = self.panel, id = wx.ID_COPY)
- self.btn_clipboard.SetToolTipString(_("Copy the current command string to the clipboard"))
-
btnsizer.Add(item = self.btn_run, proportion = 0,
flag = wx.ALL | wx.ALIGN_CENTER,
border = 10)
-
- btnsizer.Add(item = self.btn_clipboard, proportion = 0,
- flag = wx.ALL | wx.ALIGN_CENTER,
- border = 10)
-
+
self.btn_run.Bind(wx.EVT_BUTTON, self.OnRun)
self.Bind(wx.EVT_MENU, self.OnRun, id=wx.ID_OK)
accelTableList.append((wx.ACCEL_CTRL, ord('R'), wx.ID_OK))
- self.btn_clipboard.Bind(wx.EVT_BUTTON, self.OnCopy)
+
+ # copy
+ self.btn_clipboard = wx.Button(parent=self.panel, id=wx.ID_COPY)
+ self.btn_clipboard.SetToolTipString(_("Copy the current command string to the clipboard"))
+ btnsizer.Add(item=self.btn_clipboard, proportion=0,
+ flag=wx.ALL | wx.ALIGN_CENTER,
+ border=10)
+ self.btn_clipboard.Bind(wx.EVT_BUTTON, self.OnCopy)
+
# help
self.btn_help = wx.Button(parent = self.panel, id = wx.ID_HELP)
self.btn_help.SetToolTipString(_("Show manual page of the command (Ctrl+H)"))
More information about the grass-commit
mailing list