尝试根据http://wxpython.org/Phoenix/docs/html/adv.1classindex.html使用wx.adv,但出现“导入错误:没有名为adv的模块”。
有安装程序或导入它的特殊方法吗?是否已弃用...?
使用Windows和Mac,Python 2.7.6,wxPython 3.0。
您是否可能认为自己有Phoenix /正在运行Phoenix,但实际上却没有?
在命令行上尝试(很抱歉,已在Windows上进行了测试,但也应适用于Mac):
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.version()
'2.9.5.0 msw (classic)'
相对于
'3.0.1.dev76380 msw (phoenix)'
在带有2.7.6和Phoenix的virtualenv中。您要使用哪个班级?如前所述,wx.adv
Phoenix是经典之作,没有wx.adv
开箱即用的东西,可能在其他地方。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句