Need help in a python tkinter socket program

Job ID: 31721261

Budget: $10 – $30 USD

I am creating a python program to send numbers(integers and/or strings) to different ips (arduino app-esp8266), the problem is that I only receive the numbers/strings in the serial monitor(arduino) when I close my python program.

I am using python sockets and tkinter for the GUI.

Summary:

-I want Object Oriented Programming code in python with sockets.

-I do not know how to properly open and keep the socket alive when I send many numbers/strings, because I am going to use at max 6 ips, one for each label and send button.

-Detailed comments for the code.

-Python 3.x.

-I need at max in 3 days.

I use pycharm, I attach my code for python GUI and socket and an image of what I want to look like.