[GRASS-SVN] r65203 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 9 13:27:12 PDT 2015


Author: annakrat
Date: 2015-05-09 13:27:12 -0700 (Sat, 09 May 2015)
New Revision: 65203

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI: #2313 copy button added (author Robert Kuszinger)

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2015-05-09 19:18:36 UTC (rev 65202)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2015-05-09 20:27:12 UTC (rev 65203)
@@ -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