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#Beforesubmittingareport:Makesureeverythingispackaged>
> 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