summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-06-01 13:17:00 +0200
committerGitHub <noreply@github.com>2021-06-01 13:17:00 +0200
commitb3a6fdc7616cbd1485bd0818778af11d922d866e (patch)
tree865d92a513c83e0ce83cea382936745d19270951 /lib/extensions/params.py
parente7089618a640a36b40b877b40356ea88a8d7ddf3 (diff)
fix windows wxpython locale error (#1187)
Diffstat (limited to 'lib/extensions/params.py')
-rw-r--r--lib/extensions/params.py5
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)