File "C:Python27libsite-packageswx-3.0-mswwx_controls.py", line 6523, in __init__
_controls_.DatePickerCtrl_swiginit(self,_controls_.new_DatePickerCtrl(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ....srccommonintl.cpp(1449) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
解决方法:
class MyApp(wx.App):
def OnInit(self): self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)
http://stackoverflow.com/questions/21444951/wxpython-3-0-breaks-older-apps-locale-error
原文:http://www.cnblogs.com/huangjianan/p/4484156.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!