Shannon -jj Behrens wrote:
Thank you for your response!

No Problem.



On Sat, May 31, 2003 at 08:46:13PM +0100, Rui Lopes wrote:

Shannon -jj Behrens wrote:

How do I do the equivalent of the following in PyGTK?

gtk_editable_cut_clipboard (GTK_EDITABLE (text));


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 assume by "direct clipboard access" you mean the ability to get or
set the clipboard contents arbitrarily.  Am I correct?  I don't think
I need this.

Yes, I mean that. BTW, one consequence of my patch is that every Gtk object that makes use of GtkClipboard get's a wrapper, with this you can do something like:


clipboard = gtk.clipboard_get("CLIPBOARD") # or any other X selection
TextBuffer.copy_clipboard(clipboard)


> TextView already has a copy_clipboard method in the C > API, but it's missing in the PyGTK API. This is all that I need.

I supose you are referring to TextBuffer, right?


Give a try to:


TextView.emit("copy-clipboard")



Regards,
Rui Lopes

> [ snip ]

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to