Install pip install pythonnet Creating GUI Modify in WinFormsLibrary project file Form1.cs using Visual Studio Designer. Choose events. Write event handler in python project, python.py file.