I’m having an image display issue
SolvedPr.Witherfire Posted messages 84 Status Member -
Hello. I can’t insert an image. Yet, it works on all the sites, forums, etc. that I’ve looked at. It’s the GIF in all cases (on forums and for me).
The program is supposed, according to an entry, to display images (a bit like a slideshow but with entry). I left a comment #ezhcegzgcygyzgcyg but it was to prevent an error (PyCharm told me the code wasn’t finished)
Code

As you can see, no errors are highlighted.
But....

Here is the result of the compilation. I don’t understand... Thanks.
4 answers
-
Hi,
To define a PhotoImage, it needs a master (object or widget)
You probably misread the sites and forums, I love the
Fenetre.iconphoto
What is it for, when it comes to Entry() and a slideshow...
-
Thank you very much, Fenetre.iconphoto and everything else, it’s for my code in development, sorry. ;)
Goodbye
-
Hello,
"too early to create image: no default root window"
trop tôt pour créer une image: pas de fenêtre racine
Il faut d'abord définir la fenêtre (Fenetre=Tk())
puis charger les images (ImgSymbole = PhotoImage(....))
C'est forcément dans cet ordre
-