Cut and paste allows information exchange between applications, and it is built upon a general purpose selection mechanism. The
CLIPBOARD selection is used to implement cut and paste on all platforms. X Windows applications may also use the
PRIMARY selection. This chapter describes the
Copy and paste is a basic way to transfer data between just about any two applications. In Tk, copy and paste is based on a general selection mechanism where the selection has a name, type, format, and value. For the most part you can ignore these details because they are handled by the Tk widgets. However, you can also control the selection explicitly. This chapter describes the selection ...