From c29746936b54ed39023534951df3daefcc4b3c63 Mon Sep 17 00:00:00 2001 From: IvanNazaruk <46572469+IvanNazaruk@users.noreply.github.com> Date: Thu, 24 Aug 2023 21:28:37 +0300 Subject: [PATCH] fix custom date picker Starts on Monday, not Sunday Example: 2021-08-23 --- misc/date_picker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/date_picker.py b/misc/date_picker.py index 8bf69a5..91dcd07 100644 --- a/misc/date_picker.py +++ b/misc/date_picker.py @@ -46,7 +46,7 @@ def cached_class_attr(f): class DatePicker: - weekdays = ('Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa') + weekdays = ('Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su') months = ( '1-January', '2-February', '3-March', '4-April', '5-May', @@ -367,4 +367,4 @@ def get_value(self) -> datetime: dpg.setup_dearpygui() dpg.show_viewport() dpg.start_dearpygui() - dpg.destroy_context() \ No newline at end of file + dpg.destroy_context()