From fcccb16affe3953718b2fb47c829de1037973347 Mon Sep 17 00:00:00 2001 From: tshirtman Date: Thu, 4 Oct 2012 17:10:42 +0200 Subject: [PATCH] fix on_ref_press reference --- kivy/uix/label.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::