diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2021-06-01 13:17:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-01 13:17:00 +0200 |
| commit | b3a6fdc7616cbd1485bd0818778af11d922d866e (patch) | |
| tree | 865d92a513c83e0ce83cea382936745d19270951 /lib/extensions/params.py | |
| parent | e7089618a640a36b40b877b40356ea88a8d7ddf3 (diff) | |
fix windows wxpython locale error (#1187)
Diffstat (limited to 'lib/extensions/params.py')
| -rw-r--r-- | lib/extensions/params.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py index 38cb6818..40494ec7 100644 --- a/lib/extensions/params.py +++ b/lib/extensions/params.py @@ -330,6 +330,11 @@ class ParamsTab(ScrolledPanel): class SettingsFrame(wx.Frame): def __init__(self, *args, **kwargs): + # This is necessary because of https://github.com/inkstitch/inkstitch/issues/1186 + if sys.platform.startswith('win'): + import locale + locale.setlocale(locale.LC_ALL, "C") + # begin wxGlade: MyFrame.__init__ self.tabs_factory = kwargs.pop('tabs_factory', []) self.cancel_hook = kwargs.pop('on_cancel', None) |
