0

I want to trigger an action on button press whatever I'm doing in the program. This button press have to change a global value necessary to do some different action based on this value. In the while loop I'm reading from RFID module if a valid card are detected. When I press the button without reading a card, the program runs well, but when I detect a card, the button doesn't trigger my callback function.

Here's the code: http://pastebin.com/cvtehZyZ

2
  • removing line with os.system() works, I'm sure this is the problem... Mar 11, 2016 at 13:32
  • I've solved this using subprocess.call(). Mar 11, 2016 at 14:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.