def preview_doc(self, doc): """Preview the document.""" # pylint: disable=no-member dialog = printsupport.QPrintPreviewDialog() dialog.setSizeGripEnabled(True) dialog.paintRequested.connect(doc.print) dialog.exec_()
def preview_doc(self, doc): '''Preview the document.''' dialog = printsupport.QPrintPreviewDialog() dialog.setSizeGripEnabled(True) dialog.paintRequested.connect(doc.print_) dialog.exec_()