[R] tcltk - insert scrollbar to window

thoeb t.hoebinger at gmail.com
Tue Mar 10 21:35:21 CET 2009


Hello, I hava a problem with inserting a scrollbar into a tcltk toplevel.
The comand is as follows:

require(tcltk)
tt<-tktoplevel()
tkgrid(tklabel(tt,text="Choose path to the meteorology file used for CDM"))
OnOK2 <- function(){
    wind.file<<-read.csv2(file.choose(),header=T,sep=";",dec=".")
    wind<<-as.double(wind.file[,5])
    uH<<-max(wind)
    }
OK.but2 <-tkbutton(tt,text="   Search   ",command=OnOK2) 
tkbind(tkgrid, "<Return>",OnOK2)
tkgrid(OK.but2)

Because some more tkgrids with requestions to enter other parameters shall
follow within the same window the tcltk-window is to small to show all of
them. Therefore I would need a scrollbar for the whole window. How can I
create this?

Thanks! THoeb

-----
Tamara Hoebinger
University of Vienna
-- 
View this message in context: http://www.nabble.com/tcltk---insert-scrollbar-to-window-tp22443022p22443022.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list