This is a simple chat application built in Python, featuring both a Command Line Interface (CLI) and a Graphical User Interface (GUI). The application allows two users (a server and a client) to communicate over a local network using sockets.
- CLI Version: A simple text-based chat interface.
- GUI Version: A user-friendly graphical interface using
tkinter. - Real-time messaging between server and client.
- Basic error handling for connection issues.
/python-chat-app
βββ CLI
β βββ server.py # Server implementation for CLI
β βββ client.py # Client implementation for CLI
βββ GUI
βββ βββ ServerGUI.py # Server implementation with GUI
βββ βββ ClientGUI.py # Client implementation with GUI
- Python 3.x
- `tkinter` (for GUI version)
- Clone the repository:
git clone https://github.com/yourusername/python-chat-app.git cd python-chat-app - Install python-tk
brew install python-tk
For used CLI version:
cd CLI
python server.py
cd CLI
python client.py
For used GUI version:
cd GUI
python ServerGUI.py
cd GUI
python ClientGUI.py