(self)
| 109 | class 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) |
nothing calls this directly
no test coverage detected