4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to add RSS feeds. |
7 Module implementing a dialog to add RSS feeds. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import QUrl |
12 from PyQt4.QtCore import QUrl |
11 from PyQt4.QtGui import QDialog, QPushButton, QLabel |
13 from PyQt4.QtGui import QDialog, QPushButton, QLabel |
12 |
14 |
13 from E5Gui import E5MessageBox |
15 from E5Gui import E5MessageBox |
27 |
29 |
28 @param availableFeeds list of available RSS feeds (list of tuple of two strings) |
30 @param availableFeeds list of available RSS feeds (list of tuple of two strings) |
29 @param browser reference to the browser widget (HelpBrowser) |
31 @param browser reference to the browser widget (HelpBrowser) |
30 @param parent reference to the parent widget (QWidget) |
32 @param parent reference to the parent widget (QWidget) |
31 """ |
33 """ |
32 super().__init__(parent) |
34 super(FeedsDialog, self).__init__(parent) |
33 self.setupUi(self) |
35 self.setupUi(self) |
34 |
36 |
35 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("rss48.png")) |
37 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("rss48.png")) |
36 |
38 |
37 self.__browser = browser |
39 self.__browser = browser |