wxPython application behaves different after being packed by py2exe.
来源:互联网 发布:win10磁盘优化需要几遍 编辑:程序博客网 时间:2024/05/17 06:32
Problem:
My wxPython application containing XRC resources behaves different after being packed by py2exe. The difference is that the GIF images used by wxStaticBitmap controls in XRC dialogs were not displayed transparently, but a black background.
Solution:
While building distrubution of your wxPython application with py2exe, ensure the shared librarys are built into the same folder as the generated .exe file(s).
My Story:
When I noticed this problem, I was thinking it must caused by lost of some library when building library package by py2exe. I spent a whole day trying to find it out. But, even I put all modules and library it required into the package, it does not help. While I was planning to give up. I decided to have a last try. I reverted my setup.py into the initial version and rebuilt it. Surprisingly, it worked. Comparing the working build with previous builds, I noticed that the only difference is that the shared libraries locate in the same folder as the app.exe file in the working build. Then, I restore my setup.py to the lasted version and made a simple change to ensure all the shared library can be built into the folder as the output .exe file. Wow, it works!
- wxPython application behaves different after being packed by py2exe.
- recovering after being hit
- [转]py2exe打包发布wxPython程序
- Python使用wxPython、py2exe编写桌面程序
- Python使用wxPython、py2exe编写桌面程序
- Python使用wxPython、py2exe编写桌面程序
- py2exe:python,wxpython转exe可执行文件
- Python使用wxPython、py2exe编写桌面程序
- These are broadcasts whose data is held by the system after being finished, so that clients can quic
- .py to .exe (by py2exe)
- different application signatures解决方法
- different application signatures解决方法
- 出现This error can be caused by a virtual directory not being configured as an application...解决方法
- python学习——初次接触(python,wxpython,Boa,py2exe)
- windows下Python,wxPython,py2exe开发环境安装与配置
- python学习——初次接触(python,wxpython,Boa,py2exe)
- wxPython通过py2exe编译的应用程序如何去掉黑框
- Python使用wxPython、py2exe编写桌面程序-部署环境
- ERP流程重组常见错误攻略
- 好书共享:《微软项目:求生法则》
- 各取所需 看看ERP为不同员工带来了什么
- 信息化故事--温州的传奇(11)从“进城务工”看“温州新版自闭症”
- 应用Executors来建立Thread pool
- wxPython application behaves different after being packed by py2exe.
- 项目管理手记(七)--DRP系统的文化输出与营销
- 学习ZARA模式要从老板观念转变开始
- 甲方屡次选错乙方终致项目暴毙
- [转帖]项目管理驾御术
- 出差见闻(一)--温州的出租车:起步价15元
- Keytool命令来生成CA数字证书
- 好书共享: 《感受微软:比尔.盖茨的12个小秘密》
- [下载]好书共享《价值再发现:走近投资大师本杰明.格雷厄姆》