Helpviewer/HelpWindow.py

changeset 37
bfe92e414977
parent 15
f6ccc31d6e72
child 52
ba69827929ee
equal deleted inserted replaced
36:835407b77a50 37:bfe92e414977
1609 else: 1609 else:
1610 printer.setPageOrder(QPrinter.LastPageFirst) 1610 printer.setPageOrder(QPrinter.LastPageFirst)
1611 printer.setPrinterName(Preferences.getPrinter("PrinterName")) 1611 printer.setPrinterName(Preferences.getPrinter("PrinterName"))
1612 1612
1613 printDialog = QPrintDialog(printer, self) 1613 printDialog = QPrintDialog(printer, self)
1614 if browser.hasSelection():
1615 printDialog.addEnabledOption(QAbstractPrintDialog.PrintSelection)
1616 if printDialog.exec_() == QDialog.Accepted: 1614 if printDialog.exec_() == QDialog.Accepted:
1617 try: 1615 try:
1618 frame.print_(printer) 1616 frame.print_(printer)
1619 except AttributeError: 1617 except AttributeError:
1620 QMessageBox.critical(self, 1618 QMessageBox.critical(self,
2666 2664
2667 def __showEnginesConfigurationDialog(self): 2665 def __showEnginesConfigurationDialog(self):
2668 """ 2666 """
2669 Private slot to show the search engines configuration dialog. 2667 Private slot to show the search engines configuration dialog.
2670 """ 2668 """
2671 from OpenSearch.OpenSearchDialog import OpenSearchDialog 2669 from .OpenSearch.OpenSearchDialog import OpenSearchDialog
2672 2670
2673 dlg = OpenSearchDialog(self) 2671 dlg = OpenSearchDialog(self)
2674 dlg.exec_() 2672 dlg.exec_()
2675 2673
2676 def searchEnginesAction(self): 2674 def searchEnginesAction(self):
2683 2681
2684 def __showPasswordsDialog(self): 2682 def __showPasswordsDialog(self):
2685 """ 2683 """
2686 Private slot to show the passwords management dialog. 2684 Private slot to show the passwords management dialog.
2687 """ 2685 """
2688 from Passwords.PasswordsDialog import PasswordsDialog 2686 from .Passwords.PasswordsDialog import PasswordsDialog
2689 2687
2690 dlg = PasswordsDialog(self) 2688 dlg = PasswordsDialog(self)
2691 dlg.exec_() 2689 dlg.exec_()
2692 2690
2693 def __showAdBlockDialog(self): 2691 def __showAdBlockDialog(self):

eric ide

mercurial