def do_button_release_event(self, event): if event.button == 1: PlaylistButtonControl.do_button_release_event(self, event) elif event.button == 2: event = event.copy() event.button = 1 x, y = self.translate_coordinates(self.progressbar, int(event.x), int(event.y)) event.x, event.y = float(x), float(y) self.progressbar.emit('button-release-event', event)
def do_button_release_event(self, event): """ Forwards the event to the rating widget """ allocation = self.rating_widget.get_allocation() if allocation.x < event.x < allocation.x + allocation.width: x, y = self.translate_coordinates(self.rating_widget, int(event.x), int(event.y)) event.x, event.y = float(x), float(y) self.rating_widget.emit("button-release-event", event.copy())
def do_button_release_event(self, event): """ Forwards the event to the rating widget """ allocation = self.rating_widget.get_allocation() if allocation.x < event.x < allocation.x + allocation.width: x, y = self.translate_coordinates(self.rating_widget, int(event.x), int(event.y)) event.x, event.y = float(x), float(y) self.rating_widget.emit('button-release-event', event.copy())
def do_motion_notify_event(self, event): """ Forwards the event to the rating widget """ allocation = self.rating_widget.get_allocation() if allocation.x < event.x < allocation.x + allocation.width: x, y = self.translate_coordinates(self.rating_widget, int(event.x), int(event.y)) event.x, event.y = float(x), float(y) self.rating_widget.emit('motion-notify-event', event.copy())
def do_button_press_event(self, event): """ Trigger normal toggle action or seek """ if event.button == 1: PlaylistButtonControl.do_button_press_event(self, event) elif event.button == 2: event = event.copy() event.button = 1 x, y = self.translate_coordinates(self.progressbar, int(event.x), int(event.y)) event.x, event.y = float(x), float(y) self.progressbar.emit('button-press-event', event)
def do_leave_notify_event(self, event): """ Forwards the event to the rating widget """ self.rating_widget.emit('leave-notify-event', event.copy())
def do_leave_notify_event(self, event): event = event.copy() x, y = self.translate_coordinates(self.progressbar, int(event.x), int(event.y)) event.x, event.y = float(x), float(y) self.progressbar.emit('leave-notify-event', event)
def do_leave_notify_event(self, event): """ Forwards the event to the rating widget """ self.rating_widget.emit("leave-notify-event", event.copy())