code: def hide(self):
          
          self.visible = False
          if self.proxy_is_active:
              self.proxy.ensure_hidden()
docs: Ensure the widget is hidden.
          Calling this method will also set the widget visibility to False.