The Tcl/Tk cut/copy/paste library module has the file name cutcopy.tcl. This module contains procedures that cut, copy and paste text to/from a Tk text widget.
Here is a list of procedures in the this module:
No other modules are required with this module.
This module does not require any definition files.
Declaration : proc cut_text {textwidget} Parameters : Name : textwidget Type : text widget name Description : widget to cut text from
This procedure will cut the selected text from a text widget to the clipboard. The previous contents of the clipboard are cleared.
Declaration : proc copy_text {textwidget} Parameters : Name : textwidget Type : text widget name Description : widget to copy text from
This procedure will copy the selected text from a text widget to the clipboard. The previous contents of the clipboard are cleared.
Declaration : proc paste_text {textwidget} Parameters : Name : textwidget Type : text widget name Description : widget to paste text into
This procedure will paste text from the clipboard to the text widget. Text is pasted at the current cursor position if no text is selected. If text has been selected, the pasted text from the clipboard replaces the selected text in the widget.