diff --git a/kivy/uix/label.py b/kivy/uix/label.py index 90ca51954..64c2aac52 100644 --- a/kivy/uix/label.py +++ b/kivy/uix/label.py @@ -84,7 +84,7 @@ reference:: def print_it(instance, value): print 'User clicked on', value widget = Label(text='Hello [ref=world]World[/ref]', markup=True) - widget.on_ref_press(print_it) + widget.bind(on_ref_press=print_it) For a better rendering, you could add a color for the reference. Replace the ``text=`` in the previous example with::