Thanks, that worked. I think what happened is I clicked on the code window and did some editing, then went back to the blockly panel. It seemed when I did that, the blockly no longer updated the actual python code.
I will check out your examples,
Prof Huster
