def print_(self, printer = None):
        """ Print the contents of the ConsoleWidget to the specified QPrinter.
        """
        if (not printer):
            printer = QtPrintSupport.QPrinter()
            if(QtPrintSupport.QPrintDialog(printer).exec_() != QtPrintSupport.QPrintDialog.Accepted):
                return
        self._control.print_(printer)
 Print the contents of the ConsoleWidget to the specified QPrinter.
        
angrmanagement/vendor/qtconsole/console_widget.py