0

guys how to separate child to parent?

kivy.uix.widget.WidgetException: Cannot add <kivymd.uix.card.MDCard object at 0x000001EBCBFFB0B8>

it already has a parent <kivymd.uix.list.MDList object at 0x000001EBCF105B38>. I can separate mdcard object and add a new widget.

Nipun Thennakoon
  • 3,586
  • 1
  • 18
  • 26

1 Answers1

1

To remove a widget from its parent you have to use remove_widget function. If you want to remove all widgets from a parent, you can use clear_widgets function. You can check more details here.

I would appreciate if you provide some code so that I can correct it

Ankit Sangwan
  • 1,138
  • 1
  • 7
  • 20