I have two different pyApps, and I want to make a task bar Icons. For one I use .ico file and another .png file. The .ico one works but not the .png file. Does it mean I cannot use PNG file to make taskbar icon?
Here is a code that worked in one and failed in the next

This worked

#Set Icon for the program
icon = wx.Icon("./icons/app.ico", wx.BITMAP_TYPE_ICO)
self.SetIcon(icon)

This failed

#App icon
icon = wx.Icon("./icons/app.png", wx.BITMAP_TYPE_PNG)
self.SetIcon(icon)

You can use 32x32 Windows .bmp file instead of .ico file.

So it must be 32x32? what about 16x16 or 24x24?

Thank alot,
It worked with 24x24

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.