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

Method scale_button_press_cb

old_examples/synchronizer.py:743–760  ·  view source on GitHub ↗
(self, widget, event)

Source from the content-addressed store, hash-verified

741 return "%02d:%02d" % (seconds / 60, seconds % 60)
742
743 def scale_button_press_cb(self, widget, event):
744 # see seek.c:start_seek
745 gst.debug('starting seek')
746
747 self.button.set_sensitive(False)
748 self.was_playing = self.player.is_playing()
749 if self.was_playing:
750 self.player.pause()
751
752 # don't timeout-update position during seek
753 if self.update_id != -1:
754 gobject.source_remove(self.update_id)
755 self.update_id = -1
756
757 # make sure we get changed notifies
758 if self.changed_id == -1:
759 self.changed_id = self.hscale.connect('value-changed',
760 self.scale_value_changed_cb)
761
762 def scale_value_changed_cb(self, scale):
763 # 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