How to set Kivy Icon in PyInstaller

Опубликовано: 25 Июнь 2026
на канале: Kivy School
411
6

github link: https://github.com/kivy-school/kivyex...
PREREQ:    • Kivy: How to Install and Run in Windows 20...  
kivyschool link: https://kivyschool.com/blog/2024/08/0...
presentation link: https://www.canva.com/design/DAGM0b_-...



0:08 Example Hello World with a Discord icon
1:10 set Kivy icon in PyInstaller showcase
2:30 set Kivy icon in PyInstaller instructions
3:03 why you need to add icon to datas line in the spec file
4:51 why current working directory is so important
6:12 progress saved as midpoint.py
6:26 how to tell if your python script is run as a standalone exe
6:59 if hasattr(sys, "_MEIPASS") example
7:22 pathlib line explanation
8:04 why pathlib is good to use for cross platform applications
9:10 run pyinstaller with fixed spec file
9:55 example pathlib/ path.os if your icon was in resources folder
11:11 how to debug your created PyInstaller exe and why importing time is important
14:10 now it works, console and kivy app have the custom icon
14:17 recap


"Voxel Revolution" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
http://creativecommons.org/licenses/b...