[GRASS-dev] Re: [GRASS GIS] #40: Copy button on wxgrass function forms does not work

GRASS GIS trac at osgeo.org
Thu Jul 31 12:07:12 EDT 2008


#40: Copy button on wxgrass function forms does not work
--------------------------+-------------------------------------------------
  Reporter:  brian        |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect       |      Status:  new                      
  Priority:  minor        |   Milestone:  6.4.0                    
 Component:  wxGUI        |     Version:  svn-trunk                
Resolution:               |    Keywords:  wxgrass                  
  Platform:  Unspecified  |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------
Comment (by glynn):

 Replying to [comment:7 msieczka]:
 > On Debian testing, amd64, python-wxgtk 2.8.8.1 after pressing 'Copy'
 button there is also nothing in the clipboard that could be pasted into
 e.g. a terminal with "right click > paste", but I can paste with middle
 mouse button (both develbranch6 and trunk).

 That's due to the use of {{{wx.TheClipboard.UsePrimarySelection(True)}}}
 in {{{mainFrame.OnCopy()}}}.
 source:/grass/trunk/gui/wxpython/gui_modules/menuform.py at 32365#L817

 This causes the data to be copied to the primary selection rather than the
 clipboard. An explicit "copy" operation should use the clipboard (this is
 how Ctrl-C or Ctrl-Insert normally behave); the primary selection is for
 the selection.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/40#comment:8>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list