def __init__(self, user_id): super().__init__() self.setupUi(self) font = QtGui.QFont() font.setFamily("MS Gothic") font.setPointSize(26) self.user_id = user_id self.comboBox.clear() for name in DB.get_exercise_names(): self.comboBox.addItems(name) self.show() self.connectFunction()
def physical_ui(): indent = " " * 4 # (exercise_name) # (applied_sample_id, exercise_id, sample_location, user_name, applied_sample_location, trainer_name) exercise_list = DB.get_exercise_names() applied_samples = DB.load_applied_skeleton_list() print(exercise_list) print(""" ================================================================== CHOOSE EXERCISE DATA WHERE YOU WANT TO GET REPORT(USER)""") for idx, row in enumerate(applied_samples): print(indent + "%d. %s: %s by %s" % (idx + 1, exercise_list[row[1] - 1][0], row[3], row[5])) print(indent + """================================================================== """) option = int(input("Enter: ")) args = applied_samples[option] ret_val = PoseSystem.Analyze_Physical_Data(*args) if ret_val == True: print(""" ================================================================== END OF ANALYZE PHYSICAL DATA PROCESS RESULT : SUCCESS ================================================================== """) else: print(""" ================================================================== END OF ANALYZE PHYSICAL DATA PROCESS RESULT : FAIL ================================================================== """) return