Тёмный

Using images in tkinter [ including how to scale them ] 

Atlas
Подписаться 10 тыс.
Просмотров 29 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@andc5457
@andc5457 Год назад
You are one of the best python teachers I have encountered to date
@v4nixd
@v4nixd Год назад
Damn bro, how does this channel have only 920 subs, with these damn cool videos?
@diver2048
@diver2048 Год назад
There was an old PIL library for image manipulation in python2. Pillow is newer fork of it, written in python3. So library is pillow, but "import PIL ..." for compatibility))
@lewisheslop9339
@lewisheslop9339 11 месяцев назад
Note: When a PhotoImage object is garbage-collected by Python (e.g. when you return from a function which stored an image in a local variable), the image is cleared even if it’s being displayed by a Tkinter widget. To avoid this, the program must keep an extra reference to the image object. A simple way to do this is to assign the image to a widget attribute, like this: label = Label(image=photo) label.image = photo # keep a reference! label.pack() This is alternative way to do it instead of using global variable.
@chillwithcode2987
@chillwithcode2987 Год назад
Thankyou for bringing this kind of videos 🎉
@w9xv_433
@w9xv_433 8 месяцев назад
Amazing video, this was a huge help!
@graziadeigatti
@graziadeigatti Год назад
Thanks!! Really good explanation!
@stifenjans4342
@stifenjans4342 Месяц назад
Is there anyway to make the picture smaller and to size fixed position?
@benedict0902
@benedict0902 5 месяцев назад
I have pillow already installed but it says pillow cant be defined, why s=is this happening? im very new tocoding
@autarroy
@autarroy Год назад
Very good video Was looking for long time I have a question I have a folder with 25 photos. I want the images with even number must come in canvas A and the images with odd numbers must come in canvas B. Can you make a video or help me to code that Waiting for your reply
@CocoForBird
@CocoForBird Год назад
If your photos are named like 1.png 2.png etc then you could just loop through the images and do something like If int(image_name[0]) % 2 == 0 then it’s even and you know to display it in canvas A. Otherwise, display it in canvas B. Something like that. Essentially, extract the number from the filename and do mod 2 in order to see if it’s even or odd.
@ПетроИванович-в7ъ
@ПетроИванович-в7ъ 3 месяца назад
Cool video
@awildmoose6798
@awildmoose6798 5 месяцев назад
Great video
@rolandojtorres
@rolandojtorres 6 месяцев назад
tkinter puede leer por defecto png files o gif files o pnm o ppm files. pillow solo se usa para leer jpg o tiff.
@galedex5661
@galedex5661 7 месяцев назад
The one answer i was looking for and it is left as training exercise... i guess i have to look somewhere else
@ClearAtlas
@ClearAtlas 7 месяцев назад
I am solving it myself, just wait 3 seconds
@rolandojtorres
@rolandojtorres 6 месяцев назад
no trates de entender tkinter si no sabes tcltk antes. python no ejecuta tkinter, es tcl el que ejecuta tkinter.
@mitch_the_-itch
@mitch_the_-itch Год назад
Like Communism this all works great in theory. In practice is is always a complete disaster. "Error: Cannot import ImageTk from PIL." OF COURSE....
@ruyqxei
@ruyqxei 6 месяцев назад
mine is like too im gonna cry
@ПетроИванович-в7ъ
@ПетроИванович-в7ъ 3 месяца назад
this
Далее
Animated images in tkinter
32:35
Просмотров 10 тыс.
Using tkinter with classes
28:23
Просмотров 69 тыс.
Coding a Web Server in 25 Lines - Computerphile
17:49
Просмотров 341 тыс.
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,6 млн
An overview of tkinter layouts
18:02
Просмотров 15 тыс.
Images in CustomTkinter - Tkinter CustomTkinter 17
7:34