没有名为 agw.aui 的模块

发布于 2025-01-04 04:49:37 字数 300 浏览 3 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹊巢 2025-01-11 04:49:37

您需要确保您拥有最新版本的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文