Søren Højsgaard
2005-Sep-02 22:57 UTC
[R] tcltk - automatically moving cursor to last line of tktext box - how?
Hi; I have a program which writes lines to a tktext box (of height, say, 10) with tkinsert(txto, "end", paste(so,"\n")) I would like my program to be such that it automatically scrolls down through the text box when it is full so that I always see the last 10 lines written. Can anyone help on this? Best regards S??ren
Peter Dalgaard
2005-Sep-02 23:39 UTC
[R] tcltk - automatically moving cursor to last line of tktext box - how?
S??ren H??jsgaard <Soren.Hojsgaard at agrsci.dk> writes:> Hi; I have a program which writes lines to a tktext box (of height, say, 10) with > tkinsert(txto, "end", paste(so,"\n")) > I would like my program to be such that it automatically scrolls down through the text box when it is full so that I always see the last 10 lines written. Can anyone help on this? > Best regards > S??renHow about tksee(txto, "end") or maybe tkyview(txto, "end - 10 lines") -- O__ ---- Peter Dalgaard ??ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907