A Icon With Python Program

An Icon that executes Python program on click

Swathi Ganesh
2 min readSep 28, 2021

This article let us learn how to change a Python program into an Icon. This Icon should execute the Python program when clicked. In this article, let us consider a simple program to represent the goal that has been achieved with a pie chart.

Gif by Author

Step 1: Now, let us first create a sample program that will ask you for the goal you have achieved.

In this program, we have considered an example to reach a goal of 10000 points. And an input console to ask you how many points have been achieved. Then a pie chart will be produced using the matplotlib library.

Create this or any other python program and save the Python program. Your program can take input like in the example or skip it.

Step 2: You need an image for the Icon.

  • You can any of your images or create one with paint…

--

--

Swathi Ganesh
Swathi Ganesh

Written by Swathi Ganesh

2x Top Writer || Power BI || Python || Art || Travel || Engineer || Writer|| Become a Medium Member by Clicking here: https://swathiarun63.medium.com/membership

No responses yet