2004年03月05日 星期五 08:21
CHEN Guang (Oliver),您好!
我机子上安装的是py2exe 0.5 ,然后执行了它目录下sample中的simple例子,发现一切都是正常的
看来py2exe要么是自己根据是否用了gui包来判断的(这里它用的wxpython),
要么是根据setup.py中下面两行来指定的:
# targets to build
windows = ["test_wx.py"],
console = ["hello.py"],
你自己在试一试
======= 2004-03-04 18:44:36 您在来信中写道:=======
>Zhao您好:
> 谢谢您热心解答我的问题,可我仍不知道如何指定使用
>run_w.exe, 我编写的 setup.py
>如下,当如何改动?如蒙明释,不胜感激。
>
># setup.py
>from distutils.core import setup
>import glob
>import py2exe
>setup(console=["hello.py"],
>data_files=[("fonts", glob.glob("fonts\\TIMES.TTF"))])
>
>
>您的贴子:
>
> 在py2exe的目录中有两个可执行文件run.exe和run_w.exe
>
>生成的exe都是已这两个文件为母本的(把code添加在他们之后)
>
>
>如果执行时出现了dos窗口应该是使用了run.exe的缘故,指定使用run_w.exe就可以了
>
>
>_________________________________________________________
>Do You Yahoo!?
>完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间
>http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.mail.yahoo.com
= = = = = = = = = = = = = = = = = = = =
致
礼!
zhao
bear_sh at eastday.com
2004-03-05
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fox.GIF
Type: image/gif
Size: 9519 bytes
Desc: not available
Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20040305/a26f7327/fox.gif
Zeuux © 2025
京ICP备05028076号