I'm trying to use PyInstaller to freeze my python application.  It
uses wxpython, and specifically uses the aui package.  In wxpython,
there are two aui packages:

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
end, I need to use that first aui package...but I'd like the theme to
remain the same.

I am using:
Windows XP
Python 2.7.1
wxPython 2.8.12.1

For testing, all you need to do is import this package (even if it
isn't used).  The example below can be used for testing.  Run it as-
is, and the frozen exe displays with the old windows look.  But
comment the first aui line and un-comment the second, things work
fine...:

-----[ Test.py ]---------------------------------------
import wx
import wx.lib.agw.aui as aui
#import wx.aui as aui
class MyFrame(wx.Frame):
   def __init__(self, parent, title):
      wx.Frame.__init__(self, parent, title=title, size=(200,100))
      self.control = wx.Button(self, label='Button')
      self.Show(True)
app = wx.App(False)
frame = MyFrame(None, 'Small editor')
app.MainLoop()
---------------------------------------------------------------

-----[ Test.spec ]---------------------------------------
# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
              os.path.join(HOMEPATH,'support\\useUnicode.py'),
              'Test.py'])
pyz = PYZ(a.pure)
exe = EXE( pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          name=os.path.join('pyInstDist', 'sampleApp.exe'),
          debug=False,
          strip=False,
          upx=True,
          console=False)
---------------------------------------------------------------

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