Gibt es ein gtk.Primary? (Xorg xselection)

Programmierung für GNOME und GTK+, GUI-Erstellung mit Glade.
Antworten
torres
User
Beiträge: 47
Registriert: Samstag 29. Januar 2011, 13:23

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
torres
User
Beiträge: 47
Registriert: Samstag 29. Januar 2011, 13:23

: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
Antworten