Development Team/Almanac/GTK's Clipboard Module: Difference between revisions

Line 53: Line 53:




Note that when you cut or copy text programmatically, you must first select a region in the widget. That is why we have the call to select_region() in the _copyClipInput_cb method. The -1 argument ensures that all text in the widget is selected. <ref>[http://www.pygtk.org/docs/pygtk/class-gtkeditable.html#method-gtkeditable--select-region]</ref>
Note that when you cut or copy text programmatically, you must first select a region in the widget. That is why we have the call to select_region() in the _copyClipInput_cb method. The -1 argument ensures that all text in the widget is selected. <ref>http://www.pygtk.org/docs/pygtk/class-gtkeditable.html#method-gtkeditable--select-region</ref>
 


= Notes =
= Notes =
<references />
<references />