A desktop application for managing parking tickets at GAMING. This application allows users to:
- Create parking tickets
- Print tickets
- Manage parking records
- Export data to CSV
- Simple and intuitive user interface
- Instant ticket printing
- Data export functionality
- Database management
- Ticket preview before printing
- Clone the repository:
git clone https://github.com/kohaku1907/gui_xe_app.git
cd gui_xe_app- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python src/main.py- Enter the vehicle number in the input field
- Click "In" to print the ticket
- Use the ">>>" button to export data to CSV
To create a standalone Windows executable that can be run without Python installation:
- Install PyInstaller:
pip install pyinstaller- Build the application:
pyinstaller --onefile --windowed --name "Gaming Parking" --icon=resources/icon.ico src/main.pyThis will create a single executable file in the dist directory.
--onefile: Creates a single executable file--windowed: Prevents console window from showing--name: Sets the output filename--icon: Adds a custom icon to the executable
- To include additional data files (like the database):
pyinstaller --onefile --windowed --name "Gaming Parking" --add-data "resources/gui_xe.db;resources" --icon=resources/icon.ico src/main.py- To create a build with debug information:
pyinstaller --onefile --windowed --name "Gaming Parking" --debug=all src/main.py- Test the executable in the
distdirectory - Create a shortcut to the executable
- Copy the executable and shortcut to the target computer
- Ensure the target computer has the required printer drivers installed
- If the application fails to start, check if all required DLLs are included
- Ensure the database file is in the correct location
- Check printer connectivity and drivers
- For debugging, run without
--windowedto see console output
gui_xe_app/
├── src/ # Source code
├── resources/ # UI files and resources
├── docs/ # Documentation
├── requirements.txt # Project dependencies
└── README.md # This file
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.