[R] GUI component Margin on tkcanvas, tkframe or tktoplevel

John Fox jfox at mcmaster.ca
Thu May 24 23:57:24 CEST 2007

Dear Hao,

> -----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?
> top<-tktoplevel()
> 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,

> Thanks
> Hao
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list