(self)
| 135 | self.player.play() |
| 136 | |
| 137 | def populate_combobox(self): |
| 138 | switch = self.player.pipeline.get_by_name('s') |
| 139 | for i, pad in enumerate([p for p in switch.pads() |
| 140 | if p.get_direction() == gst.PAD_SINK]): |
| 141 | self.combobox.append_text(pad.get_name()) |
| 142 | if switch.get_property('active-pad') == pad.get_name(): |
| 143 | self.combobox.set_active(i) |
| 144 | if self.combobox.get_active() == -1: |
| 145 | self.combobox.set_active(0) |
| 146 | |
| 147 | def combobox_changed(self): |
| 148 | model = self.combobox.get_model() |