Change Button Label on the Fly?

Hey guys... is there a good way to change a button label (or text lable or whatever) when that button is pressed?

I tried this:
button
-label "Not Pressed"
-c "button -e -label "Pressed" myButton;"
myButton;

but of course it gets confused with the all of the quotes (")
sooooo... is there a way to do this without pre-defining a string var with the proper text in it?

thanks!

-jake

try this
button -label "oldName" -c("button -e -l "NewName" myButton") myButton;

yes escaping fun aint it... But one might need to be carefull with that since it gets realy confusing to escape something to the sytem command that needs to be escaped itself and that espaed for perl. gets very confusing to read.

This is the readon why