Always the default icon

Heads up! You've already completed this tutorial.

doev | 2020-07-21 08:17:10 UTC | #1

Hello Martin,

the part with the ICON of your PyInstaller tutorial, has no effect. There is the default icon for the executeable and the default icon when the programm is running.

doev | 2020-07-21 14:23:43 UTC | #2

Sorry, I found out, that after renaming the executeable, the icon appears. So it must be some Windows caching problem.

The application icon is missing, cause the ressource is missing, in other words there is no .ico file in the dist-folder.

martin | 2020-07-21 20:35:16 UTC | #3

Hey @doev -- I've seen this before myself. Did you get the correct icon in the end?

In the tutorial where you set the application ID changing this string should also prevent it using the cached icon, although that's only really helpful while developing not in the distributed version.

    myappid = 'com.learnpyqt.examples.helloworld'

The application icon is missing, cause the resource is missing, in other words there is no .ico file in the dist-folder.

Are you still having this problem?

doev | 2020-07-25 17:44:15 UTC | #4

Hello Martin,

I was not so far in the tutorial that I have used the code with the myappid. After I cleard the icon cache, I can reproduce the problem. So, I can't say if the using the code had also helped.

But I can tell you, that I don't need the tweak with the myappid. Everything is ok without using it.

But when I give the app no id, than only the instances that are startet from the same location are grouped in the toolbar. When I give an id, than all instances are grouped together, no matter from where the app was started (ide, dist-folder, onefile).

The complete guide to packaging Python GUI applications with PyInstaller.
[[ discount.discount_pc ]]% OFF for the next [[ discount.duration ]] [[discount.description ]] with the code [[ discount.coupon_code ]]

Purchasing Power Parity

Developers in [[ country ]] get [[ discount.discount_pc ]]% OFF on all books & courses with code [[ discount.coupon_code ]]
Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Always the default icon was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.