Exemplo n.º 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_()
Exemplo n.º 2
0
 def preview_doc(self, doc):
     '''Preview the document.'''
     dialog = printsupport.QPrintPreviewDialog()
     dialog.setSizeGripEnabled(True)
     dialog.paintRequested.connect(doc.print_)
     dialog.exec_()