Replies: 1 comment 1 reply
-
Hello @CSparn. The calendarframe uses the system locale to render month names. import locale
loc = locale.getlocale()
print(loc) Regards |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I relized that there is a problem using calendarframe in windows application as well as using it in pygubu-designer for windows.
I get the following error message.
File "C:\Python311\Lib\site-packages\pygubu\builder.py", line 168, in get_object bobject = self._realize(root, wmeta, extra_init_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\pygubu\builder.py", line 274, in _realize child = self._realize(parent, childmeta) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\pygubu\builder.py", line 274, in _realize child = self._realize(parent, childmeta) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\pygubu\builder.py", line 274, in _realize child = self._realize(parent, childmeta) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Previous line repeated 5 more times] File "C:\Python311\Lib\site-packages\pygubu\builder.py", line 263, in _realize parent.realize(master, extra_init_args) File "C:\Python311\Lib\site-packages\pygubu\component\builderobject.py", line 143, in realize self.widget = self.class_(master, **args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\pygubu\widgets\calendarframe.py", line 123, in __init__ self.__build_ui() File "C:\Python311\Lib\site-packages\pygubu\widgets\calendarframe.py", line 279, in __build_ui self._draw_calendar(self._canvas) File "C:\Python311\Lib\site-packages\pygubu\widgets\calendarframe.py", line 431, in _draw_calendar name = self._cal.formatmonthname( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\calendar.py", line 590, in formatmonthname with different_locale(self.locale): File "C:\Python311\Lib\calendar.py", line 555, in __enter__ _locale.setlocale(_locale.LC_TIME, self.locale) File "C:\Python311\Lib\locale.py", line 626, in setlocale return _setlocale(category, locale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ locale.Error: unsupported locale setting
When I run the same app in Ubuntu the calendarframe works fine.
Can you help me fixing the error?
Greetings
C.S.
Beta Was this translation helpful? Give feedback.
All reactions