def __init__(self, user_id): super().__init__() self.setupUi(self) self.show() self.user_id = user_id self.setuserinfo() self.yourlist.clear() self.comboBox.clear() self.comparison.clear() rows = DB.get_input_list(self.user_id) if rows != []: self.input_id_list = rows[:] for row in rows: self.yourlist.addItem(f'{row[0]}.{row[1]}') rows = DB.get_user_list('standard') if rows != []: self.trainer_id_list = list(zip(*rows))[0] for row in rows: self.comboBox.addItem(f'{row[1]}') # 무조건 트레이너 한명은 있다고 가정한다. rows = DB.get_math_info_list(self.trainer_id_list[0]) if rows != None: self.extraction_id_list = rows[:] for row in rows: self.comparison.addItem(f'{row[0]}.{row[1]}') self.extraction_id = 0 self.input_id = 0 self.connectFunction()
def __init__(self, user_id): super().__init__() self.setupUi(self) self.show() self.user_id = user_id self.connectFunction() rows = DB.get_input_list(self.user_id) if rows != []: self.input_id_list = rows[:] for row in rows: self.user.addItem(f'{row[0]}.{row[1]}') rows = DB.load_data_list(self.user_id, 2) if rows != []: self.applied_trainer_list = rows[:] for row in rows: self.applied_trainer.addItem(f'{row[0]}.{row[1]}-{row[2]}') self.input_id = 0 self.target_id = 0
def __init__(self, user_id): super().__init__() self.setupUi(self) self.show() self.user_id = user_id self.connectFunction() self.setuserinfo() rows = DB.get_input_list(self.user_id) if rows != []: for row in rows: self.yourlist.addItem(f'{row[0]}.{row[1]}') self.input_id_list = rows[:] rows = DB.get_math_info_list(self.user_id) if rows != []: self.extraction_id_list = rows[:] for row in rows: self.registeredlist.addItem(f'{row[0]}.{row[1]}') self.target_type = 0 self.target_id = 0