I am trying to set an icon in my wxpython program. So far, after reading many pages and examples, I was able to set an icon at the window, which also works when using alt+ta
Both TyrantWave's and mine answers are true under specific circumstances. It depends on Windows 7 settings:
When labels are hidden, the icon does not seem to be set:
With labels shown it works just fine as expected: