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

Bug on DEMO: clicking on stackoverflow/text svg crashes the application #8

Open
FilipeMarch opened this issue Jan 20, 2024 · 0 comments

Comments

@FilipeMarch
Copy link

FilipeMarch commented Jan 20, 2024

When you click on so.svg or text.svg it crashes with the error AttributeError: 'Kivg' object has no attribute 'closed_shapes'
image
traceback:

 Traceback (most recent call last):
   File "/usr/quick-tests/svg-anim-kivy/demo/main.py", line 155, in <module>
     KivgDemo().run()
   File "/usr/quick-tests/svg-anim-kivy/.venv/lib/python3.11/site-packages/kivy/app.py", line 956, in run
     runTouchApp()
   File "/usr/quick-tests/svg-anim-kivy/.venv/lib/python3.11/site-packages/kivy/base.py", line 574, in runTouchApp
     EventLoop.mainloop()
   File "/usr/quick-tests/svg-anim-kivy/.venv/lib/python3.11/site-packages/kivy/base.py", line 339, in mainloop
     self.idle()
   File "/usr/quick-tests/svg-anim-kivy/.venv/lib/python3.11/site-packages/kivy/base.py", line 383, in idle
     self.dispatch_input()
   File "/usr/quick-tests/svg-anim-kivy/.venv/lib/python3.11/site-packages/kivy/base.py", line 334, in dispatch_input
     post_dispatch_input(*pop(0))
   File "/usr/quick-tests/svg-anim-kivy/.venv/lib/python3.11/site-packages/kivy/base.py", line 302, in post_dispatch_input
     wid.dispatch('on_touch_up', me)
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/usr/quick-tests/svg-anim-kivy/.venv/lib/python3.11/site-packages/kivy/uix/behaviors/button.py", line 179, in on_touch_up
     self.dispatch('on_release')
   File "kivy/_event.pyx", line 727, in kivy._event.EventDispatcher.dispatch
   File "kivy/_event.pyx", line 1307, in kivy._event.EventObservers.dispatch
   File "kivy/_event.pyx", line 1191, in kivy._event.EventObservers._dispatch
   File "/usr/quick-tests/svg-anim-kivy/.venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 60, in custom_callback
     exec(__kvlang__.co_value, idmap)
   File "<string>", line 65, in <module>
   File "/usr/quick-tests/svg-anim-kivy/demo/main.py", line 146, in shape_animate
     self.s.shape_animate(svg_file, anim_config_list=eval(config), on_complete=self.completed)
   File "/usr/quick-tests/svg-anim-kivy/demo/kivg/main.py", line 93, in shape_animate
     anim_list = self._shape_animate(
                 ^^^^^^^^^^^^^^^^^^^^
   File "/usr/quick-tests/svg-anim-kivy/demo/kivg/main.py", line 132, in _shape_animate
     if self.closed_shapes.get(id_, None):
        ^^^^^^^^^^^^^^^^^^
 AttributeError: 'Kivg' object has no attribute 'closed_shapes'
@FilipeMarch FilipeMarch changed the title Bug on DEMO: clicking on stackoverflow svg crashes the application Bug on DEMO: clicking on stackoverflow/text svg crashes the application Jan 20, 2024
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

1 participant