Search code examples
pythonwindowsiconswxpythonipython

Replace IPython menu icon


I'm using Anaconda Python 2.7 and Gooey (wxPython wrapper) to create a simple, interactive GUI in Windows 7. When I run my code, the GUI pops up and the IPython icon is shown on the menu bar.

enter image description here

I'd like to replace this icon with one of my own. I've tracked down the file to

C:\Anaconda2\info\recipe\IPython.ico

which I've replaced with my own .ico file. But despite the replacement, the IPython icon remains. I've tried restarting the computer, as well as replacing with verified valid .ico files.


Solution

  • Ok, my knowledge on all of this is slim, but my guess would be that the image must also be stored somewhere else. If this is not in a file (as I guess you have already searched for those), then this could mean that the .ico file you found might have been translated into a base64 python image. I personally use wxPythons img2py to achieve such a thing. Maybe Gooey uses this as well? You should be able to find the base64 code in some of your projects .py files. My guess would be images.py.

    If you would change it with the base64 code of another ico file that can be generated (for example) by img2py you might be up for a winner.