home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
36_2.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
267b
|
19 lines
#
# Example 36-2
# Separate paste actions.
#
bind Text <<Paste>> {
catch {%W insert insert \
[selection get -selection CLIPBOARD]
}
}
bind Text <ButtonRelease-2> {
%W mark set insert @%x,%y
catch {%W insert insert \
[selection get -selection PRIMARY]
}
}