[PyKDE] can i get the X selection?

Doug Bell dougb at bellz.org
Mon Mar 10 23:03:01 GMT 2003


Garry Hodgson wrote:
> is there an easy way to get at the X selection in pyqt?  i'd like to
> create a button that would get the selection and open a browser on the
> selected text.

Look at the documentation for QClipboard in Qt3.  Specifically, the
setSelectionMode member, which toggles between using the environment's
clipboard and the X mouse selection.

Doug.




More information about the PyQt mailing list