[R] Tcl/tk , question about the environment of the call
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed May 29 20:48:19 CEST 2002
Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:
> However, this is not really a Tcl/Tk issue. If you had assigned tk2 to
> a global variable, you would have seen the same effect when executing
> it. The parent of a call is not necessarily the enclosure (aka the
> "parent environment"). parent.frame() is not the local frame of t1
> when you press the button
PS. Try parent.env(environment()) instead of parent.frame().
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list