예제 #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)
예제 #2
0
파일: rating.py 프로젝트: Zarokka/exaile
    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())
예제 #3
0
파일: controls.py 프로젝트: che2/exaile
 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)
예제 #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())
예제 #5
0
파일: rating.py 프로젝트: dangmai/exaile
    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())
예제 #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)
예제 #7
0
파일: controls.py 프로젝트: che2/exaile
 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)
예제 #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())
예제 #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)
예제 #10
0
파일: controls.py 프로젝트: exaile/exaile
 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)
예제 #11
0
파일: rating.py 프로젝트: Zarokka/exaile
 def do_leave_notify_event(self, event):
     """
         Forwards the event to the rating widget
     """
     self.rating_widget.emit("leave-notify-event", event.copy())