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)

This failed

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

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