Member-only story
How I Use Python’s Tkinter to Run Algorithms
If you’re running several python scripts for your ETL tasks or algorithms — Tkinter is a python library that can support building GUIs.
Why use Tkinter Library
There are tasks that we have to do on a daily or weekly basis that involve running multiple python scripts which on most cases, take so much of our time. It’s important to always find ways to maximize productivity and work efficiently through automating some of our own day to day processes.
Having a GUI makes daily work more efficient through an interface that allows you to run scripts with a click of a button. It can be transformed into an executable file which makes running python scripts smoother for yourself or team members that are not so tech savvy but would like to run scripts themselves.
In this article, I will share how I design a simple GUI to run a python script algorithm. I created a simple GUI code for the purpose of this write up.
Example GUI project Overview: The Allocation Algorithm GUI below is a UI where you can read and write a table to and from an Oracle database . The Allocate button has an algorithm at the backend that performs calculations on how many products should be allocated to…