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