src/eric7/Preferences/ConfigurationPages/NotificationsPage.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
12 from PyQt6.QtWidgets import QApplication, QColorDialog 12 from PyQt6.QtWidgets import QApplication, QColorDialog
13 13
14 from .ConfigurationPageBase import ConfigurationPageBase 14 from .ConfigurationPageBase import ConfigurationPageBase
15 from .Ui_NotificationsPage import Ui_NotificationsPage 15 from .Ui_NotificationsPage import Ui_NotificationsPage
16 16
17 import Preferences 17 from eric7 import Preferences
18 18
19 from UI.NotificationWidget import NotificationFrame, NotificationTypes 19 from eric7.UI.NotificationWidget import NotificationFrame, NotificationTypes
20 20
21 21
22 class NotificationsPage(ConfigurationPageBase, Ui_NotificationsPage): 22 class NotificationsPage(ConfigurationPageBase, Ui_NotificationsPage):
23 """ 23 """
24 Class implementing the Notifications configuration page. 24 Class implementing the Notifications configuration page.
100 Private slot to select the position visually. 100 Private slot to select the position visually.
101 101
102 @param checked state of the button (boolean) 102 @param checked state of the button (boolean)
103 """ 103 """
104 if checked: 104 if checked:
105 from UI.NotificationWidget import NotificationWidget 105 from eric7.UI.NotificationWidget import NotificationWidget
106 106
107 self.__notification = NotificationWidget(parent=self, setPosition=True) 107 self.__notification = NotificationWidget(parent=self, setPosition=True)
108 self.__notification.showNotification( 108 self.__notification.showNotification(
109 NotificationFrame.getIcon(NotificationTypes.OTHER), 109 NotificationFrame.getIcon(NotificationTypes.OTHER),
110 self.tr("Visual Selection"), 110 self.tr("Visual Selection"),

eric ide

mercurial