From 05d53ca7bdd2bb2f9a1301047578e5d676990662 Mon Sep 17 00:00:00 2001 From: Cayci Gorlitsky Date: Thu, 15 May 2014 21:07:04 -0400 Subject: [PATCH] Fixes #2140 print statement syntax Changed to ([ ]) so that number is printed, instead of a generator --- examples/widgets/compound_selection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/widgets/compound_selection.py b/examples/widgets/compound_selection.py index e9b619a85..7f571a9f2 100644 --- a/examples/widgets/compound_selection.py +++ b/examples/widgets/compound_selection.py @@ -14,7 +14,7 @@ class SelectableGrid(CompoundSelectionBehavior, GridLayout): on_key_up=self.select_with_key_up) def print_selection(*l): - print(x.text for x in self.selected_nodes) + print([x.text for x in self.selected_nodes]) self.bind(selected_nodes=print_selection) def goto_node(self, key, last_node, last_node_idx):