[R] tkinser

2006-08-17 Thread julie7\.josse
Dear list,

I 'd like to know if it is possible to delete my text window after running it??

I have add a Menu to my text window and so i can for example open a script; 
then i run it and i have my result on my R console.
But i'd like that after running, the code disappears automatically. i d'like 
something that clean my text window.

I have a second problem:

My text window and all my widgets are not fixed:

I use combo box, message box...and it always moves, it appears on the right of 
my screen, on the bottom..or on the bar tasks. I d'like my text window not move 
at all and after if it's possible that my widgets appear on the same place on 
my sreen.

When they appear on the bottom on my tasks bar, i have to open it each time...


Thanks a lot.
Julie.

Cet été, pensez aux cartes postales de laposte.net !


[[alternative HTML version deleted]]

__
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] tkinser

2006-08-17 Thread John Fox
Dear Julie,


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of julie7.josse
 Sent: Thursday, August 17, 2006 4:01 AM
 To: r-help
 Subject: [R] tkinser
 Importance: High
 
 Dear list,
 
 I 'd like to know if it is possible to delete my text window 
 after running it??
 
 I have add a Menu to my text window and so i can for example 
 open a script; then i run it and i have my result on my R console.
 But i'd like that after running, the code disappears 
 automatically. i d'like something that clean my text window.


I think that what you mean is that you'd like to delete the text in the
window rather than the window itself. If the text widget is called txt, then
you can do 

tkdelete(txt, 0.0, end) 


 I have a second problem:
 
 My text window and all my widgets are not fixed:
 
 I use combo box, message box...and it always moves, it 
 appears on the right of my screen, on the bottom..or on the 
 bar tasks. I d'like my text window not move at all and after 
 if it's possible that my widgets appear on the same place on my sreen.
 
 When they appear on the bottom on my tasks bar, i have to 
 open it each time...
 

If the top-level Tk window is named top, then, after creating the window,
e.g., tkwm.geometry(tt, -100+100) will position it 100 pixels 100 pixels
from the right top corner of the display.

More generally, I found it useful to read Welch, Jones, and Hobbs, Practical
Programming in Tcl and Tk, to learn these kinds of things.

I hope this helps,
 John

 
 Thanks a lot.
 Julie.
 
 Cet iti, pensez aux cartes postales de laposte.net !
 
 
   [[alternative HTML version deleted]]
 


__
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.