On Thu, May 29, 2003 at 09:06:32PM +0100, Rui Lopes wrote:
How do I do the equivalent of the following in PyGTK?
gtk_editable_cut_clipboard (GTK_EDITABLE (text));
I found <http://www.daa.com.au/pipermail/pygtk/2002-July/003113.html>, but it no longer seems to work (gtk no longer has an atom_intern function).
Dunno about your particular problem, but atom_intern is in gtk.gdk.atom_intern (as in pygtk 1.9.16).
Thanks for your response.
gtk.gdk.atom_intern("CLIPBOARD")
<GdkAtom 0x45 = 'CLIPBOARD'>
dir(gtk.gdk.atom_intern("CLIPBOARD"))
['__class__', '__cmp__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__repr__', '__setattr__', '__str__']
Hmm, I wonder what to do with it ;)
I don't known if we can do anything with them in pygtk 1.9.x, but we certainly need them for using gtk_clipboard_* functions, but we don't (yet) have direct clipboard access in pygtk. I have one patch (http://bugzilla.gnome.org/show_bug.cgi?id=113908) to add initial clipboard access.
But comming back to your initial question, you can issue a cut_clipboard through objects that implement GtkEditable interface, i.e. GtkEntry.cut_clipboard().
Take a look at:
http://www.gnome.org/~james/pygtk-docs/class-gtkeditable.html http://developer.gnome.org/doc/API/2.0/gtk/GtkEditable.html
http://www.gnome.org/~james/pygtk-docs/class-gtkentry.html http://developer.gnome.org/doc/API/2.0/gtk/GtkEntry.html
Regards, Rui Lopes
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
