(self)
| 195 | lambda *x: self.play_toggled()) |
| 196 | |
| 197 | def play_toggled(self): |
| 198 | self.button.remove(self.button.child) |
| 199 | if self.player.is_playing(): |
| 200 | self.player.pause() |
| 201 | self.button.add(self.play_image) |
| 202 | else: |
| 203 | self.player.play() |
| 204 | if self.update_id == -1: |
| 205 | self.update_id = gobject.timeout_add(self.UPDATE_INTERVAL, |
| 206 | self.update_scale_cb) |
| 207 | self.button.add(self.pause_image) |
| 208 | |
| 209 | def scale_format_value_cb(self, scale, value): |
| 210 | if self.p_duration == -1: |