From 0befc4be60b1edc26ebeb1b7833933055c388204 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 6 May 2019 12:55:09 +0200 Subject: guiconfig: Micro-optimize tree item creation some more Mostly to get things consistent with _update_jump_to_display(). --- guiconfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guiconfig.py') diff --git a/guiconfig.py b/guiconfig.py index 886025d..8520ec0 100755 --- a/guiconfig.py +++ b/guiconfig.py @@ -566,9 +566,11 @@ def _create_kconfig_tree(parent): # Micro-optimize this a bit. insert = tree.insert id_ = id + Symbol_ = Symbol for node in _kconf.node_iter(): + item = node.item insert("", "end", iid=id_(node), - values=node.item.name if node.item.__class__ is Symbol else ()) + values=item.name if item.__class__ is Symbol_ else "") return frame, tree -- cgit v1.2.3