[R] gWidgets / RGtk2 - how to change a handler from a toolbar?
Mark Heckmann
mark.heckmann at gmx.de
Sun Dec 27 18:59:58 CET 2009
I want to assign a default handler to a toolbar button and change the
handler later.
The addhandlerclicked() method does not apply to a gAction Object, I
think...
defHandler <- function(h, ...) print("default")
w <- gwindow()
aTest <- gaction(label="Test", icon="open", handler=defHandler)
tblList = list( test = aTest )
toolBar = gtoolbar(tblList, cont=w)
At this point I would like to change the handler from the aTest object.
Does someone know?
TIA
Mark
–––––––––––––––––––––––––––––––––––––––
Mark Heckmann
Dipl. Wirt.-Ing. cand. Psych.
Vorstraße 93 B01
28359 Bremen
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com
More information about the R-help
mailing list