Is there a way to use the same key to turn on and turn off the same function?
IE. If I hit 'a' to enable def calculate() then I hit 'a' again to disable def calculate().
I have the idea I think for it. Which would be to have a bool value and then change it from true to false and have if else statements to check it. Could be wrong thats why Im asking.
|