QScintilla/MiniEditor.py

changeset 4074
95c24977f68f
parent 4021
195a471c327b
child 4176
4c09d3d75768
equal deleted inserted replaced
4073:b9feda1dcf1a 4074:95c24977f68f
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