Skip to content

Commit

Permalink
Fix syntax error in _local_func()
Browse files Browse the repository at this point in the history
Fix a syntax error in the `_local_func()` function.
  • Loading branch information
cpburnz committed May 15, 2016
1 parent b5afc86 commit cc10bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/sources/guide/events.rst
Expand Up @@ -367,7 +367,7 @@ function is defined. You can use an in-line function as follows:
cb = CustomBtn()
def _local_func(instance, pos):
print ('pos: printed from root widget: {pos}'.format(pos=.pos))
print ('pos: printed from root widget: {pos}'.format(pos=pos))
cb.bind(pressed=_local_func)
self.add_widget(cb)
Expand Down

0 comments on commit cc10bde

Please sign in to comment.