kopia lustrzana https://github.com/inkstitch/inkstitch
fix windows wxpython locale error (#1187)
rodzic
e7089618a6
commit
b3a6fdc761
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue