栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

wx.

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

wx.

运行ride.py报错:

Traceback (most recent call last):
  File "E:workspacepython386libsite-packagesrobotideapplicationapplication.py", line 58, in onInit
    self.frame = Rideframe(self, self._controller)
  File "E:workspacepython386libsite-packagesrobotideuimainframe.py", line 175, in __init__
    self._init_ui()
  File "E:workspacepython386libsite-packagesrobotideuimainframe.py", line 279, in _init_ui
    self.tree = Tree(self, self.actions,
  File "E:workspacepython386libsite-packagesrobotideuitree.py", line 86, in __init__
    self._images = TreeImageList()
  File "E:workspacepython386libsite-packagesrobotideuiimages.py", line 42, in __init__
    TestCaseController: _TreeImage(self, 'robot.png'),
  File "E:workspacepython386libsite-packagesrobotideuiimages.py", line 80, in __init__
    self.normal = self._get_image(image_list, normal)
  File "E:workspacepython386libsite-packagesrobotideuiimages.py", line 91, in _get_image
    img = wx.Image(path, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ....srccommonintl.cpp(1579) 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!
onInit returned false, exiting...
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ....srccommonwincmn.cpp(478) in wxWindowbase::~wxWindowbase(): any pushed event handlers must have been removed

解决办法:
打开E:workspacepython386libsite-packagesrobotideapplicationapplication.py文档,修改

self._initial_locale = wx.Locale(wx.LANGUAGE_ENGLISH)

self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)

重新运行python ride.py就好了

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/512131.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号