Creating a very simple tic-tac-toe game in Python using a socket-based P2P architecture. Currently, my GUI has a button that says “Create,” which opens and draws a new playing field window, creates a socket, binds, listens, and accepts the connection. The "Join" button will open and draw a new game panel and connect to this "server".
I try to show him the message "Waiting for a player ..." when you create a game, the cancel button to stop and return to the main menu, and make it disappear on its own if the connection was accepted.
I tried using tkMessageBox, but the script stops until the user clears the message, so I don't need to listen / receive until the user clicks something.
What other way to fulfill for me?
Thanks!
source share