code: def destroy(self):
          
          widget = self.widget
          if widget is not None:
              del self.widget
          super(UiKitToolkitObject, self).destroy()
docs: A reimplemented destructor.
  
          This destructor will clear the reference to the toolkit widget
          and set its parent to None.