I am trying to make a Package
for a piece of code though it's not needed here as it is very small. But my actual code here is a little bit different from that code. When I tried to make a package for Button
. I found that the symbol True
is protected.
I have made a package with the function Buttonfun
BeginPackage["package`"]
Buttonfun[g1_,g2_]:= Button[" ",(g1=!g1;),Background->g2,Appearance->
"Frameless",Method-> "Queued"];
EndPackage[]
but when I call this with
Buttonfun[q1,Orange]
from my notebook, it is showing error message symbol True
is protected.
q2
defined? $\endgroup$q2
is defined. $\endgroup$