[R] tcltk - tkcreate question

Thomas Stabla statho3 at web.de
Thu Nov 27 20:48:43 CET 2003


On 27 Nov 2003, Peter Dalgaard wrote:

> Thomas Stabla <statho3 at web.de> writes:
>
> >
> > I have successfully translated the code until the line
> >
> >    $base.fm.cv create window 0 0 -anchor nw -window $hull -width 10 -height 500 -tag window
> >
> > which i don't fully understand because i started with tcltk just this
> > week.
> >
> > I tried to translate this line using the R function tkcreate, but i didn't
> > get very far.
>
> I assume you got the canvas ($base.fm.cv) stored in a variable,
> "cv", say, and "hull" similarly. Then my first guess would be
>
> tkcreate(cv, "window", 0, 0, anchor="nw", window=hull, width=10,
>          height=5, tag= "window")
>

Works fine, thank you for your fast help.

Best regards,
Thomas Stabla




More information about the R-help mailing list