Displaying Images Using Label | Python Tkinter GUI Tutorial In Hindi #5

preview_player
Показать описание


Best Hindi Videos For Learning Programming:

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

I am watching in this playlist in 2023 and this course is very knowledgeable & help full for me 😊😊😊❤❤❤

stknowledge
Автор

Hello sir. I'm a fan of ur programming, I'm unable to follow ur challenges and all but frankly u are helping me alot with my work and ur videos help me coming out from the problems I'm facing.

amaanhasan
Автор

I accept the challenge sir.
Here is my code i am trying to make my code scalable as much as possible as you said in your python for beginners course.

from tkinter import *
from PIL import Image, ImageTk
import os

root = Tk()
root.geometry('350x200')
files = os.listdir()

# For all types of images
x_cord = 0
y_cord = 0

for file in files:
if file.endswith(".jpeg") or file.endswith(".png") or file.endswith(".jpg"):
image = Image.open(file)
resize = image.resize((50, 50))
photo = ImageTk.PhotoImage(resize)
lab = Label(image=photo)
lab.place(x=x_cord, y=y_cord)
lab.image = photo
x_cord += 50 # Increment x-coordinate instead of y-coordinate

root.mainloop()

AnkushSaral
Автор

Have greatfull to you sir giving all courses free of cost. It will help poor children, in other way to samaj seva. I salute you

subhamkumar
Автор

bhai answer comment karta lekin python jaha se seekha thha waha OS module ke bare me nahi bataya thha😂.

ab apki playlist dekh ke aunga wapas

siddhapandeypanigrahi
Автор

Couldn't open"image file name.png" no such directory error AA Raha hai

uziking
Автор

The answer of the quick Quiz is :-

from tkinter import *
from PIL import Image, ImageTk
root = Tk()

root.minsize(768, 455)
Heading = Label(text = "My New Album..")
Heading.pack()
image = Image.open("PHOTO1.JPG")
image1 = Image.open("PHOTO2.jpg")
image2 = Image.open("Photo3.jpg")
image3 = Image.open("Photo5.jpg")
image4 = Image.open("Phto4.jpg")

photo = ImageTk.PhotoImage(image)
photo1 = ImageTk.PhotoImage(image1)
photo2 = ImageTk.PhotoImage(image2)
photo3 = ImageTk.PhotoImage(image3)
photo4 = ImageTk.PhotoImage(image4)

image_label = Label(image = photo)
image_label1 = Label(image = photo1)
image_label2 = Label(image = photo2)
image_label3 = Label(image = photo3)
image_label4 = Label(image = photo4)

image_label.pack()
image_label1.pack()
image_label2.pack()
image_label3.pack()
image_label4.pack()

root.mainloop()

adityapatil
Автор

Thank U so much
for giving much valueable things in free
much love and respect😘
from Pakistan, Sindh

Imaginary_World-km
Автор

from tkinter import *
import os

suraj_root = Tk()


for root, dirs, files in os.walk("/img"):
for file in files:
if file.endswith(".png"):


suraj_root.mainloop()

SurajSingh-mfvz
Автор

I'm your great fan, you made programing very simple and understandable for all non-technical people. Good luck (Danish from Denmark)

mainalinavrai
Автор

Wonderful tutorial, easy to follow. I learnt a lot from your video. Thanks for such a wonderful content.

RoshanAliAcademy
Автор

I am going to learn how to read images using os moduoe right now !!

shubhankgupta
Автор

I wish you were my programming teacher in my university..

samrayousaf
Автор

If you are using new version of tkinter to this you need to copy and paste the whole path of the image and type 'r' in the syntax. for eg

image =

mukundchoudhary
Автор

can u tell me which computer or laptop do you use for programming which processor, ram,hdd,etc....
one favour please make a video on setup tour that we can see which gadgets are used by u...

riteshsingh
Автор

please make a discord group
for your channel where we can more easily and efficiently interact

AliHussain-sjcb
Автор

Bhaiya I accepted that challenge and now i complete in 2 days os
from tkinter import *

from PIL import Image, ImageTk

for i in os.listdir("exercise"):
print(f'This is {i}')
print('Is that
root = Tk()
root.geometry("720x720")
pathing = i
my_photo =
img_lable = Label(image = my_photo)
img_lable.pack()
root.mainloop()

surushaw
Автор

You are awesome harry bhai keep up the good work .You are my ultimate source of python gyan.

Sumit-yndn
Автор

Thank you Harry bhai Mai apki wajh se coding freemai sikh paya

lifeturn
Автор

how to set the size of image that we have added??

shivampawar
visit shbcf.ru