Seite 1 von 1

Gibt es ein gtk.Primary? (Xorg xselection)

Verfasst: Donnerstag 28. März 2013, 20:05
von torres
Hallo,

gibt es eine Classe mit welcher ich auf das primaere selection von xorg zugreifen kann?

zur Erklaerung: man xsel:

Code: Alles auswählen

xsel - manipulate the X selection
(..)
DESCRIPTION
       Retrieve and set the X selection.
       The  X server maintains three selections, called PRIMARY, SECONDARY and CLIPBOARD. The PRIMARY selection is
       conventionally used to implement copying and pasting via the middle mouse button. The SECONDARY and CLIPBOARD
       selections  are  less frequently used by application programs. This program operates on the PRIMARY selection
       unless otherwise specified.
(..)
       Selection options

       -p, --primary
              operate on the PRIMARY selection (default).

       -s, --secondary
              operate on the SECONDARY selection.

       -b, --clipboard
              operate on the CLIPBOARD selection.
Jetzt habe ich eben gtk.Clipboard gefunden, finde aber kein entsprechendes gtk.Primary.
Wie heisst das?

Vielen Dank,
Torres

Re: Gibt es ein gtk.Primary? (Xorg xselection)

Verfasst: Donnerstag 28. März 2013, 22:32
von torres
:oops:
also ich hab es jetzt schon gefunden:

http://www.pygtk.org/docs/pygtk/class-gtkclipboard.html
The built-in atoms are:
"PRIMARY"
"SECONDARY"
"CLIPBOARD"
(..)

Gruss,
Torres