The solution to this is a little tricky, but if you follow this video you will get it finally. I tried different solutions and put it into practise... so let’s see how to make one exe file containing our code for a python app, including the images into the exe file... cool!
The post for this topic:
My Blog with a loto of example with python, tkinter, pygame, sublime text etc.
My github repositories
Remember to call your images with the function resource_path
# =============== copy this code =========================
def resource_path(relative_path):
“““ Get absolute path to resource, works for dev and for PyInstaller “““
base_path = getattr(
sys,
’_MEIPASS’,
((__file__)))
retur
0 views
1550
558
4 years ago 00:11:54 13
Multiprocessing in Python
6 years ago 00:02:47 9
Hello World in Python || Python Tutorial || Python Programming
8 years ago 00:06:34 141
Sets in Python || Python Tutorial || Learn Python Programming
5 years ago 00:16:50 9
Python In 2020 | What’s New in Python? | Python Tutorial For Beginners | Python Training | Edureka
4 years ago 00:20:41 21
Telegram Bot in Python
4 years ago 00:06:16 8
Function in Python
3 years ago 00:31:52 11
CREATING BITCOIN DEPTH GRAPH IN PYTHON. BINANCE ORDER BOOK IN PYTHON
4 years ago 00:24:27 15
Zoom Clone in Python
3 years ago 00:10:49 11
PyScript - Python In HTML?
6 years ago 00:26:47 10
GraphQL in Python 🍓
3 years ago 00:14:27 14
Сортировка пузырьком в python. Bubble sort in Python