Changes
Jump to navigation
Jump to search
Line 53:
Line 53:
− +
−
Development Team/Almanac/GTK's Clipboard Module (view source)
Revision as of 10:52, 25 July 2008
, 10:52, 25 July 2008→How do I copy and paste text from GTK widgets?
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 />