30 lines
1.4 KiB
Python
30 lines
1.4 KiB
Python
import os
|
|
resource_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'res')
|
|
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()
|
|
|
|
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')
|