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

Method create_ui

old_examples/switch.py:153–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 self.player.switch(padname)
152
153 def create_ui(self):
154 vbox = gtk.VBox()
155 self.add(vbox)
156
157 self.videowidget = VideoWidget()
158 vbox.pack_start(self.videowidget)
159
160 hbox = gtk.HBox()
161 vbox.pack_start(hbox, fill=False, expand=False)
162
163 self.combobox = combobox = gtk.combo_box_new_text()
164 combobox.show()
165 hbox.pack_start(combobox)
166
167 self.combobox.connect('changed',
168 lambda *x: self.combobox_changed())
169
170 self.videowidget.connect_after('realize',
171 lambda *x: self.play())
172
173def main(args):
174 def usage():

Callers 1

__init__Method · 0.95

Calls 4

combobox_changedMethod · 0.95
playMethod · 0.95
addMethod · 0.80
VideoWidgetClass · 0.70

Tested by

no test coverage detected