Fixing bind() example (wrong event signature)

On_press only provides the emitting object.
This commit is contained in:
Julien Miotte 2012-11-20 20:27:32 +01:00
parent e71dcabc1b
commit 7d07041331
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ cdef class EventDispatcher(object):
btn.bind(on_press=self.my_callback)
self.add_widget(btn)
def my_callback(self,obj,value):
print 'press on button', obj, 'with date:', value
def my_callback(self, obj):
print 'press on button', obj
'''
cdef Property prop