Skip to content

Copy & Paste from tktext on a Mac

3 messages · Anne Skoeries, Simon Urbanek

1 day later
#
On Aug 25, 2009, at 5:44 , Anne Skoeries wrote:

            
The Tcl/Tk toolkit runs under X11 so this is really a function of your  
X11. Once you select the text you can use the shortcuts defined for  
X11 so in a stock Apple X11 on both 10.4.1 and 10.5.8 <Cmd><C> works  
just fine. You failed to show any relevant code so I can only guess  
what you mean so I use this:

library(tcltk)
tt<-tktoplevel()
t<-tktext(tt)
tkpack(t)

Cheers,
Simon
#
Hi Simon,

thanks, I finally got it.
I was doing the exact same thing like you did, but it just didn't work.
Your e-mail brought me to the idea to update my X11. I was still  
working under version 2.1.6 and copy&paste in a tktext-window didn't  
work with this version. Updating to the latest release (X11 2.4.0) and  
selecting the checkbox "activate clipboard" under settings was the  
right way to make it work!

Thanks so much, Anne