Skip to content
Prev 304134 / 398513 Next

How to arrange the GUI's in window in tcltk package???

punitha <punitha.c87 <at> wipro.com> writes:
Try `tkraise`:

library(tcltk)
w1 <- tktoplevel()
tkpack(ttkbutton(w1, text="w1", command=function() {
  tkraise(w2)
}))

w2 <- tktoplevel()
tkpack(ttkbutton(w2, text="w2", command=function() {
  tkraise(w1)
}))