You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is working without any issue, so i move one step further in my learning by create the home page[main scren]
which I commented out in the above code
But when I added the home page which is the "main screen" in the code like this -
File "/home/vishakraj/Documents/kivy_learn_env/lib/python3.10/site-packages/kivymd/uix/transition/transition.py", line 206, in on_complete
hero_from_children = self._hero_from_widget_children[
KeyError: 'Tag 3'
The code is working without the "main screen", but when add the "main screen", this error occurs.
When I debug the codes, I found this -
in the file kivy_learn_env/lib/python3.10/site-packages/kivymd/uix/transition/transition.py on line 203, hero_from_widget.tag is empty doesnt have the hero items, this varable usually should hold all the heroitems and self._hero_from_widget_children have the current heroitem which is selected
and also, in the file kivy_learn_env/lib/python3.10/site-packages/kivymd/uix/transition/transition.py - the function
animated_hero_out - class on_complete method - on line 192, = is supposed to call only when the hero item is selected,
but instead what happens, it is called when the "screen A" is opened itself
Could you help me solve this issue, thanks
Versions
OS: Ubuntu 22.04.2
Python: 3.10.12
Kivy: 2.3.0
KivyMD: 2.0.1.dev0
The text was updated successfully, but these errors were encountered:
Hi,
I am learning KivyMD, While learning this example - https://kivymd.readthedocs.io/en/latest/components/hero/#usage-with-scrollview
Here is the code:
This code is working without any issue, so i move one step further in my learning by create the home page[main scren]
which I commented out in the above code
But when I added the home page which is the "main screen" in the code like this -
I got the error from the above code as
The code is working without the "main screen", but when add the "main screen", this error occurs.
When I debug the codes, I found this -
in the file kivy_learn_env/lib/python3.10/site-packages/kivymd/uix/transition/transition.py on line 203,
hero_from_widget.tag
is empty doesnt have the hero items, this varable usually should hold all the heroitems andself._hero_from_widget_children
have the current heroitem which is selectedand also, in the file kivy_learn_env/lib/python3.10/site-packages/kivymd/uix/transition/transition.py - the function
animated_hero_out - class on_complete method - on line 192, = is supposed to call only when the hero item is selected,
but instead what happens, it is called when the "screen A" is opened itself
Could you help me solve this issue, thanks
Versions
The text was updated successfully, but these errors were encountered: