I’m having an image display issue

Solved
Pr.Witherfire Posted messages 84 Status Member -  
Pr.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

  1. Diablo76 Posted messages 344 Registration date   Status Member Last intervention   140
     

    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...

    0
  2. Pr.Witherfire Posted messages 84 Status Member
     

    Thank you very much, Fenetre.iconphoto and everything else, it’s for my code in development, sorry. ;)

    Goodbye

    0
  3. Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   169
     

    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

    0
  4. Pr.Witherfire Posted messages 84 Status Member
     

    Thanks a lot

    0