eric6/WebBrowser/Feeds/FeedsDialog.py

changeset 7959
44e15eda6506
parent 7955
567f2ec958c3
child 8143
2c730d5fd177
equal deleted inserted replaced
7958:a70ebfad3d0e 7959:44e15eda6506
13 from PyQt5.QtWidgets import QDialog, QPushButton, QLabel 13 from PyQt5.QtWidgets import QDialog, QPushButton, QLabel
14 14
15 from .Ui_FeedsDialog import Ui_FeedsDialog 15 from .Ui_FeedsDialog import Ui_FeedsDialog
16 16
17 import UI.PixmapCache 17 import UI.PixmapCache
18 from UI.NotificationWidget import NotificationTypes
18 19
19 20
20 class FeedsDialog(QDialog, Ui_FeedsDialog): 21 class FeedsDialog(QDialog, Ui_FeedsDialog):
21 """ 22 """
22 Class implementing a dialog to add RSS feeds. 23 Class implementing a dialog to add RSS feeds.
84 else: 85 else:
85 WebBrowserWindow.showNotification( 86 WebBrowserWindow.showNotification(
86 UI.PixmapCache.getPixmap("rss48"), 87 UI.PixmapCache.getPixmap("rss48"),
87 self.tr("Add RSS Feed"), 88 self.tr("Add RSS Feed"),
88 self.tr("""The feed was already added before."""), 89 self.tr("""The feed was already added before."""),
90 kind=NotificationTypes.Warning,
89 timeout=0) 91 timeout=0)
90 92
91 self.close() 93 self.close()

eric ide

mercurial