I made a button using SetterBar. However, clicking the same button repeatedly does not apply. How to repeat the same button with SetterBar?

list={}; Manipulate[ list=Append[list,ele],{{ele,1},Range[5],SetterBar},TrackedSymbols:>{ele}]

The desired result is to use a SetterBar with duplicates like {1,5,5,3,3,4, ...}. Of course, you can substitute another command.


1 Answer 1

 {{ele, 1}, Range[5], TrackingFunction -> (ele = #; AppendTo[list, ele]; &)},
 {{list, {ele}}, None}]

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.