From 7d0704133136cfa2b10a5a0136f124dbe4557818 Mon Sep 17 00:00:00 2001 From: Julien Miotte Date: Tue, 20 Nov 2012 20:27:32 +0100 Subject: [PATCH] Fixing bind() example (wrong event signature) On_press only provides the emitting object. --- kivy/_event.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivy/_event.pyx b/kivy/_event.pyx index 71b94b042..2dd9d8e52 100644 --- a/kivy/_event.pyx +++ b/kivy/_event.pyx @@ -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