diff --git a/mods/receptions.py b/mods/receptions.py index 9bdceb0..4ec49f3 100644 --- a/mods/receptions.py +++ b/mods/receptions.py @@ -63,9 +63,10 @@ def build_reception_row(reception_datetime): row.props.db_id = reception.id reception_cont = b.get_object('reception_cont') reception_cont.props.border_width = 2 - reception_cont.override_background_color(Gtk.StateFlags(0), Gdk.RGBA(red=0.5, green=0.7, blue=0.5, alpha=1.0)) + reception_cont.override_background_color(Gtk.StateFlags(0), Gdk.RGBA(red=0.6, green=0.8, blue=0.6, alpha=1.0)) reception_patient = Gtk.Label() - reception_patient.set_text(' '.join([reception.patient.last_name, reception.patient.first_name, reception.patient.middle_name])) + reception_patient.set_markup(f'{" ".join([reception.patient.last_name, reception.patient.first_name, reception.patient.middle_name])}') + #reception_patient.set_text(' '.join([reception.patient.last_name, reception.patient.first_name, reception.patient.middle_name])) reception_cont.add(reception_patient) else: row.props.scheduled = False @@ -107,6 +108,11 @@ def create_new_reception_win(): def create_reception_list_settings_win(): b = Gtk.Builder() class ReceptionListSettingsHandler: + def leading_zeroes(self, entry): + adj = entry.get_adjustment() + val = int(adj.get_value()) + entry.set_text(f'{val:02d}') + return True def save_settings(self, *a): start_hour = int(b.get_object('start_hour').get_value()) start_minute = int(b.get_object('start_minute').get_value()) diff --git a/res/ui/reception_list_settings.glade b/res/ui/reception_list_settings.glade index a0760e8..3c855e8 100644 --- a/res/ui/reception_list_settings.glade +++ b/res/ui/reception_list_settings.glade @@ -110,6 +110,7 @@ number adj_start_hour True + False @@ -143,6 +144,7 @@ number adj_start_minute True + False @@ -198,6 +200,7 @@ number adj_end_hour True + False @@ -231,6 +234,7 @@ number adj_end_minute True + False @@ -286,6 +290,7 @@ number adj_interval True + False