Adding Images To Your Apps - Intro To Tkinter 5

Опубликовано: 26 Март 2024
на канале: Tkinter․com
1,441
56

In this video we'll learn how to add Images to our apps with Tkinter and Python.

Generally, to add an image to your TKinter app you'll create a label, and then add the image to the label.

We'll use the PIL (Python Imaging Library) to add the image to our app and I'll also show you how to resize the image.

I'll also show you how to add images to buttons.

#tkinter #codemy #JohnElder

Timecodes

0:00​​ - Introduction
0:56 - Install and Import Pillow
1:50 - Images Use Labels
2:33 - Open The Image
3:18 - Create PhotoImage
3:53 - Add Image To Label
4:39 - Add Border To Image
5:53 - Resize the Image
6:38 - Make Image a Button
8:02 - Remove Button Border
8:58 - Resize The Button
9:17 - Conclusion


Смотрите видео Adding Images To Your Apps - Intro To Tkinter 5 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tkinter․com 26 Март 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,441 раз и оно понравилось 56 людям.