Home > database >  Remove a Widget when pressed in kivy
Remove a Widget when pressed in kivy

Time:01-13

Im making a App that creates widgets on the go and I need them to get removed when the User clicks on them. Is there any such self destroy function in kivy?

CodePudding user response:

You can put something like:

self.parent.remove_widget(self)

in a on_touch_up() method for the widget.

  •  Tags:  
  • Related