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

How to update slider dynamically? #1

Open
syleishere opened this issue Mar 31, 2024 · 0 comments
Open

How to update slider dynamically? #1

syleishere opened this issue Mar 31, 2024 · 0 comments

Comments

@syleishere
Copy link

syleishere commented Mar 31, 2024

Been trying to combine it with on_duration_changed from audio plugin can't seem to find a way without removing control and adding it back. Also it is very chatty plugin causing issues on android UI.....

I added:         
+self.on_pan_end = self.__on_exit
+self.on_long_press_end = self.__on_exit
-if self.on_change is not None:
-    self.on_change(self.value)

+    def __on_exit(self, e):
+       print(f"Made it to EXIT HANDLER!!!")
+       if self.on_change is not None:
+            self.on_change(self.value)

But now if I click on it anywhere won't send value, needs some bug fixups and capabilities like a real slider

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

1 participant