def evaluate_selection(self):
        """
        Evaluates current **Script_Editor_tabWidget** Widget tab Model editor
        selected content in the interactive console.

        :return: Method success.
        :rtype: bool
        """

        editor = self.get_current_editor()
        if not editor:
            return False

        LOGGER.debug("> Evaluating 'Script Editor' selected content.")
        if self.evaluate_code(
                foundations.strings.to_string(editor.get_selected_text().replace(QChar(QChar.ParagraphSeparator),
                                                                                 QString("\n")))):
            self.ui_refresh.emit()
            return True
def evaluate_selection ( self ) : editor = self . get_current_editor ( ) if not editor : return False LOGGER . debug ( "> Evaluating 'Script Editor' selected content." ) if self . evaluate_code ( foundations . strings . to_string ( editor . get_selected_text ( ) . replace ( QChar ( QChar . ParagraphSeparator ) , QString ( "\n" ) ) ) ) : self . ui_refresh . emit ( ) return True
Evaluates current **Script_Editor_tabWidget** Widget tab Model editor
        selected content in the interactive console.

        :return: Method success.
        :rtype: bool