Vordok
Vordok

Reputation: 330

pyqt4 Button image doesnt appear in .app

I create an .app using py2app, and the GUI was made with pyqt4, and one of the buttons has an image on ti, but when i run the app the image doesnt appear and when i run it on the terminal it appears, how can I solve this?

Thank you in advance

Upvotes: 0

Views: 225

Answers (1)

Nicolò Borghi
Nicolò Borghi

Reputation: 26

when you launch python setup.py py2app you can pass two extra arguments:

--iconfile path/to/icon.icns 
--resources path/to/other/required/stuff

With the first one you set the Dock and App icon, with the second one you embed other needed resources into the .app folder, so that they are available when the app is started.

Upvotes: 1

Related Questions