def __init__(self, *args, **kwargs): self.val2index = kwargs.pop('val2index') RadioButtons.__init__(self, *args, **kwargs)