Tcl/Tk Cut/Copy/Paste Library Module

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:

Module Dependencies

No other modules are required with this module.

Module Definition Files

This module does not require any definition files.

Module Procedures

cut_text

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.

copy_text

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.

paste_text

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.

Goto Top | Tcl Applications | Tcl Software Overview | Tcl Library Overview
| Future Lab Home | Contact Webmaster | Feedback

Copyright © 2006 Future Lab, Last Updated Jul 01, 2006