-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
MDSegmentButton with Icon raises AttributeError #1735
Comments
Im having this same issue. Do you find an answer? |
By the way, i just learn to create the MDialog... "components" in the .kv file. there you can use the MDSegmentButtonIcon without trouble!!! |
alpianon
added a commit
to alpianon/KivyMD
that referenced
this issue
Dec 13, 2024
…style In segmentedbutton.kv, check if MDSegmentButtonIcon has a parent.parent before checking container's parent _label, otherwise you may get the following error: AttributeError: 'NoneType' object has no attribute 'parent' Fix kivymd#1735 Signed-off-by: Alberto Pianon <[email protected]>
alpianon
added a commit
to alpianon/KivyMD
that referenced
this issue
Dec 13, 2024
In segmentedbutton.kv, we need to check if the MDSegmentButtonIcon object actually has a parent.parent before checking container's parent _label, otherwise you may get the following error: AttributeError: 'NoneType' object has no attribute 'parent' Fix kivymd#1735 Signed-off-by: Alberto Pianon <[email protected]>
alpianon
added a commit
to alpianon/KivyMD
that referenced
this issue
Dec 13, 2024
In segmentedbutton.kv, we need to check if the MDSegmentButtonIcon object actually has a parent.parent before checking container's parent _label, otherwise you may get the following error: AttributeError: 'NoneType' object has no attribute 'parent' Fix kivymd#1735 Signed-off-by: Alberto Pianon <[email protected]>
alpianon
added a commit
to alpianon/KivyMD
that referenced
this issue
Dec 13, 2024
In segmentedbutton.kv, we need to check if the MDSegmentButtonIcon object actually has a parent.parent before checking container's parent _label, otherwise you may get the following error: AttributeError: 'NoneType' object has no attribute 'parent' Fix kivymd#1735 Signed-off-by: Alberto Pianon <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the Bug
if you use the MDSegmentedButtonIcon, the application will exit with an AttributeError:
AttributeError: 'NoneType' object has no attribute 'parent'
Code and Logs
Errormessage:
Versions
The text was updated successfully, but these errors were encountered: