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
tcltk - automatically moving cursor to last line of tktext box - how?
2 messages · Søren Højsgaard, Peter Dalgaard
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??ren
How 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