[Python] Unwanted Python/Tkinter transparency

Discussão em 'Python' iniciado por Stack, Junho 2, 2025.

  1. Stack

    Stack Membro Participativo

    I've had to move a UI developed in Python/Tkinter to a new environment. Every icon/image/etc that is rendered is now transparent and has a corrupted look to it. Moving the UI to an empty/blank part of the desktop is the only way to see things clearly (this is not an adequate workaround). There is no code involving alpha. Explicitly setting alpha has no effect. This transparency/corruption extends to bundled windows such as filedialog's askopenfilename and messagebox's askyesno or showerror.

    The working environment is RHEL 8.10, python 3.7.1, tkinter 8.6, matplotlib 3.5.2 and PIL 9.2.0.
    The "bad" environment is RHEL 8.10, python 3.11.11, tkinter 8.6, matplotlib 3.10.3 and PIL 11.2.1.

    The versions are fixed and cannot be upgraded or downgraded in either environment. Are there os config/environment or some other settings I should be looking at to explain (and ideally fix) this phenomena?

    Continue reading...

Compartilhe esta Página