Helpviewer/HelpTabWidget.py

changeset 3345
071afe8be2a1
parent 3190
a9a94491c4fd
child 3484
645c12de6b0c
equal deleted inserted replaced
3343:f7a6d271bb40 3345:071afe8be2a1
7 Module implementing the central widget showing the web pages. 7 Module implementing the central widget showing the web pages.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import pyqtSignal, Qt, QUrl 12 from PyQt4.QtCore import pyqtSignal, pyqtSlot, Qt, QUrl
13 from PyQt4.QtGui import QWidget, QHBoxLayout, QMenu, QToolButton, QPrinter, \ 13 from PyQt4.QtGui import QWidget, QHBoxLayout, QMenu, QToolButton, QPrinter, \
14 QPrintDialog, QDialog, QIcon 14 QPrintDialog, QDialog, QIcon
15 from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRequest 15 from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRequest
16 16
17 from E5Gui.E5TabWidget import E5TabWidget 17 from E5Gui.E5TabWidget import E5TabWidget
493 li = [] 493 li = []
494 for index in range(self.count()): 494 for index in range(self.count()):
495 li.append(self.widget(index)) 495 li.append(self.widget(index))
496 return li 496 return li
497 497
498 @pyqtSlot()
498 def printBrowser(self, browser=None): 499 def printBrowser(self, browser=None):
499 """ 500 """
500 Public slot called to print the displayed page. 501 Public slot called to print the displayed page.
501 502
502 @param browser reference to the browser to be printed (HelpBrowser) 503 @param browser reference to the browser to be printed (HelpBrowser)
543 self.tr( 544 self.tr(
544 """<p>Printing is not available due to a bug in""" 545 """<p>Printing is not available due to a bug in"""
545 """ PyQt4. Please upgrade.</p>""")) 546 """ PyQt4. Please upgrade.</p>"""))
546 return 547 return
547 548
549 @pyqtSlot()
548 def printBrowserPdf(self, browser=None): 550 def printBrowserPdf(self, browser=None):
549 """ 551 """
550 Public slot called to print the displayed page to PDF. 552 Public slot called to print the displayed page to PDF.
551 553
552 @param browser reference to the browser to be printed (HelpBrowser) 554 @param browser reference to the browser to be printed (HelpBrowser)
588 self.tr( 590 self.tr(
589 """<p>Printing is not available due to a bug in""" 591 """<p>Printing is not available due to a bug in"""
590 """ PyQt4. Please upgrade.</p>""")) 592 """ PyQt4. Please upgrade.</p>"""))
591 return 593 return
592 594
595 @pyqtSlot()
593 def printPreviewBrowser(self, browser=None): 596 def printPreviewBrowser(self, browser=None):
594 """ 597 """
595 Public slot called to show a print preview of the displayed file. 598 Public slot called to show a print preview of the displayed file.
596 599
597 @param browser reference to the browser to be printed (HelpBrowserWV) 600 @param browser reference to the browser to be printed (HelpBrowserWV)

eric ide

mercurial