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

Method __init__

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

Source from the content-addressed store, hash-verified

109class SwitchWindow(gtk.Window):
110 UPDATE_INTERVAL = 500
111 def __init__(self):
112 gtk.Window.__init__(self)
113 self.set_default_size(410, 325)
114
115 self.create_ui()
116 self.player = SwitchTest(self.videowidget)
117 self.populate_combobox()
118
119 self.update_id = -1
120 self.changed_id = -1
121 self.seek_timeout_id = -1
122
123 self.p_position = gst.CLOCK_TIME_NONE
124 self.p_duration = gst.CLOCK_TIME_NONE
125
126 def on_delete_event():
127 self.player.stop()
128 gtk.main_quit()
129 self.connect('delete-event', lambda *x: on_delete_event())
130
131 def load_file(self, location):
132 self.player.set_location(location)

Callers

nothing calls this directly

Calls 4

create_uiMethod · 0.95
populate_comboboxMethod · 0.95
SwitchTestClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected