Is there an inbuilt function in Python(preferably in Pyside or PyQt) that would allow me to call the function that the OS calls(or similar) when dragging the cursor over text, selecting it with shift+direction key or pressing ctr+A.
And could I tell this function to trigger when clicking on text and select for example everything with a certain html tag around it. Or something like that.
I hope this question makes sense!