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

From: John Fox <jfox_at_mcmaster.ca>
Date: Thu, 24 May 2007 17:57:24 -0400


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,
 John

> Thanks
> Hao
>
> ______________________________________________
> R-help@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.
>



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. Received on Thu 24 May 2007 - 22:01:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 May 2007 - 23:31:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.