Skip to content

Instantly share code, notes, and snippets.

@cfobel
Created March 9, 2016 20:05
Show Gist options
  • Select an option

  • Save cfobel/9cff9320c4af06ec0657 to your computer and use it in GitHub Desktop.

Select an option

Save cfobel/9cff9320c4af06ec0657 to your computer and use it in GitHub Desktop.
Demo usage of pygst_utils.video_view.mode.VideoModeSelector
import gtk
from pygst_utils.video_view.mode import VideoModeSelector
# Run with `ipython -i video_mode_selector_demo.py`
selector = VideoModeSelector()
selector.show_and_run()
# Press <ctrl>+c to drop back to IPython prompt.
checkbox = gtk.CheckButton()
selector.widget.add(checkbox)
selector.widget.show_all()
def callback(*args):
print 'hello, world! %s' % (args, )
checkbox.connect('toggled', callback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment