def _create_checkable_action(self, text, conf_name, editorstack_method):
        """Helper function to create a checkable action.

        Args:
            text (str): Text to be displayed in the action.
            conf_name (str): configuration setting associated with the action
            editorstack_method (str): name of EditorStack class that will be
                used to update the changes in each editorstack.
        """
        def toogle(checked):
            self.switch_to_plugin()
            self._toggle_checkable_action(checked, editorstack_method,
                                          conf_name)
        action = create_action(self, text, toggled=toogle)
        action.setChecked(CONF.get('editor', conf_name))
        return action
def _create_checkable_action ( self , text , conf_name , editorstack_method ) : def toogle ( checked ) : self . switch_to_plugin ( ) self . _toggle_checkable_action ( checked , editorstack_method , conf_name ) action = create_action ( self , text , toggled = toogle ) action . setChecked ( CONF . get ( 'editor' , conf_name ) ) return action
Helper function to create a checkable action.

        Args:
            text (str): Text to be displayed in the action.
            conf_name (str): configuration setting associated with the action
            editorstack_method (str): name of EditorStack class that will be
                used to update the changes in each editorstack.