Skip to content

tkinter shows a black image on armbian #117603

Open
@Tuya-samson

Description

@Tuya-samson

Bug report

Bug description:

this is my code

from tkinter import Tk, Label, PhotoImage

class MyApplication:
    def __init__(self, root):
        self.root = root
        self.img = PhotoImage(file="imgs/0.png")  
        self.label = Label(self.root, image=self.img)
        self.label.pack()

root = Tk()
app = MyApplication(root)
root.mainloop()

The same code, in the windows environment, the display is normal, but on armbian, the display is black image.
When I resize the window, the images are displayed correctly again

armbian environment:
python3.10
tkinter 8.6
desktop xfce

IMG_6292
IMG_6291

please help me. thank you

CPython versions tested on:

3.10

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions