code: def destroy(self):
          
          widget = self.widget
          if widget is not None:
              widget.removeFromSuperview()
          super(UiKitView, self).destroy()
docs: A reimplemented destructor.
  
          This destructor will remove itself from the superview.