Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tkinter shows a black image on armbian #117603

Copy link
Copy link
Open
@Tuya-samson

Description

@Tuya-samson
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.