bonjour,
MessagePosté le: Jeu Mai 18, 2006 3:23 pm Sujet du message:
Merci bien pour ce site, qui c'est vrai est tres interessant pour créer une interface!
Cependant une petite question me tarode...
A koi sert le tkfocus(nom_de_fenetre)??
Je croyais que c'était pour afficher la page "nom-de_fenetre" en premier plan??
Mais apperemment ca fonctionne pas tres bien !
la réponse à ta question est dans le deuxième exemple ("Simple toplevel window with OK button"):
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/OKtoplevel.html# Now, bring the window to the focus, using tkfocus. (This will not work
# if the code is run from RGui, because the focus will automatically
# return to RGui, but it will work if the code is copied and pasted into
# a script file and run using
# Rterm < scriptfile.R > scriptfile.Rout
tkfocus(tt)
@+++
Pierre