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

Kim Adil kadil at proactiveindustrial.net
Tue Oct 6 10:21:52 WST 2009


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.

Thanks,
Kim


More information about the pygtk mailing list