wx.App (wxPython) 调用时崩溃 [英] wx.App (wxPython) crash when calling

查看:50
本文介绍了wx.App (wxPython) 调用时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我安装了 wxPython 来在 Windows 下做一些工作.大部分时间我在 Linux 上工作,所以我在这里有一点经验.
使用 python.exe 解释器,我只做了 2 行代码
import wx
tmp=wx.App(False)

然后解释器因 Windows 错误报告而崩溃.
我用 wxPython 2.8.11 尝试了 python 2.7.1 和 2.6.6,都来自他们的主网站,仍然没有运气.
在 Windows 中安装 Python 后,我必须做些什么吗?我可以看到 python 安装很好,可以做一些基本的工作,可以加载 wxPython 库,但不能调用 wx.App

Recently I installed wxPython to do some works under Windows. Most of the time I work in Linux so I have a little experience here.
with python.exe interpreter, I just do 2 line of code
import wx
tmp=wx.App(False)

Then the interpreter crashed with Windows error reporting.
I tried both python 2.7.1 and 2.6.6 with wxPython 2.8.11, all come from their main website, still no luck.
Is there something I must do after install Python in Windows ? I can see that python install just fine and can do some basic job, wxPython library can be load, but can't call wx.App

推荐答案

我搜索了一会,发现这是 wxPython 和 Python >2.5 的问题.用 manyfest 文件尝试了很多修复,但没有运气,所以我认为现在切换到 PyQt 是唯一的解决方案.

I searched for a while and found that this is the problem with wxPython and Python >2.5. Tried many fix with manyfest file but no luck, so I think switch to PyQt is the only solution now.

这篇关于wx.App (wxPython) 调用时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆