Hi,

I'm trying to write an app that stores selections made in Xwindows,
but I have no clue on where to start. I need somehow to be notified
whenever the user makes a selection somewhere, and get this selection.

I assumed that I would need to do something like connecting 
selection-clear-event/selection-request-event/selection-notify-event
on the rootwindow, but I can't figure out how to manage this.
The only way to access the rootwindow seems through gtk._root_window(),
which gives me a GdkWindow - how do I bind events on this? Can a GdkWindow
be converted to a GtkWindow somehow?

Actually, can this be done at all in pygtk or do I need Xlib.py?

Cheers,

        Ivo

-- 
Drs. I.R. van der Wijk                              -=-
Brouwersgracht 132                      Amaze Internet Services V.O.F.
1013 HA Amsterdam, NL                               -=-
Tel: +31-20-4688336                       Linux/Web/Zope/SQL/MMBase
Fax: +31-20-4688337                           Network Solutions
Web:     http://www.amaze.nl/                    Consultancy
Email:   [EMAIL PROTECTED]                               -=-
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to