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

2007-05-24 Thread Hao Liu
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 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.

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.


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

2007-05-24 Thread John Fox
Dear Hao,


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Hao Liu
 Sent: Thursday, May 24, 2007 3:53 PM
 To: r-help@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@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.