def update(self): student = Student() group_number: str = self.group_number ls_all: list = student.show_all(self.session, group_number) ls_all: np.ndarray = np.array(ls_all) self.tableWidget = set_items_to_table(self.tableWidget, ls_all) self.tableWidget.resizeColumnsToContents() self.label.setText("Список группы: №" + str(group_number)) self.group_number = str(group_number)
def show_student_list_window(self): student = Student() group_number: str = self.comboBox.currentText() ls_all: list = student.show_all(self.session, group_number) ls_all: np.ndarray = np.array(ls_all) self.student_list_ui.tableWidget = set_items_to_table( self.student_list_ui.tableWidget, ls_all) self.student_list_ui.tableWidget.resizeColumnsToContents() self.student_list_ui.label.setText("Список группы: №" + str(group_number)) self.student_list_ui.group_number = str(group_number) self.student_list_window.show()