[GRASS-dev] Re: [GRASS GIS] #1472: wxgui layer manager output pane
breaks PRIMARY X selection
GRASS GIS
trac at osgeo.org
Sun Oct 16 17:33:43 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 wenzeslaus):
I'm not sure now about MS Windows. But on X11 there are two clipboards
(normal and primary/mouse selection). But current (my) implementation in
wxGUI replaces contents of the normal clipboard and so it is disabled by
default. However in wx it is possible to use this primary clipboard see
http://www.wxpython.org/docs/api/wx.Clipboard-
class.html#UsePrimarySelection but I don't know how to use it. I have
tried this but `SetData` needs another type of argument and I didn't get
through this (suggestions?):
{{{
clipboard = wx.TheClipboard
clipboard.UsePrimarySelection()
clipboard.SetData(self.GetSelectedText()) # self.Copy() copies to standard
clipboard
clipboard.UsePrimarySelection(primary=False)
}}}
With something like this, there would be still need for platform specific
code from the same reason as mentioned above. On MS Windows it would
replace current clipboard content and it is not what MS Windows user
expect, I think.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1472#comment:6>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list