コード例 #1
0
 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_()
コード例 #2
0
 def preview_doc(self, doc):
     '''Preview the document.'''
     dialog = printsupport.QPrintPreviewDialog()
     dialog.setSizeGripEnabled(True)
     dialog.paintRequested.connect(doc.print_)
     dialog.exec_()