Consider:
require(gWidgets2)
w <- gwindow("notebook example", visible=T)
nb <- gnotebook(container=w)
gbutton("Page one", label="tab 1", container=nb) ## note label argument
gbutton("Page two", label="tab 2", container=nb)
How can I bind a given key (say, ESC
) to close the gwindow()
in gWidgets, that is to execute dispose(w)
? In other words, how do you assign keybindings in gWidgets?