From ed365bf59c2aaa56718843904fc6fbff138aea35 Mon Sep 17 00:00:00 2001 From: Kr-Adarsh Date: Mon, 7 Oct 2024 05:15:33 +0530 Subject: [PATCH] Created a GUI for a CLI model Added a readme.md for better understanding Changed the file_function and added a delete button --- GUI/GUI_student.py | 5 +++-- GUI/readme.md | 4 ++++ GUI/stud.dat | Bin 154 -> 0 bytes 3 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 GUI/stud.dat diff --git a/GUI/GUI_student.py b/GUI/GUI_student.py index 0c7491e..7bc47cc 100644 --- a/GUI/GUI_student.py +++ b/GUI/GUI_student.py @@ -9,11 +9,12 @@ class Mygui(QMainWindow): def __init__(self): super(Mygui, self).__init__() - uic.loadUi("Student-Management-System/GUI/first_gui.ui", self) + uic.loadUi("first_gui.ui", self) + self.show() # Connect buttons to their respective methods - self.pushButton.clicked.connect(self.add_record) # Add Record Button + self.pushButton.clicked.connect(self.add_record) # Record Button self.pushButton_2.clicked.connect(self.display_records) # Display Records Button self.pushButton_3.clicked.connect(self.delete_file) # Delete All Records Button diff --git a/GUI/readme.md b/GUI/readme.md index bfa26e0..c65613f 100644 --- a/GUI/readme.md +++ b/GUI/readme.md @@ -13,3 +13,7 @@ A simple Student Management System built using PyQt5 and Python for managing stu - **Python**: Programming language used for development. - **PyQt5**: GUI toolkit for creating the application interface. - **Pickle**: Used for serializing and deserializing Python objects. + +## To run the GUI: + +> python GUI_student.py diff --git a/GUI/stud.dat b/GUI/stud.dat deleted file mode 100644 index 1d97c7663c917ca1a2ba72198ef65ed08da7144d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 154 zcmZo*nd-y<0X^)+C8a5;c_mYN*n^?0$x}2Nr_@f-=wT_!&&iqM&Dg_|mzbM6rH3(S jN)K~EYS9#T2PKI1(j>hG(hOsQ8x{^XEaCvzG@xMs72h&h