[GRASS-dev] Re: [GRASS GIS] #1472: wxgui layer manager output pane breaks PRIMARY X selection

GRASS GIS trac at osgeo.org
Sun Oct 16 20:41:36 EDT 2011


#1472: wxgui layer manager output pane breaks PRIMARY X selection
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.3                    
Component:  wxGUI        |     Version:  svn-trunk                
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by cmbarton):

 The only place that I can find this called is in the new stats display
 option for analysis graphs and in menuform.py that formats the dialogs for
 all GRASS command modules. The command...

             wx.TheClipboard.UsePrimarySelection(True)

 is commented out in line #735. Enabling this has no effect one way or the
 other on my Mac. I don't know what it would do on other platforms. But in
 this case, copying is done via button and not selected text anyway.

 The issue you are having with the output console is a different one. There
 is a method that turns copying on an off at line #642 in output.py (def
 SetCopyingOfSelectedText(self, copy):)

 I'm not sure why anyone would want copying off by default. But perhaps
 there is a reason.

 When copying is on, it calls the Copy method of wx.StyledTextCtrl. AFAICT,
 there is no option with stc.Copy() to use the primary or normal clipboard.

 Michael

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1472#comment:7>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list