diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/extensions/lettering.py | 5 | ||||
| -rw-r--r-- | lib/extensions/params.py | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/extensions/lettering.py b/lib/extensions/lettering.py index c57348ac..e55365c6 100644 --- a/lib/extensions/lettering.py +++ b/lib/extensions/lettering.py @@ -30,6 +30,11 @@ class LetteringFrame(wx.Frame): DEFAULT_FONT = "small_font" 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.group = kwargs.pop('group') self.cancel_hook = kwargs.pop('on_cancel', None) 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) |
