Created
March 9, 2016 20:05
-
-
Save cfobel/9cff9320c4af06ec0657 to your computer and use it in GitHub Desktop.
Demo usage of pygst_utils.video_view.mode.VideoModeSelector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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