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
On Aug 25, 2009, at 5:44 , Anne Skoeries wrote:
Hi there,
a text window is supposed to map the shortcuts for copying and
pasting
(<Ctrl-C>, <Ctrl-V>) automatically.
I'm working under Mac OS X and my text window doesn't really map
these
functions automatically - it works fine under Windows. I know that
under Mac OS one would use <Command-c> to copy the text but this
won't
work either.
Is there an easy way to map copy&paste functions to a text window
under Mac OS X? Because if I try to map a copy-function to my
textwindow it doesn't work with <Command-c> but once I try a
different
shortcut for example <Control-e> it works just fine.
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
Session Info:
R version 2.9.1 (2009-06-26)
i386-apple-darwin8.11.1
locale:
de_DE.UTF-8/de_DE.UTF-8/C/C/de_DE.UTF-8/de_DE.UTF-8
attached base packages:
[1] tcltk stats graphics grDevices utils datasets
methods base
other attached packages:
[1] tkrplot_0.0-18 rpart_3.1-44 relimp_1.0-1
Thanks so much!
--
Anne Skoeries
[[alternative HTML version deleted]]
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac