import os resource_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'res') init_db_dir = os.path.join(resource_dir, 'initdb') ui_dir = os.path.join(resource_dir, 'ui') icon_dir = os.path.join(resource_dir, 'icons') list_row_file = os.path.join(ui_dir, 'list_row.glade') with open(list_row_file, 'r') as f: list_row_ui_str = f.read() open_list_win_file = os.path.join(ui_dir, 'open_list_win.glade') listrecord_row_file = os.path.join(ui_dir, 'listrecord_row.glade') with open(listrecord_row_file, 'r') as f: listrecord_row_ui_str = f.read() editable_row_file = os.path.join(ui_dir, 'editable_row.glade') with open(editable_row_file, 'r') as f: editable_row_ui_str = f.read() male_patient_row_file = os.path.join(ui_dir, 'male_patient_row.glade') female_patient_row_file = os.path.join(ui_dir, 'female_patient_row.glade') gender_ui_str = {} with open(male_patient_row_file, 'r') as f: gender_ui_str['male'] = f.read() with open(female_patient_row_file, 'r') as f: gender_ui_str['female'] = f.read() reception_row_file = os.path.join(ui_dir, 'reception_row.glade') with open(reception_row_file, 'r') as f: reception_row_ui_str = f.read() catalog_row_file = os.path.join(ui_dir, 'catalog_list_row.glade') with open(catalog_row_file, 'r') as f: catalog_row_ui_str = f.read() diagnosis_row_file = os.path.join(ui_dir, 'diagnosis_row.glade') with open(diagnosis_row_file, 'r') as f: diagnosis_row_ui_str = f.read() anamnesis_row_file = os.path.join(ui_dir, 'anamnesis_row.glade') with open(anamnesis_row_file, 'r') as f: anamnesis_row_ui_str = f.read() observe_row_file = os.path.join(ui_dir, 'observe_row.glade') with open(observe_row_file, 'r') as f: observe_row_ui_str = f.read() medicine_row_file = os.path.join(ui_dir, 'medicine_row.glade') with open(medicine_row_file, 'r') as f: medicine_row_ui_str = f.read() reception_midicine_row_file = os.path.join(ui_dir, 'reception_medicine_row.glade') with open(reception_midicine_row_file, 'r') as f: reception_midicine_row_ui_str = f.read() main_win_file = os.path.join(ui_dir, 'main_win.glade') new_patient_win_file = os.path.join(ui_dir, 'new_patient_win.glade') open_patient_win_file = os.path.join(ui_dir, 'open_patient_win.glade') edit_patient_win_file = os.path.join(ui_dir, 'edit_patient_win.glade') new_reception_win_file = os.path.join(ui_dir, 'new_reception_win.glade') reception_list_settings_win_file = os.path.join(ui_dir, 'reception_list_settings.glade') new_catalog_win_file = os.path.join(ui_dir, 'new_catalog_win.glade') choose_patient_win_file = os.path.join(ui_dir, 'choose_patient_win.glade') open_reception_win_file = os.path.join(ui_dir, 'open_reception_win.glade') choose_diagnosis_win_file = os.path.join(ui_dir, 'choose_diagnosis_win.glade') choose_medicine_win_file = os.path.join(ui_dir, 'choose_medicine_win.glade')