Selaa lähdekoodia

wxGUI: https://trac.osgeo.org/grass/ticket/2313 copy button added (author Robert Kuszinger), merge from trunk, https://trac.osgeo.org/grass/changeset/65203

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65660 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 vuotta sitten
vanhempi
commit
047075f675
1 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa
  1. 10 10
      gui/wxpython/gui_core/forms.py

+ 10 - 10
gui/wxpython/gui_core/forms.py

@@ -517,22 +517,22 @@ class TaskFrame(wx.Frame):
             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)"))