mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-04 20:44:14 -04:00
Updated kivymd
This commit is contained in:
parent
c6df8b851b
commit
abcf173cc8
160 changed files with 11617 additions and 6545 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue