Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

interact buttons that do stuff, not just selectors

Is there some way to build a button-like interact control type so that, when pressed, a designated process is carried out so as to produce a new result to be added to an existing display -- e.g., a button to generate a new random number and add it to an existing list, a button to add another new data point to an existing sample, etc. An example that I could look at would be enough to get me started.

interact buttons that do stuff, not just selectors

Is there some way to build a button-like interact control type button so that, when pressed, a designated process action/program is carried out so as to produce a new result to be added to an existing display -- e.g., a button to generate a new random number and add it to an existing list, a button to add another new data point to an existing sample, etc. An example that I could look at would be enough to get me started.

FWIW, this is what the "Button" gizmo in Mathematica does: "Button[_label_,_action_] represents a button that is labeled with _label_, and evaluates _action_ whenever it is clicked."

interact buttons that do stuff, not just selectors

Is there some way to build a interact control button so that, when pressed, a designated action/program is carried out so as to produce a new result to be added to an existing display -- e.g., a button to generate a new random number and add it to an existing list, a button to add another new data point to an existing sample, scatter plot, or to eliminate an outlier, etc. An example that I could look at would be enough to get me started.

FWIW, this is what the "Button" gizmo in Mathematica does: "Button[_label_,_action_] represents a button that is labeled with _label_, and evaluates _action_ whenever it is clicked."