Message Boards Message Boards

0
|
6321 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Create a button?

Posted 7 years ago

Hello,

I am inexperienced with Mathematica, currently trying to use it as a tool for balancing a game. I want to create a button (with attached action) and for this purpose I looked up the function button and copied the examples into a notebook only to have nothing happen. Well, the cell brackets become bold, I am assuming it means it's processing the entry. It remains as such without any output. I have tried copy pasting various examples with none working.

I copied the following line from the online help/documentation on the function "Button"

Button["Click Here", Print[10!]]

and got no output (button or otherwise)

appreciate your help, thank you Akhilesh Bhartia

POSTED BY: Akhilesh Bhartia
2 Replies

Don't copy stuff from the documentation. Try typing it out yourself. Do you still see the problem? Are you using Mathematica on the Desktop or online?

When you copy stuff from the documentation, it might contain some special formatting. This can be confusing at first.

POSTED BY: Sean Clarke

Your input works fine on my system. I don't know what you are doing wrong.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract