From 5de275268590fb3fd2169bf03e3a90d3766f329b Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 7 Nov 2025 13:54:17 +0500 Subject: [PATCH] light ui - use `calendar` for simplicity --- src/bonsai/bonsai/bim/module/light/ui.py | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/light/ui.py b/src/bonsai/bonsai/bim/module/light/ui.py index 35cf36d306..0f0ffc09cb 100644 --- a/src/bonsai/bonsai/bim/module/light/ui.py +++ b/src/bonsai/bonsai/bim/module/light/ui.py @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with Bonsai. If not, see . +import calendar import bpy import bonsai.tool as tool from typing import TYPE_CHECKING @@ -192,24 +193,7 @@ class BIM_PT_solar(bpy.types.Panel): row = self.layout.row() row.prop(props, "year") row = self.layout.row(align=True) - row.prop( - props, - "month", - text={ - 1: "January", - 2: "February", - 3: "March", - 4: "April", - 5: "May", - 6: "June", - 7: "July", - 8: "August", - 9: "September", - 10: "October", - 11: "November", - 12: "December", - }[props.month], - ) + row.prop(props, "month", text=calendar.month_name[props.month]) row.prop(props, "day") row = self.layout.row(align=True)