wxPython widgets on win XP

Hi

I' am using Python 2.2.2, wxPython 2.4.0.6 on win XP pro.
Since the 2.4.0.4 release of wxPython I noted that the standard XP widget
are used on wxPython (until then all the widget looked like de win9x ones).

Today I compiled an App using py2exe, but the compiled application don't
have the xp look.

To be clear:
- If I run the App using the script the widgets look fine in XP
- If I run de compiled App (py2exe) the widgets look like the win9x ones.

I' am sending a picture that shows both situations.

¿Anybody can explain this?

Thank
Cristian

widgets.png

Echeverria Rabi, Cristián wrote:

Hi

I' am using Python 2.2.2, wxPython 2.4.0.6 on win XP pro.
Since the 2.4.0.4 release of wxPython I noted that the standard XP widget
are used on wxPython (until then all the widget looked like de win9x ones).

Today I compiled an App using py2exe, but the compiled application don't
have the xp look.

To be clear:
- If I run the App using the script the widgets look fine in XP
- If I run de compiled App (py2exe) the widgets look like the win9x ones.

I' am sending a picture that shows both situations.

Yep. The XP themed widgets are turned on simply by the presence of an XML file in the same dir as the .exe, using the same name as the .exe plus ".manifest". wxPython is now installing one in the Python install dir for python.exe and pythonw.exe. You should be able to take one of those files, rename it to match your .exe and you'll be all set.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Another problem with this, if you are using the "Classic theme" in windows xp, the flat toolbar style no longer works as it did before 2.4.0.4, also the wxListCtrl, selected image behavior has changed, pre 2.4.0.4 the selected image was simply the image with a hatching pattern overlayed, i have not determined what the new behavior is, but suffice to say, my "used to be working" list controls, now show no image when selected..

I'm not really complaining, just somewhat shocked and amazed at such changes during a point release, with no mention in the changelog..

Thanks for your hard work robin, any hints on the above issues would be much appreciated..

-Cody Pisto

Robin Dunn wrote:

···

Echeverria Rabi, Cristián wrote:

Hi

I' am using Python 2.2.2, wxPython 2.4.0.6 on win XP pro.
Since the 2.4.0.4 release of wxPython I noted that the standard XP widget
are used on wxPython (until then all the widget looked like de win9x ones).

Today I compiled an App using py2exe, but the compiled application don't
have the xp look.

To be clear:
- If I run the App using the script the widgets look fine in XP
- If I run de compiled App (py2exe) the widgets look like the win9x ones.

I' am sending a picture that shows both situations.

Yep. The XP themed widgets are turned on simply by the presence of an XML file in the same dir as the .exe, using the same name as the .exe plus ".manifest". wxPython is now installing one in the Python install dir for python.exe and pythonw.exe. You should be able to take one of those files, rename it to match your .exe and you'll be all set.

Cody Pisto wrote:

Another problem with this, if you are using the "Classic theme" in windows xp, the flat toolbar style no longer works as it did before 2.4.0.4, also the wxListCtrl, selected image behavior has changed, pre 2.4.0.4 the selected image was simply the image with a hatching pattern overlayed, i have not determined what the new behavior is, but suffice to say, my "used to be working" list controls, now show no image when selected..

I'm not really complaining, just somewhat shocked and amazed at such changes during a point release, with no mention in the changelog..

Thanks for your hard work robin, any hints on the above issues would be much appreciated..

Starting with 2.4.0.4 I added python[w].exe.manifest files in the Python dir so that the new common controls DLL would be used. (Yes, MS switches on the new functionality simply by the presence of a text file with the exe name...) If you remove the files then the old DLL will be used and things should work as they used to, but you wont' get theme support. If you don't use the classic theme then things work fine too so I suspect that the issue is that MS didn't really emulate the old controls very well in the classic theme...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!