def close_window(self):
        """Close QMainWindow instance that contains this plugin."""
        if self.undocked_window is not None:
            self.undocked_window.close()
            self.undocked_window = None

            # Oddly, these actions can appear disabled after the Dock
            # action is pressed
            self.undock_action.setDisabled(False)
            self.close_plugin_action.setDisabled(False)
def close_window ( self ) : if self . undocked_window is not None : self . undocked_window . close ( ) self . undocked_window = None self . undock_action . setDisabled ( False ) self . close_plugin_action . setDisabled ( False )
Close QMainWindow instance that contains this plugin.