ripple's position is not changing with button position

12 views
Skip to first unread message

Degenerate Tech

unread,
Jul 6, 2024, 8:43:52 AM (11 days ago) Jul 6
to Kivy users support
button is moving but ripple is showng past button's origin position . how to solved ?
main.py
myapp.kv

ELLIOT GARBUS

unread,
Jul 6, 2024, 5:37:46 PM (10 days ago) Jul 6
to kivy-...@googlegroups.com
Take a look at the file where the ripple behavior is defined:  .venv/Lib/site-packages/kivy/uix/behaviors/touchripple.py

I would recommend copying this file, giving it a new name in your local project directory.   Rename the Behaviors(ie MovingTouchRipple) in the file and modify the code so the ripple effect moves with the base widget class.   The pos of the base widget class here will be self.pos.

Just taking a quick look - it is not obvious what to change.  There are a number of methods that handle the drawing and animation.  You will need to figure these out, so the animations move with the button widget.




From: kivy-...@googlegroups.com <kivy-...@googlegroups.com> on behalf of Degenerate Tech <sksah...@gmail.com>
Sent: Saturday, July 6, 2024 5:43 AM
To: Kivy users support <kivy-...@googlegroups.com>
Subject: [kivy-users] ripple's position is not changing with button position
 
button is moving but ripple is showng past button's origin position . how to solved ?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/23591f91-bb41-4b27-8e6f-5fd52e0f120fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages