MCPcopy Create free account
hub / github.com/GStreamer/gst-python / scale_button_press_cb

Method scale_button_press_cb

old_examples/remuxer.py:761–778  ·  view source on GitHub ↗
(self, widget, event)

Source from the content-addressed store, hash-verified

759 return "%02d:%02d" % (seconds / 60, seconds % 60)
760
761 def scale_button_press_cb(self, widget, event):
762 # see seek.c:start_seek
763 gst.debug('starting seek')
764
765 self.button.set_sensitive(False)
766 self.was_playing = self.player.is_playing()
767 if self.was_playing:
768 self.player.pause()
769
770 # don't timeout-update position during seek
771 if self.update_id != -1:
772 gobject.source_remove(self.update_id)
773 self.update_id = -1
774
775 # make sure we get changed notifies
776 if self.changed_id == -1:
777 self.changed_id = self.hscale.connect('value-changed',
778 self.scale_value_changed_cb)
779
780 def scale_value_changed_cb(self, scale):
781 # see seek.c:seek_cb

Callers

nothing calls this directly

Calls 2

is_playingMethod · 0.45
pauseMethod · 0.45

Tested by

no test coverage detected