[R] GUI component Margin on tkcanvas, tkframe or tktoplevel
jfox at mcmaster.ca
Thu May 24 23:57:24 CEST 2007
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Hao Liu
> Sent: Thursday, May 24, 2007 3:53 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] GUI component Margin on tkcanvas, tkframe or tktoplevel
> Dear gurus:
> I have a question on how to configure the margin layout on
> tcl/tk GUI objects like tkcanvas, tkframe or tktoplevel.
> For example, if I want to leave a larger margin on the left
> side of the GUI container, which one should I configure, the
> toplevel or tkcanvas or tkframe?
> canvas<-tkcanvas(top, relief=, borderwidth=...)
I've used the borderwidth argument (which, I believe, affects all of the
borders) in several places, including to tkframe(). You can try it out and
see whether you get the effect you want.
> I also find the documentation for all the possible arguments
> that could be passed to tktoplevel, tkframe, tkcanvas, tk.wm,
> tkconfigure is not good. I wonder if there are good resource
> for it... at the very least, I know I need to look at what
> arguments that tck/tk takes... but I don't have time to go that far.
I think that the tcltk package documentation is meant to be used alongside
Tcl/Tk documentation. The most useful source that I've found is Welch et
al., Practical Programming in Tcl and Tk.
I hope this helps,
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help