Have a look at lp:unity-notifications in the examples directory. There is a Python-example (interactive-notification.py), demonstrating how to setup such a "clickable notification".
Have a look at lp:unity-notifications in the examples directory. There is a Python-example (interactive- notification. py), demonstrating how to setup such a "clickable notification".