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?  And why does it look
OK when using "import wx.aui as aui", does it not require UxTheme in
the same way?  Just curious...

Thanks,
Scott

On Feb 7, 6:07 am, Andrea Gavana <[email protected]> wrote:
> Hi,
>
> On 7 February 2012 14:58, Hartmut Goebel wrote:
>
> > Am 02.02.2012 23:45, schrieb Scott:
>
> >> import wx.lib.agw.aui as aui
> >> #import wx.aui as aui
>
> >> I need to use the first one listed above.  However, when I freeze my
> >> program, the GUI looses the XP theme and it looks like that classic
> >> windows 98 look.  When run normally in python, it works fine.
> >> However, if I use the second aui package above, then it looks normal -
> >> both when frozen and run normally in python.  As mentioned, in the
>
> > You need to find out, what is missing, See
> > <http://www.pyinstaller.org/wiki/HowtoReportBugs#Beforesubmittingarepo...>
> > for some tools to get this known.
>
> You have to remove any reference/link to the UxTheme.dll library in
> your spec file. This is what I do:
>
> exe = EXE( pyz,
>           a.scripts,
>           a.binaries - [('UxTheme.dll',
> r'C:\Windows\System32\uxtheme.dll', 'BINARY'), ('uxtheme.dll',
> r'C:\Windows\System32\uxtheme.dll', 'BINARY')],
>           a.zipfiles,
>           a.datas,
>           name=WHATEVER,
>           debug=False,
>           strip=False,
>           upx=True,
>           console=False , icon='whatever.ico')
>
> Unfortunately this is almost unavoidable as wx.lib.agw.aui, as the
> whole AGW, contains custom-drawn widgets which normally require the
> use of UxTheme to look right on Windows (>= XP).
>
> Hope this helps.
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against 
> Reality."http://xoomer.alice.it/infinity77/
>
> >>> import PyQt4.QtGui
>
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in <module>
> ImportError: No module named PyQt4.QtGui
>
> >>> import pygtk
>
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in <module>
> ImportError: No module named pygtk
>
>
>
>
>
>
>
>
>
> >>> import wx

-- 
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