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

Method __init__

old_examples/remuxer.py:287–301  ·  view source on GitHub ↗
(self, parent, start, stop, fromname, toname)

Source from the content-addressed store, hash-verified

285
286class RemuxProgressDialog(ProgressDialog):
287 def __init__(self, parent, start, stop, fromname, toname):
288 ProgressDialog.__init__(self,
289 "Writing to disk",
290 ('Writing the selected segment of <b>%s</b> '
291 'to <b>%s</b>. This may take some time.'
292 % (fromname, toname)),
293 'Starting media pipeline',
294 parent,
295 gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
296 (gtk.STOCK_CANCEL, CANCELLED,
297 gtk.STOCK_CLOSE, SUCCESS))
298 self.start = start
299 self.stop = stop
300 self.update_position(start)
301 self.set_completed(False)
302
303 def update_position(self, pos):
304 pos = min(max(pos, self.start), self.stop)

Callers

nothing calls this directly

Calls 3

update_positionMethod · 0.95
set_completedMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected