You could base64 the image and use the embedded image function from wx to import the module from a python file. That would prevent them from changing the icon.

On Tue, Aug 23, 2011 at 6:15 PM, Peter Irbizon <> wrote:
I would like to incorporate png and icon file into exe and then use it during program run (to show it in about dialog and system tray). How can I do it?
For example now I use self.staticon.set_from_file(os.path.join(module_path(), "icon.ico")) but I would like to prevent user from changeing this icon. Thanks
I found this but it is for wx.

EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.

Py2exe-users mailing list