I use wxpython and I try to add an icon to my application. However, The icon isn't shown in the taskbar only at the left side of the application. I use wxpython 4.0.7 . I used before another version of wxpython and it worked. some one knows why it doesn't work? This is my code:
import wx
ICON = "icon_path"
app = wx.App()
frame = wx.Frame(None, -1, title='2', pos=(0, 0), size=(500, 500))
frame.SetIcon(wx.Icon(ICON, wx.BITMAP_TYPE_ICO))
frame.Show(True)
app.SetTopWindow(frame)
app.MainLoop()