Lines Matching refs:choice
55 choice if isinstance(choice, Separator) else {
56 'name': choice,
58 } for choice in arg.arg_attribute.get("optional")
331 for index, choice in enumerate(choices):
332 if isinstance(choice, Separator):
333 self.choices.append((choice, None, None))
336 if isinstance(choice, base_string):
337 self.choices.append((choice, choice, None))
339 name = choice.get('name')
340 value = choice.get('value', name)
341 disabled = choice.get('disabled', None)
351 def append(index: int, choice: list):
364 if choice[2]: # disabled
366 '- %s (%s)' % (choice[0], choice[2])))
368 if isinstance(choice[0], Separator):
370 str(choice[0]),
375 str(choice[0]), select_item))
378 token, choice[0], select_item))
382 for i, choice in enumerate(self.choices):
383 append(i, choice)