Skip to content
Advertisement

is there any way to pass existing label to another class to make it blink

  • I have some labels which I want to make them blink in some cases, and stop blinking with specific color for their styleSheet on other cases.
  • I have seen this useful answer, and adapted this part from the answer:
JavaScript

I have created some labels on my main window with specific geometry and etc like:

JavaScript

My Question is:

How can I pass the label from the MainWindow class and the foreground, background colors to the first class to be animated in two modes blinking/non-blinking? thanks in advance.

Edit:

here is the final GUI shape, and the squares are the labels I want to make them blink. enter image description here

Advertisement

Answer

Thanks to @eyllanesc and @musicamante for their valuable notes the solution was:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement