def mouse_release_action(self, mouse_pos):
        """Invoke colliding button, if any.

        Parameters
        ==========
        mouse_pos (2-tuple of integers)
            represents mouse position on x and y axes,
            respectively.
        """
        ### check if click was meant to invoke a button

        for button in self.buttons:

            if button.rect.collidepoint(mouse_pos):

                button.invoke()
                break
Invoke colliding button, if any.

        Parameters
        ==========
        mouse_pos (2-tuple of integers)
            represents mouse position on x and y axes,
            respectively.
        
nodezator/textman/editor/main.py