Py2Exe Changing wxPython Look and Feel

I just noticed that my wxPython application looks different after
creation of an exe with Py2Exe. The image on the left is the
application running under the normal python interpreter. The one on the
right is the same application after creation of an exe with Py2exe.

The screenshot comparing the versions is at:
http://powertwenty.com/kpd/blog/wp-content/uploads/WxInterpVsPy2Exe.png

Notice:
1. The dark gray below the Music label instead of white.
2. The area around Music is inset in the exe version.
3. The splash handle separator is different, it looks more 3D in the
Py2EXE version.

This is with wxPython 2.8.1.1.

I’d guess there is a simple solution, but I’m not finding it. Any
ideas?

Thanks,
Kevin

···

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Dahlhausen 'Do' or 'do not.' There is no 'Try.'
http://powertwenty.com/kpd/blog/ -Yoda

Hi Kevin,

Your problem is due to the difference in the controls used. You need to add a manifest to your exe so that Windows be able to know which version of the controls you want to use :wink:

read this page:
http://wiki.wxpython.org/index.cgi/DistributingYourApplication

Peter.

···

On 2/11/07, Kevin Dahlhausen kdahlhaus@yahoo.com wrote:

I just noticed that my wxPython application looks different after
creation of an exe with Py2Exe. The image on the left is the
application running under the normal python interpreter. The one on the
right is the same application after creation of an exe with Py2exe.

The screenshot comparing the versions is at:
http://powertwenty.com/kpd/blog/wp-content/uploads/WxInterpVsPy2Exe.png

Notice:

  1. The dark gray below the Music label instead of white.
  2. The area around Music is inset in the exe version.
  3. The splash handle separator is different, it looks more 3D in the
    Py2EXE version.

This is with wxPython 2.8.1.1.

I’d guess there is a simple solution, but I’m not finding it. Any
ideas?

Thanks,
Kevin


Kevin Dahlhausen          'Do' or 'do not.' There is no 'Try.'
[http://powertwenty.com/kpd/blog/](http://powertwenty.com/kpd/blog/)              -Yoda

---------------------------------------------------------------------

To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org


There is NO FATE, we are the creators.

You're seeing the old Win2K UI look. In order for your app to use the new XP look, it needs a to have a manifest in its resources.

Check out this wiki page: http://wiki.wxpython.org/index.cgi/DistributingYourApplication.

Kevin Dahlhausen wrote:

···

I just noticed that my wxPython application looks different after
creation of an exe with Py2Exe. The image on the left is the
application running under the normal python interpreter. The one on the
right is the same application after creation of an exe with Py2exe.

The screenshot comparing the versions is at:
http://powertwenty.com/kpd/blog/wp-content/uploads/WxInterpVsPy2Exe.png

Notice:
1. The dark gray below the Music label instead of white.
2. The area around Music is inset in the exe version.
3. The splash handle separator is different, it looks more 3D in the
Py2EXE version.

This is with wxPython 2.8.1.1.

I’d guess there is a simple solution, but I’m not finding it. Any
ideas?

Thanks,
Kevin

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Dahlhausen 'Do' or 'do not.' There is no 'Try.' http://powertwenty.com/kpd/blog/ -Yoda

Eli, that was it. Adding the manifest resources as outlined on the
link fixed the problem. The new look is a lot nicer.

Thanks for your help,
Kevin

You're seeing the old Win2K UI look. In order for your app to use the

new XP look, it needs a to have a manifest in its resources.

Check out this wiki page:
http://wiki.wxpython.org/index.cgi/DistributingYourApplication.

Kevin Dahlhausen wrote:
> I just noticed that my wxPython application looks different after
> creation of an exe with Py2Exe. The image on the left is the
> application running under the normal python interpreter. The one on
the
> right is the same application after creation of an exe with Py2exe.
>
> The screenshot comparing the versions is at:
>

http://powertwenty.com/kpd/blog/wp-content/uploads/WxInterpVsPy2Exe.png

···

--- Eli Golovinsky <gooli@tuzig.com> wrote:

>
> Notice:
> 1. The dark gray below the Music label instead of white.
> 2. The area around Music is inset in the exe version.
> 3. The splash handle separator is different, it looks more 3D in
the
> Py2EXE version.
>
> This is with wxPython 2.8.1.1.
>
> I’d guess there is a simple solution, but I’m not finding it. Any
> ideas?
>
> Thanks,
> Kevin
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Kevin Dahlhausen 'Do' or 'do not.' There is no 'Try.'
> http://powertwenty.com/kpd/blog/ -Yoda

---------------------------------------------------------------------
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Dahlhausen 'Do' or 'do not.' There is no 'Try.'
http://powertwenty.com/kpd/blog/ -Yoda