From 463cebd7f8bf26673732bf5afcd113ee5e2268b7 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 25 Oct 2017 13:35:31 +0200 Subject: Backup --- examples/allyesconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/allyesconfig.py') diff --git a/examples/allyesconfig.py b/examples/allyesconfig.py index 4847c05..32b302c 100644 --- a/examples/allyesconfig.py +++ b/examples/allyesconfig.py @@ -27,7 +27,7 @@ conf = Config(sys.argv[1]) # tree can be walked iteratively by using the parent pointers. choices = [] -node = conf.top_menu +node = conf.top_node while 1: if isinstance(node.item, Choice): @@ -85,7 +85,7 @@ while 1: # Does the choice have a default selection that we haven't already # selected? if selection is not None and \ - selection is not choice.user_value: + selection is not choice.user_selection: # Yup, select it selection.set_value("y") -- cgit v1.2.3