How to package a gui with py2exe

Vlastimil Brom vlastimil.brom at gmail.com
Wed Aug 17 08:44:07 EDT 2011


2011/8/17 Benji Ara. <benjokal at gmail.com>:
> Hello
> I wonder how you package a Tkinter gui with py2exe?
> Thanks
> Benji
>
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>

Hi,
check the necessary steps on the py2exe homepage
http://www.py2exe.org/index.cgi/Tutorial

in your setup script, you have to use something like the following for
a gui app:

setup(windows=["gui_hello.py"])

instead of console in the sample code
setup(console=['hello.py'])

For more details there are some dedicated pages on the project wiki:
http://www.py2exe.org/index.cgi/FrontPage

hth,
   vbr



More information about the Python-list mailing list