0

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)
2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by Stefano Mtangoo
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.