Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はpy2appを使用して.appを作成し、GUIはpyqt4で作成され、ボタンの1つにtiの画像がありますが、アプリを実行すると画像が表示されず、端末で実行すると表示されます。私はこれを解決しますか?
前もって感謝します
python setup.py py2appを起動すると、2つの追加の引数を渡すことができます。
--iconfile path/to/icon.icns --resources path/to/other/required/stuff
最初のアイコンではドックとアプリのアイコンを設定し、2番目のアイコンでは他の必要なリソースを.appフォルダーに埋め込んで、アプリの起動時にそれらを利用できるようにします。