def handlePrint(self): dialog = QPrintDialog() if dialog.exec_() == QtGui.QDialog.Accepted: self.handlePaintRequest(dialog.printer())
def file_print(self): dlg = QPrintDialog() if dlg.exec_(): self.editor.print_(dlg.printer())