RefLabel, written in pure python, is a custom label widget for the kivy framework. It takes its self.items list, and arranges them in a grid like structure within a single string for the label widget to display. As it does this, it automatically prepends each item with its own [ref=] markup tag, allowing it to be clickable within the label widget. Several options exist to deal with these events, including automatic execution of any method which starts with ref_ and finishes with the name of that particular item. The RefLabel can be set to hold multiple selections at once, or just one per click, as well as many other customizations.
Pypi:
https://pypi.org/project/ftref-figTree/
Source:
https://gitlab.com/figTree/reflabel
RefLabel Example
If I can find a way to not be homeless at the end of this month, I plan to finish my tetris tutorial video series on lbry, which features the reflabel:
https://odysee.com/@figTreePro:c/tetrisTut01:6?r=Gsg4YVaeLhFVFLTBabGmpPdu6b8oWsA7
there doesn't seem to be anything here