Here is my a simple code, which uses Python socket and threading. Here the thread cannot able to run a function of adding widget List dynamically.
Note: The thread is