kivymd / KivyMD

KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd
https://kivymd.readthedocs.io
MIT License
2.25k stars 673 forks source link

MDSwiper not working #1691

Closed Sahil-pixel closed 5 months ago

Sahil-pixel commented 7 months ago

Description of the Bug

swiping error line 213, in on_touch_move self.effect_x.convert_overscroll(touch) AttributeError: '_ScrollViewHardStop' object has no attribute 'convert_overscroll'. Did you mean: 'on_overscroll'?

and line 218, in on_touch_up self.effect_x.reset_scale() AttributeError: '_ScrollViewHardStop' object has no attribute 'reset_scale'

Your text

Code and Logs


from kivymd.app import MDApp

kv = '''
<MySwiper@MDSwiperItem>

    FitImage:
        source: "bg.jpg"
        radius: [dp(20),]

MDScreen:
    md_bg_color: self.theme_cls.backgroundColor

    MDSwiper:
        size_hint_y: None
        height: root.height - dp(40)
        y: root.height - self.height - dp(20)

        MySwiper:

        MySwiper:

        MySwiper:

        MySwiper:

        MySwiper:
'''

class Main(MDApp):
    def build(self):
        self.theme_cls.theme_style = "Dark"
        return Builder.load_string(kv)

Main().run()

Screenshots

Add images to explain us this bug. Paste urls here.

Remove this section if no images here

Versions

jtoror commented 5 months ago

I have the same error with the example code.

It's a complete hassle to program with kivymd.

I'm already abandoning it completely.