def _newProjectLoaded(self, project): if self.render_output: # create renderer and set output file self.actioner = Renderer(self.current, pipeline=None, outfile=self.output_file) elif self.preview: # create previewer and set ui self.actioner = Previewer(self.current, pipeline=None, ui=self.gui) # hack to make the gtk.HScale seek slider UI behave properly self.gui._durationChangedCb(None, project.timeline.duration) if self.actioner: self.actioner.connect("eos", self._eosCb) # on error, all we need to do is shutdown which is the same as we do for EOS self.actioner.connect("error", self._eosCb) # configure the actioner and start acting! self.actioner.startAction()
def _newProjectLoaded(self, project): # create previewer and set ui previewer = Previewer(project, ui=self.viewer) self._setActioner(previewer) # hack to make the gtk.HScale seek slider UI behave properly self.viewer._durationChangedCb(None, project.timeline.duration)