Thank you for your response!

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.  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 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

Very interesting.  Unfortunately, TextView doesn't implement the
GtkEditable interface (neither in C or in Python, of course).  Hence,
I don't think that helps my situation. :-/

Best Regards,
-jj

-- 
Hacker is to software engineer as 
Climbing Mt. Everest is to building a Denny's there.
_______________________________________________
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