Skip to content

Commit

Permalink
Created a GUI for a CLI model
Browse files Browse the repository at this point in the history
Added a readme.md for better understanding

Changed the file_function and added a delete button
  • Loading branch information
Kr-Adarsh committed Oct 6, 2024
1 parent aaaf03c commit ed365bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GUI/GUI_student.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions GUI/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Binary file removed GUI/stud.dat
Binary file not shown.

0 comments on commit ed365bf

Please sign in to comment.