Helpviewer/HelpTopicDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3060
5883ce99ee12
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to select a help topic to display. 7 Module implementing a dialog to select a help topic to display.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtGui import QDialog 12 from PyQt4.QtGui import QDialog
11 from PyQt4.QtCore import QUrl 13 from PyQt4.QtCore import QUrl
12 14
13 from .Ui_HelpTopicDialog import Ui_HelpTopicDialog 15 from .Ui_HelpTopicDialog import Ui_HelpTopicDialog
24 @param parent reference to the parent widget (QWidget) 26 @param parent reference to the parent widget (QWidget)
25 @param keyword keyword for the link set (string) 27 @param keyword keyword for the link set (string)
26 @param links dictionary with help topic as key (string) and 28 @param links dictionary with help topic as key (string) and
27 URL as value (QUrl) 29 URL as value (QUrl)
28 """ 30 """
29 super().__init__(parent) 31 super(HelpTopicDialog, self).__init__(parent)
30 self.setupUi(self) 32 self.setupUi(self)
31 33
32 self.label.setText(self.trUtf8("Choose a &topic for <b>{0}</b>:")\ 34 self.label.setText(self.trUtf8("Choose a &topic for <b>{0}</b>:")\
33 .format(keyword)) 35 .format(keyword))
34 36

eric ide

mercurial