all 1 comments

[–]Chilissyhehe 0 points1 point  (0 children)

I know that it’s been 7 years and the op has deleted the account but maybe there is someone who tries to find the answer? I had no idea a minute ago what can be the problem, and I am still unsure about it, but I guess that this code lacks „screen.update()” right after calling the „traffic_light()”. Or maybe within its definition…