76 from UI.NotificationWidget import NotificationWidget |
76 from UI.NotificationWidget import NotificationWidget |
77 self.__notification = NotificationWidget( |
77 self.__notification = NotificationWidget( |
78 parent=self, setPosition=True) |
78 parent=self, setPosition=True) |
79 self.__notification.setPixmap( |
79 self.__notification.setPixmap( |
80 UI.PixmapCache.getPixmap("notification48.png")) |
80 UI.PixmapCache.getPixmap("notification48.png")) |
81 self.__notification.setHeading(self.trUtf8("Visual Selection")) |
81 self.__notification.setHeading(self.tr("Visual Selection")) |
82 self.__notification.setText( |
82 self.__notification.setText( |
83 self.trUtf8("Drag the notification window to" |
83 self.tr("Drag the notification window to" |
84 " the desired place and release the button.")) |
84 " the desired place and release the button.")) |
85 self.__notification.move( |
85 self.__notification.move( |
86 QPoint(self.xSpinBox.value(), self.ySpinBox.value())) |
86 QPoint(self.xSpinBox.value(), self.ySpinBox.value())) |
87 self.__notification.show() |
87 self.__notification.show() |
88 else: |
88 else: |
89 # retrieve the position |
89 # retrieve the position |