app looks different when run from command line versus py2exe

I have a Mac app that uses py2app. I have now used py2exe to get it to
run on Windows (a little bit trickier due to various DLL issues).

If I run the python app from the command prompt ('python myapp.py
myargs') on Win-7, I get nice progress bars with a nice green gradient.
If I run the .exe file (generated with py2exe) the program looks
different. The progress bars are blue and in blocks.

Does anyone know why this is the case ??

Is it a runtime library issue ??

Cheers, Brendan.

···

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

I think it has something to do with the 'bundle_files' option in py2exe.

If set to '3' (default), none of the dependencies are included in the
.exe and I get the nice green progress bar.

If set to '1' (include all dependencies in .exe) or '2' (include all
dependencies except python interpreter), then I get the ugly blue blocky
progress bar and ugly widgets.

I guess this is probably a py2exe issue and should ask elsewhere, but
I'm sure wxpython users are probably familiar with this problem.

Brendan.

···

On 21/05/10 9:02 PM, Brendan Simon wrote:

I have a Mac app that uses py2app. I have now used py2exe to get it to
run on Windows (a little bit trickier due to various DLL issues).

If I run the python app from the command prompt ('python myapp.py
myargs') on Win-7, I get nice progress bars with a nice green gradient.
If I run the .exe file (generated with py2exe) the program looks
different. The progress bars are blue and in blocks.

Does anyone know why this is the case ??

Is it a runtime library issue ??

Cheers, Brendan.

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

I'm pretty sure you're not including the manifest file. I think you
include it like this:

other_resources = [(24, 1, manifest_template)]

Personally, I use GUI2Exe to build my binaries. It has a little
checkbox that I check to add the manifest file. Anyway, the manifest
file has the magic in it that tells wxPython about themes and such.
Without it, your apps looks like they were made with Windows 2000 in
mind.

···

On May 21, 6:16 am, "Brendan Simon (eTRIX)" <brendan.si...@etrix.com.au> wrote:

I think it has something to do with the 'bundle_files' option in py2exe.

If set to '3' (default), none of the dependencies are included in the
.exe and I get the nice green progress bar.

If set to '1' (include all dependencies in .exe) or '2' (include all
dependencies except python interpreter), then I get the ugly blue blocky
progress bar and ugly widgets.

I guess this is probably a py2exe issue and should ask elsewhere, but
I'm sure wxpython users are probably familiar with this problem.

Brendan.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Yes. That was it :slight_smile:

Thanks, Brendan.

···

On 22/05/10 2:20 AM, Mike Driscoll wrote:

On May 21, 6:16 am, "Brendan Simon (eTRIX)" > <brendan.si...@etrix.com.au> wrote:

I think it has something to do with the 'bundle_files' option in py2exe.

If set to '3' (default), none of the dependencies are included in the
.exe and I get the nice green progress bar.

If set to '1' (include all dependencies in .exe) or '2' (include all
dependencies except python interpreter), then I get the ugly blue blocky
progress bar and ugly widgets.

I guess this is probably a py2exe issue and should ask elsewhere, but
I'm sure wxpython users are probably familiar with this problem.

Brendan.

I'm pretty sure you're not including the manifest file. I think you
include it like this:

other_resources = [(24, 1, manifest_template)]

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en