Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triggering functions when watch variable changes #116

Open
omaralt opened this issue Dec 21, 2024 · 2 comments
Open

Triggering functions when watch variable changes #116

omaralt opened this issue Dec 21, 2024 · 2 comments

Comments

@omaralt
Copy link

omaralt commented Dec 21, 2024

Hi I have been looking to integrate watchpoints into a Flask app project I am working on. My aim is to watch a coordinates variable that changes each time the front end user makes a location change request. The coordinates changes are being picked up by watch in the app but I am hoping that when watch prints in the console that the variable has changed it will do another action like call a separate function.

Please let me know where to move this as this is an open question rather than a bug or a feature request. Thanks

@gaogaotiantian
Copy link
Owner

That should be a question in watchpoints not objprint I think? You can define your own callback with watch(callback=your_callback_func)

@omaralt
Copy link
Author

omaralt commented Dec 22, 2024

Thank you please close

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

No branches or pull requests

2 participants