Andrus wrote:
How to include dabo icons to exe file using py2exe?
Dabo uses --bundle 1  but icons are not included into exe.

If you take a look at your setup.py which the appwizard generated, there's a line that reads:

_appIcon = None

Change that to a path that contains an ico file for your app, and it'll get bundled into the exe for you. This is done later on, in the line that reads:

self.icon_resources=[(1, _appIcon)]

However, it sounds like you'd rather have all the image resources (the arrows and toolbar icons, etc.) bundled up instead of shipped as data files. I'm not sure how to do that but you can try tweaking with the options sent to setup.py and if you find a way to make it work, let me know and I'll include it as an option in the future.

Using self.icon_resources as in the above would work to get the resources into the exe, however the runtime Dabo wouldn't know how to get the resources out of the exe in order to use them, for example to add the left arrow to the navigation toolbar.

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to