Why TKinter Label not showing image ? SOLVED | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Why TKinter Label not showing image ? SOLVED

I want to show img.jpg with help of TKinter and PIL Module but this is not working When I execute program it show nothing on screen https://code.sololearn.com/cYvUjVjpFXh9/?ref=app Thanks to all who helped Now problem has been resolved Working code is here : https://code.sololearn.com/cSf0hglQM0P2/?ref=app Solution is here : https://stackoverflow.com/a/63599265/15835134 Edit 1: I'm using PyDroid on Android device and TKinter is Supported there But also in PyDroid it is not showing me any Output Edit 2: When we run program with line by line executive it's working But when we use function call to do the same it's not working https://code.sololearn.com/cXJoUckEc8d0/?ref=app

16th May 2021, 12:08 PM
Sahil
Sahil - avatar
9 Answers
+ 2
Problem has been solved Thanks to all who helped Working program is here : https://code.sololearn.com/cSf0hglQM0P2/?ref=app Reason is here : https://stackoverflow.com/a/63599265/15835134
16th May 2021, 2:01 PM
Sahil
Sahil - avatar
+ 1
Hi, it's because Tkinter is not supported in Sololearn you can try in Pydroid3 or in your desktop
16th May 2021, 12:21 PM
Abhiyantā
Abhiyantā - avatar
+ 1
How To Upload your phone images on SoloLearn using phone https://code.sololearn.com/WT3661NHpV3B/?ref=app Upload content with Dropbox [Tutorial] https://code.sololearn.com/WW6t4B73kJVz/?ref=app How to host/upload an image (IMGBB way) /by Farhanaz/ https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app Upload content with Google drive https://code.sololearn.com/Wa25A17a19a1/?ref=app
16th May 2021, 12:22 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Yaroslav Vernigora He is talking about Python!! NOTE - install Pillow Module Sahil Save in same directory wait, let me try
16th May 2021, 12:27 PM
Abhiyantā
Abhiyantā - avatar
+ 1
I can see that he is asking for python, but how to post pictures and use them he also asked. the program returns an error at the end and writes that the source directory and file were not found. this means that a gever link to the image is used
16th May 2021, 12:35 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
16th May 2021, 12:38 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
https://www.sololearn.com/post/1088952/?ref=app OUTPUT - https://www.sololearn.com/post/1088953/?ref=app Well, I tried to see !!image is showing but I also don't know that why in function it's not showimg even after calling!! Yaroslav Vernigora Sololearn's py is making us hard worker , 1) upload 2) install 3) use with limited 🤣🤣 Sahil I prefer to use Tkinter in Pydroid3 or your system
16th May 2021, 12:43 PM
Abhiyantā
Abhiyantā - avatar
+ 1
Traditional Tactician But why the function call is not working I have to display a bunch of images with this program Can you please explain me reason or suggest me any alternative approach to gain this And Thank you so much for your help
16th May 2021, 12:58 PM
Sahil
Sahil - avatar
0
I'm using pydroid on android device and TKinter is supported there but also in pydroid it is not showing any output
16th May 2021, 12:23 PM
Sahil
Sahil - avatar