This Python project provides a simple graphical user interface (GUI) for managing users using Tkinter and SQLite.
You can add new users, search for users by their national code (کد ملی), and view all users in a table.
- Add a user with first name, last name, and national code.
- Prevent duplicate national codes.
- Search for a user by national code.
- View all users in a sortable table.
- All data is stored locally in an SQLite database (
user.db
).
- Run the script with Python:
python sqlfinal.py
- Enter user details and click "افزودن کاربر" to add a user.
- Click "جستجو با کد ملی" and enter a national code to search.
- The table at the bottom shows all users.
- Python 3.x (Tkinter is included by default)
- The interface and messages are in Persian (Farsi).
This Python project provides a simple graphical user interface (GUI) for managing users using Tkinter and SQLite.
You can add new users, search for users by their national code (کد ملی), and view all users in a table.
## Features
- Add a user with first name, last name, and national code.
- Prevent duplicate national codes.
- Search for a user by national code.
- View all users in a sortable table.
- All data is stored locally in an SQLite database (`user.db`).
## How to Use
1. Run the script with Python:
python sqlfinal.py
2. Enter user details and click "افزودن کاربر" to add a user.
3. Click "جستجو با کد ملی" and enter a national code to search.
4. The table at the bottom shows all users.
## Requirements
- Python 3.x (Tkinter is included by default)
## Language
- The interface and messages are in Persian (Farsi).
---