fix on_ref_press reference

This commit is contained in:
tshirtman 2012-10-04 17:10:42 +02:00
parent ea16bd5898
commit fcccb16aff
1 changed files with 1 additions and 1 deletions

View File

@ -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::