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