Exemple #1
0
 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)
Exemple #2
0
    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())
Exemple #3
0
 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)
Exemple #4
0
    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())
Exemple #5
0
    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())
Exemple #6
0
 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)
Exemple #7
0
 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)
Exemple #8
0
 def do_leave_notify_event(self, event):
     """
         Forwards the event to the rating widget
     """
     self.rating_widget.emit('leave-notify-event', event.copy())
Exemple #9
0
 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)
Exemple #10
0
 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)
Exemple #11
0
 def do_leave_notify_event(self, event):
     """
         Forwards the event to the rating widget
     """
     self.rating_widget.emit("leave-notify-event", event.copy())