For the benefit of others searching the help:
I think you can change the state of widgets by using "setWidgetState"
see ?setWidgetState in package:PBSmodelling

---------- Forwarded message ----------
From: Gene Leynes <gleyne...@gmail.com <gleynes%...@gmail.com>>
Date: Thu, Jan 13, 2011 at 4:30 PM
Subject: PBSmodelling: Change the "edit" option of a widget
To: r-help@r-project.org
Cc: www...@gmail.com


Is it possible to toggle the "edit" option of a widget?

I would like to make it so that when a user clicks on a boolean (like "use
constraints") it will lock or unlock the field in which they would enter the
constraints.

I can imagine redrawing the whole GUI using a function attached to the
boolean, but that's clunky and slow.
I tried changing the .PBSmod variable... but that doesn't redraw the GUI,
even if you use updateGUI("G") or updateGUI("L")

Thanks!

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to