'run multiple python files with the same socket
I'm trying to make an online "MS paint" with sockets. i proggramed 2 files, one for the app menu and log in and stuff, and one for the actual paint. i connect to the server with these lines:
my_socket=socket.socket()
my_socket.connect(("127.0.0.1", 1234))
when the user wants to start painting, i want to open the paint file, and use the same socket he connected to in the menu, but i'm having trouble to do so. how do i use the same socket in the other file?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
