python - How can I get ref text when I have many refs in kivy label? -
Please help my labels have many referees and when the user clicks on the first ref, How can i get I need python method which can get this referee text. [Ref = sec referee] Second referee [/ ref] [/ ref] "on_ref_press: # here I need to refract
All the logic given to the event handler are available in the KV in the args variable, there are logic for the
on_ref_press handler
example, refvalue Therefore, for example:
label: markup: true text: "[ref = first ref] first ref (referee), [ref = second ref) second ref [/ Ref] "on_ref_press: print Due to the print of the rugs [1]
first ref , the "first ref" text will be clicked on, and
the second ref printed When the "second ref" text is clicked.
Comments
Post a Comment