(self)
| 197 | self.pack_start(pad, True, False, 0) |
| 198 | |
| 199 | def get_time(self): |
| 200 | time = 0 |
| 201 | for w, multiplier in ((self.minutes, gst.SECOND*60), |
| 202 | (self.seconds, gst.SECOND), |
| 203 | (self.milliseconds, gst.MSECOND)): |
| 204 | text = w.get_text() |
| 205 | try: |
| 206 | val = int(text) |
| 207 | except ValueError: |
| 208 | val = 0 |
| 209 | w.set_text(val and str(val) or '0') |
| 210 | time += val * multiplier |
| 211 | return time |
| 212 | |
| 213 | def set_time(self, time): |
| 214 | if time == gst.CLOCK_TIME_NONE: |
no outgoing calls
no test coverage detected