def setOptions(self, command): """Add relevant todisc options to the given Command.""" for option, widget in self.widgets.items(): value = widget.get() if value == True: command.add('-%s' % option) elif value: command.add('-%s' % option, value)