中国开发网: 论坛: 超级垃圾站: 贴子 606483
leejd
py2exe打包PyQt4脚本的脚本
#!/usr/bin/env python
#coding=utf-8
'''QT4 GUI程序的exe文件生成脚本
'''
from distutils.core import setup
import py2exe
setup(windows=[{"script":"test.pyw", "icon_resources": [(1, "shipping.ico")]}],
options={"py2exe":{"includes":["sip", "PyQt4._qt"]}})

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录