Skip to content

Instantly share code, notes, and snippets.

View KasperJack's full-sized avatar
reinventing the wheel

Adem boubaker KasperJack

reinventing the wheel
View GitHub Profile
self.load_students_to_table()
self.search_bar.textChanged.connect(self.filter_students_table)
self.class_combo_box.currentTextChanged.connect(self.filter_students_table)
self.class_combo_box.addItem("All Classes") # Default option to show all students
self.class_combo_box.addItems(get_classes()) # Populate with class names
def load_students_to_table(self):
from PyQt6.QtWidgets import QTableWidgetItem
def load_students_to_table(self):
# Récupère les informations des étudiants
students = get_students_info()