WebBrowser/AdBlock/AdBlockExceptionsDialog.py

changeset 6028
859f6894eed9
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
equal deleted inserted replaced
6027:d056a536670e 6028:859f6894eed9
23 """ 23 """
24 def __init__(self, parent=None): 24 def __init__(self, parent=None):
25 """ 25 """
26 Constructor 26 Constructor
27 27
28 @param parent reference to the parent widget (QWidget) 28 @param parent reference to the parent widget
29 @type QWidget
29 """ 30 """
30 super(AdBlockExceptionsDialog, self).__init__(parent) 31 super(AdBlockExceptionsDialog, self).__init__(parent)
31 self.setupUi(self) 32 self.setupUi(self)
32 self.setWindowFlags(Qt.Window) 33 self.setWindowFlags(Qt.Window)
33 34
41 def load(self, hosts): 42 def load(self, hosts):
42 """ 43 """
43 Public slot to load the list of excepted hosts. 44 Public slot to load the list of excepted hosts.
44 45
45 @param hosts list of excepted hosts 46 @param hosts list of excepted hosts
47 @type list of str
46 """ 48 """
47 self.hostList.clear() 49 self.hostList.clear()
48 self.hostList.addItems(hosts) 50 self.hostList.addItems(hosts)
49 51
50 @pyqtSlot(str) 52 @pyqtSlot(str)
51 def on_hostEdit_textChanged(self, txt): 53 def on_hostEdit_textChanged(self, txt):
52 """ 54 """
53 Private slot to handle changes of the host edit. 55 Private slot to handle changes of the host edit.
54 56
55 @param txt text of the edit (string) 57 @param txt text of the edit
58 @type str
56 """ 59 """
57 self.addButton.setEnabled(bool(txt)) 60 self.addButton.setEnabled(bool(txt))
58 61
59 @pyqtSlot() 62 @pyqtSlot()
60 def on_addButton_clicked(self): 63 def on_addButton_clicked(self):

eric ide

mercurial