421 if printDialog.exec_() == QDialog.Accepted: |
421 if printDialog.exec_() == QDialog.Accepted: |
422 try: |
422 try: |
423 frame.print_(printer) |
423 frame.print_(printer) |
424 except AttributeError: |
424 except AttributeError: |
425 E5MessageBox.critical(self, |
425 E5MessageBox.critical(self, |
426 self.trUtf8("Eric Web Browser"), |
426 self.trUtf8("eric5 Web Browser"), |
427 self.trUtf8("""<p>Printing is not available due to a bug in PyQt4.""" |
427 self.trUtf8("""<p>Printing is not available due to a bug in PyQt4.""" |
428 """Please upgrade.</p>""")) |
428 """Please upgrade.</p>""")) |
429 return |
429 return |
430 |
430 |
431 def printBrowserPdf(self, browser=None): |
431 def printBrowserPdf(self, browser=None): |
462 if printDialog.exec_() == QDialog.Accepted: |
462 if printDialog.exec_() == QDialog.Accepted: |
463 try: |
463 try: |
464 frame.print_(printer) |
464 frame.print_(printer) |
465 except AttributeError: |
465 except AttributeError: |
466 E5MessageBox.critical(self, |
466 E5MessageBox.critical(self, |
467 self.trUtf8("Eric Web Browser"), |
467 self.trUtf8("eric5 Web Browser"), |
468 self.trUtf8("""<p>Printing is not available due to a bug in PyQt4.""" |
468 self.trUtf8("""<p>Printing is not available due to a bug in PyQt4.""" |
469 """Please upgrade.</p>""")) |
469 """Please upgrade.</p>""")) |
470 return |
470 return |
471 |
471 |
472 def printPreviewBrowser(self, browser=None): |
472 def printPreviewBrowser(self, browser=None): |
511 """ |
511 """ |
512 try: |
512 try: |
513 self.__printPreviewBrowser.print_(printer) |
513 self.__printPreviewBrowser.print_(printer) |
514 except AttributeError: |
514 except AttributeError: |
515 E5MessageBox.critical(self, |
515 E5MessageBox.critical(self, |
516 self.trUtf8("Eric Web Browser"), |
516 self.trUtf8("eric5 Web Browser"), |
517 self.trUtf8("""<p>Printing is not available due to a bug in PyQt4.""" |
517 self.trUtf8("""<p>Printing is not available due to a bug in PyQt4.""" |
518 """Please upgrade.</p>""")) |
518 """Please upgrade.</p>""")) |
519 return |
519 return |
520 |
520 |
521 def __sourceChanged(self, url): |
521 def __sourceChanged(self, url): |