How to customize the application icon displayed in the Alt-Tab dialog when switching tasks in Windows?

How to configure the icon for the application wxpythonon Windows, which is displayed in the dialog Alt-Tabwhen switching between applications?

The application icon in the menu bar and corner of the working application shows my icon, but when I switch between applications using Alt-Tab, I see the default square with a blue outline.

Do I need to do something extra for my icon to display in the Alt-Tab dialog box or should my icon have special permission?

In my initializer of my class, the installation icon is:

class A(wx.Frame):
    def __init__(self,parent,id,title):
        wx.Frame.__init__(self,parent,-1,title,size=(265,434))
        favicon = wx.Icon('C:\source\python\gui\gf.ico',
                           wx.BITMAP_TYPE_ICO, 16,16)
        wx.Frame.SetIcon(self,favicon)
+3
source share
1

:

self.icon = wx.Icon(fn, wx.BITMAP_TYPE_ICO)
self.SetIcon(self.icon)

fn (16, 32 48, ).

,

    wx.Frame.SetIcon(self,favicon)

    self.SetIcon(favicon)

16 wx.Icon , .

+5

Source: https://habr.com/ru/post/1777588/


All Articles