How it works...
The demoServer.py file will be treated as a header file and will be imported into another Python file that will use the GUI of the header file and transmit the data from the server to client and vice versa. But before that, let's create a GUI for the client application. The GUI of the client application is exactly the same as that of the server application, with the only difference that the Label widget at the top of this application will display the text Client.
The demoServer.py file is a generated Python script of the GUI widgets that we dragged and dropped onto the form.
To establish a connection between the server and client, we will require a socket object. To create the socket object, you need to supply the following ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access