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...")) |