[pygtk] Using pygtk.'s cut and paste
Steve McClure
smcclure at racemi.com
Thu Oct 14 01:48:11 WST 2004
On Wed, 2004-10-13 at 12:01, Toshio wrote:
> On Tue, 2004-10-12 at 09:27, Toshio wrote:
> >
> > I think what I need is to know how to activate the default actions (or
> > the equivalent) from the menu's cut/copy/paste signal handlers.
> >
> I've figured out equivalents for Cut and Copy by shuffling data between
> a PRIMARY and CLIPBOARD gtk.clipboard. But I still don't understand how
> to implement Paste. I think I can use the gtk.Editable
> paste_clipboard() method to do the actual work, but first I have to
> figure out which editable has the text cursor.
>
> Is this information available from the library or do I have to keep
> track of it myself?
I'm not sure, but Gtk.Window.focus_widget and Gtk.Window.has_focus might
be what you are looking for.
>
> Thanks for any help,
> -Toshio
--
Steve McClure Racemi
email: smcclure at racemi.com 75 5th St NE
voice: 404-892-5850 Suite 333
fax: 404-892-7215 Atlanta, GA 30308
http://www.racemi.com
More information about the pygtk
mailing list