def open(self, slideshow, prepared = False): """Open a slideshow for editing Arguments slideshow -- the slideshow prepared -- if true, all media data is already copied to the working folder (i.e. the slideshow has been created automatically) """ EditTab.open(self, slideshow, prepared = prepared) if(not prepared): if(slideshow.bgsound != ''): shutil.copyfile(slideshow.getPath(slideshow.bgsound), os.path.join(self._wdir, slideshow.bgsound)) self._svBgSound.set(slideshow.bgsound) if(slideshow.bgsound != ''): self._btnListen.setSound(os.path.join(self._wdir, slideshow.bgsound)) self._btnRemove.config(state = NORMAL) for frame in slideshow.frames: ea = self.scrollbox.getWidget(EditArea, self._wdir, self._tooltipwidth, self._ehPlayThisFrame, self._ehPlayFromHere) ea.setFrame(frame, not prepared) self.setDirty(prepared) self.editing = True
def open(self, slideshow, prepared=False): """Open a slideshow for editing Arguments slideshow -- the slideshow prepared -- if true, all media data is already copied to the working folder (i.e. the slideshow has been created automatically) """ EditTab.open(self, slideshow, prepared=False) if not prepared: if slideshow.video != "": shutil.copyfile(slideshow.getPath(slideshow.video), os.path.join(self._wdir, slideshow.video)) self._svVideo.set(slideshow.video)