(self, parent, start, stop, fromname, toname)
| 285 | |
| 286 | class RemuxProgressDialog(ProgressDialog): |
| 287 | def __init__(self, parent, start, stop, fromname, toname): |
| 288 | ProgressDialog.__init__(self, |
| 289 | "Writing to disk", |
| 290 | ('Writing the selected segment of <b>%s</b> ' |
| 291 | 'to <b>%s</b>. This may take some time.' |
| 292 | % (fromname, toname)), |
| 293 | 'Starting media pipeline', |
| 294 | parent, |
| 295 | gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, |
| 296 | (gtk.STOCK_CANCEL, CANCELLED, |
| 297 | gtk.STOCK_CLOSE, SUCCESS)) |
| 298 | self.start = start |
| 299 | self.stop = stop |
| 300 | self.update_position(start) |
| 301 | self.set_completed(False) |
| 302 | |
| 303 | def update_position(self, pos): |
| 304 | pos = min(max(pos, self.start), self.stop) |
nothing calls this directly
no test coverage detected