मैं आपको एकदम beginner level से, छोटे-छोटे steps में सिखाऊँगा। आप हर step करके screenshot भेजेंगे, फिर हम अगले step पर जाएँगे।
🎓 Lesson 1 — हमारा Software और Development Environment
आज हम अभी Fee Calculation या Student Form नहीं बनाएँगे।
आज सिर्फ यह समझेंगे कि हमारा software किन चीजों से बना है और अपना development environment तैयार करेंगे।
1. सबसे पहले हमारा Software किस Technology से बना है?
आपके actual software में ये technologies हैं:
| Technology | हमारा काम |
|---|---|
| 🐍 Python | पूरा software का मुख्य programming language |
| 🖥️ PySide6 | Windows में software की window, buttons, forms आदि |
| 🗄️ SQLite | Students, Bills, Payments आदि का data |
| 📄 ReportLab | Bill और Receipt PDF |
| 📊 OpenPyXL | Excel-related काम |
| 📦 PyInstaller | Python program को Windows .exe बनाने के लिए |
इसलिए हमारा basic structure है:
SCHOOL FEE SOFTWARE
│
▼
Python
│
┌───────────┴───────────┐
▼ ▼
PySide6 SQLite
User Interface Database
│
▼
Fee Management
│
┌──────┼──────┐
▼ ▼ ▼
Bills Payments Reports
│
▼
PDF / WhatsApp2. हमारे Final Software में क्या-क्या होगा?
हम धीरे-धीरे इसी software को बनाएँगे:
👨🎓 Students
Add Student
Edit Student
Delete Student
Search Student
Student Details💰 Fee
Monthly Fee
Transport Fee
Extra Charges
Exam Fee
ID + Diary
Tie + Belt
Miscellaneous🧾 Bills
Generate Monthly Bill
Previous Due
Current Fee
Total
Paid
Due
Bill Status💵 Payments
Collect Fee
Full Payment
Partial Payment
Cash
UPI
Bank
Cheque
Payment History📄 Documents
Demand Bill PDF
Payment Receipt PDFFee Bill Message
Payment/Due Information📊 Reports
Collection Report
Due Report
Monthly Report
Class-wise Report
Student Summary
CSV Export⚙️ Settings
School Name
Address
Phone
Academic Session
Bill Prefix
Receipt Prefix
Due Date
Footer Message💾 Backup
Database Backup
Database Restoreऔर अंत में:
Python Project
↓
PyInstaller
↓
SchoolFeeManagement.exe3. सबसे पहले Python check करें
अपने Windows computer में CMD खोलें।
Start Menu में लिखें:
cmdफिर खोलें।
अब यह command लिखें:
python --versionअगर result ऐसा आता है:
Python 3.13.7तो ठीक है।
अगर:
Python 3.12.xतो भी ठीक है।
4. अब VS Code check करें
हम software बनाने के लिए VS Code इस्तेमाल करेंगे।
VS Code खोलें और देखें कि खुल रहा है या नहीं।
अगर पहले से installed है तो कुछ install करने की जरूरत नहीं।
5. अब हमारा नया Learning Project Folder
Desktop पर एक नया folder बनाएँ:
School_Fee_Management_Learningध्यान दें:
आपकी दी हुई ZIP अलग रहेगी।
हम उस original project को खराब नहीं करेंगे।
हम learning के लिए अलग project बनाएँगे और जैसे-जैसे सीखेंगे, उसी structure को बनाते जाएँगे।
6. VS Code में Folder खोलें
VS Code में:
File → Open Folder
फिर select करें:
School_Fee_Management_Learningअभी folder खाली होगा।
7. Virtual Environment बनाएँ
VS Code में:
Terminal → New Terminal
अब लिखें:
python -m venv venvइसके बाद project folder में:
School_Fee_Management_Learning
│
└── venvबन जाएगा।
Virtual Environment क्या है?
इसे बहुत आसान भाषा में समझिए:
मान लीजिए आपके computer में अलग-अलग Python projects हैं:
Project A
Project B
School Fee Softwareअगर सभी projects एक ही Python packages इस्तेमाल करें तो आगे चलकर versions का conflict हो सकता है।
इसलिए हम अपने School Fee Software के लिए अलग Python environment बनाएँगे।
इसी को कहते हैं:
Virtual Environment
8. Virtual Environment Activate करें
Windows में Terminal में:
venv\Scripts\activateअगर सही हुआ तो Terminal के आगे ऐसा दिखाई दे सकता है:
(venv) C:\Users\...\School_Fee_Management_Learning>(venv) दिखाई देना महत्वपूर्ण है।
9. अब PySide6 Install करेंगे
हमारा actual software PySide6 पर बना है।
Command:
python -m pip install PySide6इसके बाद ReportLab:
python -m pip install reportlabऔर OpenPyXL:
python -m pip install openpyxlलेकिन आगे से हम इन commands को एक ही requirements.txt से भी install करना सीखेंगे।
आपकी actual project में यही dependencies रखी गई हैं:
PySide6
ReportLab
OpenPyXL10. अब सबसे पहला Python Program
VS Code में नई file बनाएँ:
main.pyअभी इसमें केवल यह लिखें:
print("School Fee Management Software")अब Terminal में:
python main.pyResult:
School Fee Management Software🎉 यह हमारा पहला Python program है।
🧠 यहाँ एक महत्वपूर्ण बात
अभी आपने केवल:
print(...)सीखा है।
अगले step में हम इसे Windows application में बदलेंगे।
अर्थात:
print()
↓
Python Program
↓
PySide6
↓
Windows Windowफिर:
Window
↓
Button
↓
Student Form
↓
Databaseऔर आखिर में:
Complete School Fee Management Software11. अब हमारा अगला छोटा लक्ष्य
अगले lesson में हम बिना किसी complicated code के यह window बनाएँगे:
┌─────────────────────────────────────────┐
│ School Fee Management Software │
├─────────────────────────────────────────┤
│ │
│ Welcome │
│ │
│ [ Open Software ] │
│ │
└─────────────────────────────────────────┘फिर मैं आपको समझाऊँगा:
from PySide6.QtWidgets import QApplicationयह क्या करता है।
फिर:
QMainWindowक्या है।
फिर:
setWindowTitle()
resize()क्या करते हैं।
यानी हर line का मतलब समझेंगे, केवल copy-paste नहीं करेंगे।
✅ अभी आपका काम
अभी केवल ये करें:
Step 1
CMD में:
python --versionStep 2
VS Code खोलें।
Step 3
School_Fee_Management_Learning folder बनाएँ और VS Code में खोलें।
Step 4
Terminal में:
python -m venv venvStep 5
venv\Scripts\activateStep 6
python -m pip install PySide6Step 7
main.py बनाएँ:
print("School Fee Management Software")और चलाएँ:
python main.pyपहले बस इतना ही करें।
जब School Fee Management Software Terminal में दिखाई दे जाए, उसका screenshot भेजिए। फिर हम सीधे Lesson 2 — PySide6 से पहली Windows Application Window शुरू करेंगे।

0 Comments
कमेंट केवल पोस्ट से रिलेटेड करें