没有名为 agw.aui 的模块
我使用 python 2.5,同时运行我从 http://xoomer.virgilio.it/ 下载的模块 persist_handlers.py infinity77/main 我收到错误 No module named agw.au(wx.lib.agw.aui)。 如何安装wx包?
实际上我正在尝试使用 persistencemanager 来腌制 wx.frame
有没有更简单的方法来腌制这个?..
Im using python 2.5, while running module persist_handlers.py which i downloaded from http://xoomer.virgilio.it/infinity77/main im getting a error No module named agw.au(wx.lib.agw.aui).
How to Install wx package?
Actually I'm trying to pickle a wx.frame using persistencemanager
is there any easier way to pickle this?..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要确保您拥有最新版本的 wx.我认为 agw 库是在 2.8.9 左右添加的。不过,您始终可以从 SVN 下载它并将其添加到您的系统中。在我的 Windows 机器上,它将位于此处:
C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw
持久性管理器仅保存和加载小部件中的设置。您不能直接pickle wxPython 小部件,因为它包裹在无法pickle 的C++ 内容中。但是,您应该能够腌制您的设置,因为这些只是普通的 Python 对象。
You need to make sure you have a recent version of wx. I think the agw library was added in 2.8.9 or thereabouts. You can always download it from SVN though and add it to your system. On my Windows box, it would go here:
C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw
The persistence manager just saves and loads settings from widgets. You cannot directly pickle a wxPython widget because it is wrapped around C++ stuff that just isn't able to be pickled. However, you should be able to pickle your settings since those will just be normal Python objects.