mirror of https://github.com/kivy/kivy.git
Fixes #2140 print statement syntax
Changed to ([ ]) so that number is printed, instead of a generator
This commit is contained in:
parent
03af30e1ed
commit
05d53ca7bd
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue