Lines Matching refs:Choice
257 menu or Choice, but menu nodes for symbols can sometimes have a non-None 'list'
260 MenuNode.item is either a Symbol or a Choice object, or one of the constants
262 which also holds the title for menus and comments. For Symbol and Choice,
267 a Symbol or Choice can be found in the Symbol/Choice.nodes attribute.
270 menu node(s) rather than in the Symbol or Choice objects themselves. This makes
280 It is possible to give a Choice a name and define it in multiple locations,
281 hence why Choice.nodes is also a list.
322 ***For choice symbols, the parent Choice will appear in expressions as well,
323 but it's usually invisible as the value interfaces of Symbol and Choice are
2900 # The parent menu node, corresponding to a menu, Choice, or 'if'.
2908 # Choice): After parsing the children, the 'next' pointer is assigned
3053 choice = Choice()
3060 choice = Choice()
3267 if node.item.__class__ is not Choice:
3467 # Populates the Symbol/Choice._dependents sets, which contain all other
3511 # they're in, but that's handled automatically since the Choice is
3628 if node.item.__class__ is Choice:
3640 # If the parent node holds a Choice, we use the Choice itself as the
3645 # Due to the similar interface, Choice works as a drop-in replacement
3647 basedep = node.item if node.item.__class__ is Choice else node.dep
4126 Holds the parent Choice for choice symbols, and None for non-choice
4568 Setting a choice symbol to 2 (y) sets Choice.user_selection to the
4570 Choice.user_selection is considered when the choice is in y mode (the
4992 class Choice(object):
5000 The following attributes are available on Choice instances. They should be
5004 Note: Prompts, help texts, and locations are stored in the Choice's
5005 MenuNode(s) rather than in the Choice itself. Check the MenuNode class and
5006 the Choice.nodes attribute. This organization matches the C tools.
5010 Choice has no name.
5043 To change the mode, use Choice.set_value().
5058 Kconfiglib uses a separate Choice class only because it makes the code
5060 Corresponding attributes have the same name in the Symbol and Choice
5068 The value (mode) selected by the user through Choice.set_value(). Either
5073 Choice.set_value() instead.
5079 The Symbol instance of the currently selected symbol. None if the Choice
5254 Choice.assignable attribute to see what values are currently in range
5287 Resets the user value (mode) and user selection of the Choice, as if
5363 Works like Choice.__str__(), but allows a custom format to be used for
5375 Choice constructor -- not intended to be called directly by Kconfiglib
5479 The menu nodes for a Symbol or Choice can be found in the
5480 Symbol/Choice.nodes attribute. Menus and comments are represented as plain
5488 Either a Symbol, a Choice, or one of the constants MENU and COMMENT.
5511 the Symbol or Choice instance. For menus and comments, the prompt holds
5518 When evaluating defaults, you should use Symbol/Choice.defaults instead,
5546 no help text. Always stored in the node rather than the Symbol or Choice.
5728 elif self.item.__class__ is Choice:
5861 if sc.__class__ is Choice and sc.is_optional:
5993 'expr' must be an already-parsed expression from a Symbol, Choice, or
6290 # Symbol or Choice 'sc' -- the logic is nearly identical.
6305 # Choice symbols with m visibility are not visible in y mode
6425 # Symbol/Choice.name_and_loc helper. Returns the "(defined at ...)" part of
6426 # the string. 'sc' is a Symbol or Choice.
6489 node.item.__class__ is not Choice:
6605 if dep.__class__ is Choice \
6691 # Symbol/Choice._dependents sets for recursive dependency detection, we
7087 Choice,