How to show two states of a rectangle in PyQt/PySide2

Printable View