summaryrefslogtreecommitdiff
path: root/examples/allyesconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/allyesconfig.py')
-rw-r--r--examples/allyesconfig.py4
1 files changed, 2 insertions, 2 deletions
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")