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

MDSwiper not working #1691

Closed
Sahil-pixel opened this issue Apr 23, 2024 · 1 comment
Closed

MDSwiper not working #1691

Sahil-pixel opened this issue Apr 23, 2024 · 1 comment

Comments

@Sahil-pixel
Copy link

Sahil-pixel commented Apr 23, 2024

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

  • OS: ubuntu
  • Python: 3.10
  • Kivy: 2.3.0
  • KivyMD: 2.0.1 dev
@jtoror
Copy link

jtoror commented May 29, 2024

I have the same error with the example code.

It's a complete hassle to program with kivymd.

I'm already abandoning it completely.

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

2 participants