How To Call A Python Function While Clicking A Button Event App

How To Call A Python Function While Clicking A Button Event App