Hi Scott,

On 7 February 2012 18:42, Scott wrote:
> Thanks for the insight Andrea.  Removing UxTheme as you suggested
> seems to solve the problem.  Why does it work?  Aren't we excluding
> UxTheme, even though you said it is necessary?

We are excluding it because all Windows installation (XP and greater)
have this UxTheme.dll thing installed by default, normally in
C:\Windows\system32\uxtheme.dll. It is a library used for
skinning/window appearance on Windows. As it is always installed on
any Windows machine, no exception, there is no need for the executable
builders to pick it up. Unfortunately, none of the executable builders
I know of (PyInstaller, py2exe, cx_Freeze, bbFreeze, vendorID) are
smart enough to figure this out, so we need to exclude it manually.

If you don't exclude it, the local copy of UxTheme.dll installed by
your application will conflict with the original system one, and all
hell will break loose.

> And why does it look
> OK when using "import wx.aui as aui", does it not require UxTheme in
> the same way?  Just curious...

wx.aui is written in C++ and wrapped in Python and it doesn't have all
the whistles and bells of agw.aui. One of the reasons why agw.aui
needs UxTheme.dll on Windows is the use of the ModernDockArt class (in
dockart.py), which will make the docking/floating experience 100%
native on Windows (and not with the fake captions/borders styles shown
by wx.aui, which does not have that class).

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to