Helpviewer/AdBlock/AdBlockExceptionsDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2403
e3d7a861547c
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to configure the AdBlock exceptions. 7 Module implementing a dialog to configure the AdBlock exceptions.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot 12 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QDialog 13 from PyQt4.QtGui import QDialog
12 14
13 from .Ui_AdBlockExceptionsDialog import Ui_AdBlockExceptionsDialog 15 from .Ui_AdBlockExceptionsDialog import Ui_AdBlockExceptionsDialog
23 """ 25 """
24 Constructor 26 Constructor
25 27
26 @param parent reference to the parent widget (QWidget) 28 @param parent reference to the parent widget (QWidget)
27 """ 29 """
28 super().__init__(parent) 30 super(AdBlockExceptionsDialog, self).__init__(parent)
29 self.setupUi(self) 31 self.setupUi(self)
30 32
31 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlusGreen48.png")) 33 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlusGreen48.png"))
32 34
33 self.hostEdit.setInactiveText(self.trUtf8("Enter host to be added...")) 35 self.hostEdit.setInactiveText(self.trUtf8("Enter host to be added..."))
86 hosts.append(self.hostList.item(row).text()) 88 hosts.append(self.hostList.item(row).text())
87 89
88 import Helpviewer.HelpWindow 90 import Helpviewer.HelpWindow
89 Helpviewer.HelpWindow.HelpWindow.adBlockManager().setExceptions(hosts) 91 Helpviewer.HelpWindow.HelpWindow.adBlockManager().setExceptions(hosts)
90 92
91 super().accept() 93 super(AdBlockExceptionsDialog, self).accept()

eric ide

mercurial