Preferences/ConfigurationPages/NotificationsPage.py

changeset 2408
dc3a7c9d8f6e
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2964
84b65fb9e780
equal deleted inserted replaced
2407:b98cc8ee1142 2408:dc3a7c9d8f6e
10 from PyQt4.QtCore import pyqtSlot, QPoint 10 from PyQt4.QtCore import pyqtSlot, QPoint
11 from PyQt4.QtGui import QApplication 11 from PyQt4.QtGui import QApplication
12 12
13 from .ConfigurationPageBase import ConfigurationPageBase 13 from .ConfigurationPageBase import ConfigurationPageBase
14 from .Ui_NotificationsPage import Ui_NotificationsPage 14 from .Ui_NotificationsPage import Ui_NotificationsPage
15
16 from UI.NotificationWidget import NotificationWidget
17 15
18 import Preferences 16 import Preferences
19 import UI.PixmapCache 17 import UI.PixmapCache
20 18
21 19
71 Private slot to select the position visually. 69 Private slot to select the position visually.
72 70
73 @param checked state of the button (boolean) 71 @param checked state of the button (boolean)
74 """ 72 """
75 if checked: 73 if checked:
74 from UI.NotificationWidget import NotificationWidget
76 self.__notification = NotificationWidget(parent=self, setPosition=True) 75 self.__notification = NotificationWidget(parent=self, setPosition=True)
77 self.__notification.setPixmap(UI.PixmapCache.getPixmap("notification48.png")) 76 self.__notification.setPixmap(UI.PixmapCache.getPixmap("notification48.png"))
78 self.__notification.setHeading(self.trUtf8("Visual Selection")) 77 self.__notification.setHeading(self.trUtf8("Visual Selection"))
79 self.__notification.setText(self.trUtf8("Drag the notification window to" 78 self.__notification.setText(self.trUtf8("Drag the notification window to"
80 " the desired place and release the button.")) 79 " the desired place and release the button."))

eric ide

mercurial