[pygtk] gtk.entry copy and paste via ctrl-c & ctrl-v

John Finlay finlay at moeraki.com
Tue Oct 6 08:48:31 WST 2009


Kim Adil wrote:
> I have an entry and want to use  the keyboard shortcuts for 
> cut/copy/paste. Without any coding by me, popup menu works fine, but 
> keyboard shortcuts don't work. the tutorial suggests it should be 
> working by default:
>
>
>       15.1.2. Using Clipboards with Entry, Spinbutton and TextView
>
> Entry, SpinButton and TextView widgets have popup menus that provide the 
> ability to cut and copy the selected text to and paste from the 
> "CLIPBOARD" clipboard. In addition key bindings are set to allow 
> keyboard accelerators to cut, copy and paste. Cut is activated by 
> *Control*+*X*; copy, by *Control*+*C*; and, paste, by *Control*+*V*.
>
>
> Am I missing something obvious?
>
> BTW using ubuntu jaunty standard packages.
>   
works for me on:

Python 2.6.2, PyGTK 2.14.1 (Gtk+ 2.16.1)

on jaunty

John



More information about the pygtk mailing list