How to make a .exe for Python with good graphics?
Question: I have a Python application and I decided to do a .exe to execute it.

This is the code that I use to do the .exe:

    
    
    # -*- coding: cp1252 -*-
    from distutils.core import setup
    import py2exe, sys, os
    
    sys.argv.append('py2exe')
    
    
    setup(
        options = {'py2exe': {'bundle_files': 1}},
        windows = [{'script': "SoundLog.py"}],
        zipfile = None,
        packages=[r"C:\Users\Public\SoundLog\Code\Código Python\SoundLog\Auxiliar", r"C:\Users\Public\SoundLog\Code\Código Python\SoundLog\Plugins"],
    )
    

But when I run my application with the .exe, the graphics are quite different.

In the image bellow you can see the application running thought python at the
left and running thought the .exe at the right. ![alt
text](http://i.stack.imgur.com/JCsU3.png)

How can I make the .exe one be as good as the one that runs thought python?


Answer: I assume you mean the visual style of the toolbar and buttons. You need to add
a manifest file to the EXE file or as a separate file so that Windows applies
the modern style of recent comctl32.dll versions.

Check out [Using Windows XP Visual Styles With Controls on Windows
Forms](http://msdn.microsoft.com/en-us/library/aa289524%28VS.71%29.aspx) on
MSDN. Read the relevant part about creating the ".exe.manifest" file.

A more py2exe-specific tutorial can be found over at the [wxPython
site](http://wiki.wxpython.org/DistributingYourApplication). They explain how
to use setup.py to include the necessary manifest file.

