(self, source)
Paste source code into the console.
Paste source code into the console.
Paste source code into the console .
def pasteCode(self, source):
        """
        Paste source code into the console.
        """
        self._moveCursorToInputLine()

        for line in interleave(source.splitlines(), itertools.repeat("\n")):
            if line != "\n":
                self.insertPlainText(line)
            else:
                self.write("\n")
                next(self.loop)
def pasteCode ( self , source ) : self . _moveCursorToInputLine ( ) for line in interleave ( source . splitlines ( ) , itertools . repeat ( "\n" ) ) : if line != "\n" : self . insertPlainText ( line ) else : self . write ( "\n" ) next ( self . loop )