Okay, I can't find an answer on the web for this. I have built
versions of this application before. I've dressed it up with plate
buttons and a toolbar and a few of the AGW widgets.
Now when I build the application I get a toolbar that is
"transaparent." That is, I see the buttons but the background to the
toolbar captures whatever the screen looks like underneath the new
window.
As usual, it runs fine as a script, but not as a compiled app.
wxPython '2.9.2.1 (msw-unicode)'
Python '2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]'
Windows XP Media Center Service Pack 3
I thought perhaps it was the manifest problem, but I've tried some
solutions with including the manifest template from the wiki, and now
my compiled app refuses to run because it can't find MSCVR90.dll. But
maybe I'm barking up the wrong tree. I've attached my setup.py file
just in case.
## These lines get repeated for the various buttons
tb.AddLabelTool(ID_EMP, "Employees",
wx.ArtProvider_GetBitmap('employees'),
shortHelp = "Employees",
longHelp = "Go to Employee Manager")
tb.Realize()
I've tried cutting out the wx.TB_NOBORDER and wx.TB_FLAT in case these
were causing the problems, but it's a no go.
Okay, I can't find an answer on the web for this. I have built
versions of this application before. I've dressed it up with plate
buttons and a toolbar and a few of the AGW widgets.
Now when I build the application I get a toolbar that is
"transaparent." That is, I see the buttons but the background to the
toolbar captures whatever the screen looks like underneath the new
window.
As usual, it runs fine as a script, but not as a compiled app.
This almost always means that there is a problem with the manifest, it is not activating the themed common controls for some reason.
wxPython '2.9.2.1 (msw-unicode)'
Python '2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]'
Windows XP Media Center Service Pack 3
I thought perhaps it was the manifest problem, but I've tried some
solutions with including the manifest template from the wiki, and now
my compiled app refuses to run because it can't find MSCVR90.dll. But
And this means that you should probably be including the Microsoft.VC90.CRT assembly in your application bundle.
Is this the example you followed on the wiki? py2exe-python26 - wxPyWiki It looks like maybe it was, but there is no mention of the manifest anywhere in your setup.
Other options would include using GUI2Exe as a setup.py "editor", and let it generate the content of the setup.py file for you. You may also want to look at Esky. It is a lot more than just an executable builder, and it just uses py2exe (or others) under the covers, but it does handle the tricky manifest and C runtime assembly stuff for you. I've been playing with an example to include with the next release, you can see it here: wxTrac has been migrated to GitHub Issues - wxWidgets
I did use this, and the final application couldn't find the MSCVR90.dll.
I'd love to solve it with GUI2EXE, but every copy of it I download
freezes. It has a bunch of "wx.Color" declarations that give my
computer the willies.
I will try it again.
Josh
···
On Tue, Sep 6, 2011 at 11:45 AM, Robin Dunn <robin@alldunn.com> wrote:
On 9/5/11 10:37 PM, Josh English wrote:
Okay, I can't find an answer on the web for this. I have built
versions of this application before. I've dressed it up with plate
buttons and a toolbar and a few of the AGW widgets.
Now when I build the application I get a toolbar that is
"transaparent." That is, I see the buttons but the background to the
toolbar captures whatever the screen looks like underneath the new
window.
As usual, it runs fine as a script, but not as a compiled app.
This almost always means that there is a problem with the manifest, it is
not activating the themed common controls for some reason.
wxPython '2.9.2.1 (msw-unicode)'
Python '2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit
(Intel)]'
Windows XP Media Center Service Pack 3
I thought perhaps it was the manifest problem, but I've tried some
solutions with including the manifest template from the wiki, and now
my compiled app refuses to run because it can't find MSCVR90.dll. But
And this means that you should probably be including the Microsoft.VC90.CRT
assembly in your application bundle.
Is this the example you followed on the wiki? py2exe-python26 - wxPyWiki It looks like maybe it was, but
there is no mention of the manifest anywhere in your setup.
Other options would include using GUI2Exe as a setup.py "editor", and let it
generate the content of the setup.py file for you. You may also want to
look at Esky. It is a lot more than just an executable builder, and it just
uses py2exe (or others) under the covers, but it does handle the tricky
manifest and C runtime assembly stuff for you. I've been playing with an
example to include with the next release, you can see it here: wxTrac has been migrated to GitHub Issues - wxWidgets
I did use this, and the final application couldn't find the MSCVR90.dll.
Add it to the list of DLLs that py2exe should exclude. It will be included as part of the Microsoft.VC90.CRT assembly instead.
I'd love to solve it with GUI2EXE, but every copy of it I download
freezes. It has a bunch of "wx.Color" declarations that give my
computer the willies.