Tkinter - Embed Image into Python Script

Опубликовано: 18 Октябрь 2024
на канале: JobinPy
1,924
52

I'll show you how to embed images in your Python scripts so that when you distribute a Tkinter application, you won't need to distribute the image files separately - the images will be included within your Python script.

0:00 Intro
1:10 The advantage
1:41 Starter code
2:02 The icon images
2:24 Convert to base 64
5:34 Load image from base 64
6:38 Show text beside image
6:55 Add image to exit button
8:09 Demo app
8:33 Disadvantage of base 64
9:59 Closure

#tkinter #pythongui #pythonguitutorial #pythonprogramming