icono de ventana de Python en la barra de tareas

import ctypes

aumid = u'CompanyName.ProductName.SubProduct.VersionInformation' # must be unicode
# See https://docs.microsoft.com/en-us/windows/win32/shell/appids for information
# And see https://stackoverflow.com/a/1552105/14586140 for why this works
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(aumid)
dex!?