A lightweight Python GUI application for reading .docx and legacy .doc files. Built with tkinter — no heavy frameworks required.
- Open and read
.docxand.docfiles through a clean dark-themed GUI - Threaded file loading — UI stays responsive on large documents
- Word and line count displayed in the status bar
- Keyboard shortcuts (
Ctrl+Oto open,Ctrl+Qto quit) - Fallback chain for legacy
.docsupport (antiword → LibreOffice)
- Python 3.7 or higher
tkinter(included with most Python installations)
-
Clone the repository:
git clone https://github.com/zrnge/doc-reader.git cd doc-reader -
Install Python dependencies:
pip install python-docx
-
(Optional) For legacy
.docfile support, install one of the following:Linux:
sudo apt install antiword
Windows / macOS:
Install LibreOffice and make sure it is available in your system
PATH.
python doc_reader.pyClick Open File (or press Ctrl+O) and select a .docx or .doc file. The content will be displayed in the text area.
| Shortcut | Action |
|---|---|
Ctrl + O |
Open file |
Ctrl + Q |
Quit app |
document-reader/
├── doc_reader.py # Main application
├── README.md
└── LICENSE
| Format | Method |
|---|---|
.docx |
Parsed with python-docx |
.doc |
Extracted via antiword CLI, with LibreOffice headless as a fallback |
Contributions are welcome. Fork the repo, create a branch, and open a pull request.
This project is licensed under the MIT License. See LICENSE for details.
