def print_(self, printer = None):
if (not printer):<EOL><INDENT>printer = QtGui.QPrinter()<EOL>if(QtGui.QPrintDialog(printer).exec_() != QtGui.QDialog.Accepted):<EOL><INDENT>return<EOL><DEDENT><DEDENT>self._control.print_(printer)<EOL>
Print the contents of the ConsoleWidget to the specified QPrinter.