Lines Matching refs:node

284     _id_to_node = {str(id(node)): node for node in _kconf.node_iter()}
580 for node in _kconf.node_iter():
581 item = node.item
582 insert("", "end", iid=id_(node),
685 for node in _shown_full_nodes(menu):
686 _add_to_tree(node, _kconf.top_node)
690 if node.list and not isinstance(node.item, Symbol):
691 if _tree.item(id(node), "open"):
692 _build_full_tree(node)
696 shown = _shown_menu_nodes(node)
707 def rec(node): argument
710 while node:
711 if _visible(node) or _show_all:
712 res.append(node)
713 if node.list and isinstance(node.item, Symbol):
715 res += rec(node.list)
717 elif node.list and isinstance(node.item, Symbol):
722 shown_children = rec(node.list)
724 res.append(node)
727 node = node.next
737 for node in _shown_menu_nodes(_cur_menu):
738 _add_to_tree(node, _cur_menu)
745 def rec(node): argument
748 while node:
749 if _visible(node) or _show_all:
750 res.append(node)
751 if node.list and not node.is_menuconfig:
752 res += rec(node.list)
754 elif node.list and isinstance(node.item, Symbol):
755 shown_children = rec(node.list)
758 res.append(node)
759 if not node.is_menuconfig:
762 node = node.next
769 def _visible(node): argument
773 return node.prompt and expr_value(node.prompt[1]) and not \
774 (node.item == MENU and not expr_value(node.visibility))
777 def _add_to_tree(node, top): argument
782 parent = node.parent
783 _tree.move(id(node), "" if parent is top else id(parent), "end")
785 id(node),
786 text=_node_str(node),
791 tags=_img_tag(node) if _visible(node) or not _show_all else
792 _img_tag(node) + " invisible")
795 def _node_str(node): argument
798 if node.prompt:
799 if node.item == COMMENT:
800 s = "*** {} ***".format(node.prompt[0])
802 s = node.prompt[0]
804 if isinstance(node.item, Symbol):
805 sym = node.item
815 elif isinstance(node.item, Symbol):
817 s = "<{}>".format(node.item.name)
822 s = standard_sc_expr_str(node.item)
825 if isinstance(node.item, Symbol):
826 sym = node.item
832 elif isinstance(node.item, Choice) and node.item.tri_value == 2:
835 sym = node.item.selection
840 if sym_node.parent is node and sym_node.prompt:
854 if _single_menu and node.is_menuconfig:
855 s += " --->" if _shown_menu_nodes(node) else " ----"
860 def _img_tag(node): argument
864 item = node.item
935 node = _id_to_node[sel]
939 elif _single_menu_mode_menu(node, tree):
940 _enter_menu_and_select_first(node)
942 _change_node(node, tree.winfo_toplevel())
954 node = _id_to_node[sel]
956 if _changeable(node):
957 _change_node(node, tree.winfo_toplevel())
958 elif _single_menu_mode_menu(node, tree):
959 _enter_menu_and_select_first(node)
982 node = _id_to_node[sel]
984 if _single_menu_mode_menu(node, _tree):
985 _enter_menu_and_select_first(node)
991 def _single_menu_mode_menu(node, tree): argument
995 return _single_menu and tree is _tree and node.is_menuconfig and \
996 _shown_menu_nodes(node)
999 def _changeable(node): argument
1002 sc = node.item
1010 if not (node.prompt and expr_value(node.prompt[1])):
1023 node = _id_to_node[item]
1024 if not isinstance(node.item, Symbol):
1026 _build_full_tree(node)
1056 node = _id_to_node[_tree.focus()]
1059 if not isinstance(node.item, Symbol):
1060 _build_full_tree(node)
1113 def _change_node(node, parent): argument
1118 if not _changeable(node):
1122 sc = node.item
1125 s = _set_val_dialog(node, parent)
1179 def _set_val_dialog(node, parent): argument
1200 sym = node.item
1208 ttk.Label(dialog, text=node.prompt[0] + ":") \
1772 node = _id_to_node[sel[0]]
1774 if node not in _shown_menu_nodes(_parent_menu(node)):
1780 _jump_to(node)
1881 for node in _sorted_sc_nodes():
1883 sc = node.item
1892 node.prompt and search(node.prompt[0].lower())):
1900 add_match(node)
1904 for node in _sorted_menu_comment_nodes():
1906 if not search(node.prompt[0].lower()):
1909 add_match(node)
1931 for node in _jump_to_matches:
1932 item(id_(node),
1933 text=node_str(node),
1934 tags=img_tag(node) if visible(node) else
1935 img_tag(node) + " invisible")
1940 def _jump_to(node): argument
1944 _enter_menu(_parent_menu(node))
1946 _load_parents(node)
1948 _select(_tree, id(node))
1971 [node for choice in choices for node in choice.nodes],
1972 key=lambda node: node.prompt[0] if node.prompt else "")
1991 def _load_parents(node): argument
1998 cur = node.parent
2016 def _parent_menu(node): argument
2021 menu = node.parent
2038 def _info_str(node): argument
2044 if isinstance(node.item, Symbol):
2045 sym = node.item
2056 if isinstance(node.item, Choice):
2057 choice = node.item
2070 return _kconfig_def_info(node)
2112 for node in sc.nodes:
2113 if node.help is not None:
2114 s += node.help + "\n\n"
2247 for node in nodes:
2253 .format(node.filename, node.linenr,
2254 _include_path_info(node),
2255 _menu_path_info(node),
2256 node.custom_str(_name_and_val_str))
2261 def _include_path_info(node): argument
2262 if not node.include_path:
2268 for filename, linenr in node.include_path))
2271 def _menu_path_info(node): argument
2276 while node.parent is not _kconf.top_node:
2277 node = node.parent
2282 path = " -> " + (node.prompt[0] if node.prompt else
2283 standard_sc_expr_str(node.item)) + path