All pastes #389493 Raw Edit

Unnamed

public python v1 · immutable
·published 2007-03-10 19:24 UTC
rendered paste body
  def setOptions(self, command):        """Add relevant todisc options to the given Command."""        chained = []        for index, item in enumerate(self.varMappedList.get()):            if item: chained.append(index)            else: chained.append('')        for index, item in enumerate(self.varMappedList.get()):            if not item:                if chained[index-1]:                    chained.pop(index-1)            elif index == len(self.varMappedList.get())-1:                chained.pop(index)         command.add('-chain-videos', *chained)