Updated kivymd

This commit is contained in:
Mark Qvist 2022-10-02 17:16:59 +02:00
parent c6df8b851b
commit abcf173cc8
160 changed files with 11617 additions and 6545 deletions

View file

@ -57,8 +57,10 @@ MDCarousel
from kivy.animation import Animation
from kivy.uix.carousel import Carousel
from kivymd.uix.behaviors import DeclarativeBehavior
class MDCarousel(Carousel):
class MDCarousel(DeclarativeBehavior, Carousel):
"""
based on kivy's carousel.
@ -68,8 +70,8 @@ class MDCarousel(Carousel):
_scrolling = False
def __init__(self, **kwargs):
super().__init__(**kwargs)
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.register_event_type("on_slide_progress")
self.register_event_type("on_slide_complete")