Home > OS >  Changing a label's text is not working properly on transparent widgets
Changing a label's text is not working properly on transparent widgets

Time:12-20

This seems like a bug, but I wanted to confirm before reporting it.

I am trying to update a label's text on a transparent widget, but for some reason the previous text is partially visible (see screenshot below)

Did any one face this issue before? Is there any known workarounds?

System Specs: MacOS Monterey 12.0.1 and Python 3.10

Picture on White BackgroundScreenshot

Might be a macos bug as I do not get this error.

CodePudding user response:

Not sure it could be considered an answer, but I found a workaround.

Simply close then show the window again:


def update_label():
    window.close()
    window.show()
    l1.setText('Bye!')

  • Related