[Python] Transparent background in a Tkinter window

Discussão em 'Python' iniciado por Stack, Agosto 5, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a way to create a "Loading Screen" in Python 3.x using Tkinter? I mean like the loading screen for Adobe Photoshop, with transparency and so on. I managed to get rid of the frame border already using:

    root.overrideredirect(1)


    But if I do this:

    root.image = PhotoImage(file=pyloc+'\startup.gif')
    label = Label(image=root.image)
    label.pack()


    the image displays fine, but with the grey window background instead of transparency.

    Is there a way of adding transparency to a window, but still displaying the image correctly?

    Continue reading...

Compartilhe esta Página