20 |
20 |
21 def __init__(self, urlString, title, parent=None): |
21 def __init__(self, urlString, title, parent=None): |
22 """ |
22 """ |
23 Constructor |
23 Constructor |
24 |
24 |
25 @param urlString feed URL (string) |
25 @param urlString feed URL |
26 @param title feed title (string) |
26 @type str |
27 @param parent reference to the parent widget (QWidget) |
27 @param title feed title |
|
28 @type str |
|
29 @param parent reference to the parent widget |
|
30 @type QWidget |
28 """ |
31 """ |
29 super().__init__(parent) |
32 super().__init__(parent) |
30 self.setupUi(self) |
33 self.setupUi(self) |
31 |
34 |
32 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
35 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
57 @pyqtSlot(str) |
60 @pyqtSlot(str) |
58 def on_titleEdit_textChanged(self, txt): |
61 def on_titleEdit_textChanged(self, txt): |
59 """ |
62 """ |
60 Private slot to handle changes of the feed title. |
63 Private slot to handle changes of the feed title. |
61 |
64 |
62 @param txt new feed title (string) |
65 @param txt new feed title |
|
66 @type str |
63 """ |
67 """ |
64 self.__setOkButton() |
68 self.__setOkButton() |
65 |
69 |
66 @pyqtSlot(str) |
70 @pyqtSlot(str) |
67 def on_urlEdit_textChanged(self, txt): |
71 def on_urlEdit_textChanged(self, txt): |
68 """ |
72 """ |
69 Private slot to handle changes of the feed URL. |
73 Private slot to handle changes of the feed URL. |
70 |
74 |
71 @param txt new feed URL (string) |
75 @param txt new feed URL |
|
76 @type str |
72 """ |
77 """ |
73 self.__setOkButton() |
78 self.__setOkButton() |
74 |
79 |
75 def getData(self): |
80 def getData(self): |
76 """ |
81 """ |
77 Public method to get the entered feed data. |
82 Public method to get the entered feed data. |
78 |
83 |
79 @return tuple of two strings giving the feed URL and feed title |
84 @return tuple of two strings giving the feed URL and feed title |
80 (string, string) |
85 @rtype tuple of (str, str) |
81 """ |
86 """ |
82 return (self.urlEdit.text(), self.titleEdit.text()) |
87 return (self.urlEdit.text(), self.titleEdit.text()) |