QScintilla/MiniEditor.py

branch
6_0_x
changeset 4075
f8757a7414b3
parent 4022
f5f42921717e
child 4176
4c09d3d75768
equal deleted inserted replaced
4071:fb7a5fa9f239 4075:f8757a7414b3
2521 from .Printer import Printer 2521 from .Printer import Printer
2522 printer = Printer(mode=QPrinter.HighResolution) 2522 printer = Printer(mode=QPrinter.HighResolution)
2523 sb = self.statusBar() 2523 sb = self.statusBar()
2524 printDialog = QPrintDialog(printer, self) 2524 printDialog = QPrintDialog(printer, self)
2525 if self.__textEdit.hasSelectedText(): 2525 if self.__textEdit.hasSelectedText():
2526 printDialog.addEnabledOption(QAbstractPrintDialog.PrintSelection) 2526 printDialog.setOption(QAbstractPrintDialog.PrintSelection, True)
2527 if printDialog.exec_() == QDialog.Accepted: 2527 if printDialog.exec_() == QDialog.Accepted:
2528 sb.showMessage(self.tr('Printing...')) 2528 sb.showMessage(self.tr('Printing...'))
2529 QApplication.processEvents() 2529 QApplication.processEvents()
2530 if self.__curFile: 2530 if self.__curFile:
2531 printer.setDocName(QFileInfo(self.__curFile).fileName()) 2531 printer.setDocName(QFileInfo(self.__curFile).fileName())

eric ide

mercurial