Button Question?
- To: mathgroup at smc.vnet.net
- Subject: [mg84576] Button Question?
- From: John <jwa0 at lehigh.edu>
- Date: Sat, 5 Jan 2008 04:35:20 -0500 (EST)
Evaluation of the cell listed below prints a button, but clicking on
the button does not print the random numbers. Why is ButtonEvaluator,
not mispelled, printed in red?
Error message says a button function option is not a rule.
Cell[ButtonBox["Simulate", Active -> True,
ButtonFunction -> (Needs["MultivariateStatistics`"];
Print[RandomInteger[
MultivariateStatistics`MultinomialDistribution[
100, {1/6, 1/6, 1/6, 1/6, 1/6, 1/6}], 1]]),
ButtonEvaluator -> Automatic] // DisplayForm, "Output"],
I want the button to work as advertised, but so far no luck.
John