QScintilla/Editor.py

changeset 4074
95c24977f68f
parent 4029
59ab6030869b
child 4133
3d868439dddc
equal deleted inserted replaced
4073:b9feda1dcf1a 4074:95c24977f68f
2393 from .Printer import Printer 2393 from .Printer import Printer
2394 printer = Printer(mode=QPrinter.HighResolution) 2394 printer = Printer(mode=QPrinter.HighResolution)
2395 sb = e5App().getObject("UserInterface").statusBar() 2395 sb = e5App().getObject("UserInterface").statusBar()
2396 printDialog = QPrintDialog(printer, self) 2396 printDialog = QPrintDialog(printer, self)
2397 if self.hasSelectedText(): 2397 if self.hasSelectedText():
2398 printDialog.addEnabledOption(QAbstractPrintDialog.PrintSelection) 2398 printDialog.setOption(QAbstractPrintDialog.PrintSelection, True)
2399 if printDialog.exec_() == QDialog.Accepted: 2399 if printDialog.exec_() == QDialog.Accepted:
2400 sb.showMessage(self.tr('Printing...')) 2400 sb.showMessage(self.tr('Printing...'))
2401 QApplication.processEvents() 2401 QApplication.processEvents()
2402 fn = self.getFileName() 2402 fn = self.getFileName()
2403 if fn is not None: 2403 if fn is not None:

eric ide

mercurial