Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

What is the best practice to code an Interrupt in a python Class? #39

Open
pabloarthurrodger opened this issue Oct 19, 2014 · 0 comments

Comments

@pabloarthurrodger
Copy link

This is not an Issue, I just want to request an example of an Interrupt in a Class.

I do have a Interrupt trigger to a Callback function on a Class of a Movement Sensor

When I am importing the movement sensor Class in my code (since there are movement around) immediately start triggering the Callback function that gives an error because it does not have a "self" instance. (I am just importing the Class).

My question is there is a workaround? What is the best practice to code an Interrupt in a python Class?

Thanks in Advance,

Pablo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant