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

Method do_get_touri

old_examples/synchronizer.py:382–402  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

380 self.resyncbin.link(self.sink)
381
382 def do_get_touri(self):
383 chooser = gtk.FileChooserDialog('Save as...',
384 self.window,
385 action=gtk.FILE_CHOOSER_ACTION_SAVE,
386 buttons=(gtk.STOCK_CANCEL,
387 CANCELLED,
388 gtk.STOCK_SAVE,
389 SUCCESS))
390 chooser.set_uri(self.fromuri) # to select the folder
391 chooser.unselect_all()
392 chooser.set_do_overwrite_confirmation(True)
393 name = self.fromuri.split('/')[-1][:-4] + '-remuxed.ogg'
394 chooser.set_current_name(name)
395 resp = chooser.run()
396 uri = chooser.get_uri()
397 chooser.destroy()
398
399 if resp == SUCCESS:
400 return uri
401 else:
402 return None
403
404 def _start_queries(self):
405 def do_query():

Callers 1

startMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected