MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Button Question

  • To: mathgroup at
  • Subject: [mg84319] Button Question
  • From: John <jwa0 at>
  • Date: Wed, 19 Dec 2007 04:10:50 -0500 (EST)

The cell, pasted below, is in my notebook. When the cell is evaluated,
It prints a button, labeled simulate, but clicking on the button does
not  print the six simulated integers that RandomInteger  computed.

The error message says that the list of probabilities, entered as
shown below, is not a probability distribution recognized by the
system, but {1/6,1/6,1/6,1/6,1/6,1/6} is a valid multinomial

ButtonEvaluator, not mispelled, is printed in red. The color red must
be an indication of an error of some kind, but I have no idea what it

Cell[ButtonBox["Simulate", Active -> True,
   ButtonFunction ->
       100, {"1", "/", "6", "1", "/", "6", "1", "/", "6", "1", "/",
        "6", "1", "/", "6", "1", "/", "6"}], 1]],
   ButtonEvaluator -> Automatic] // DisplayForm, "Output"],

In one example, I saw, the arrow between ButtonFunction and Print is
short and preceded by a colon. If if that notation is necessary, I
don't know how to do it.

Helpful advice will be appreciated .


  • Prev by Date: Re: Re: Timing and Pi
  • Next by Date: Re: Interesting problem: Use of NonlinearRegress inside a package
  • Previous by thread: Re: Trouble with double factorial and an infinite product
  • Next by thread: RE: Button Question