Window Layer read only?

I had a project I upgraded from 7.3.X to the latest (7.4.3). In it, I was writing to the window layer via a script to bring a window to the top or push it back, without actually closing it. My script now give an error about how the layer attribute is read only. Did something change? Is this intentional?

What is the error? Can you post the details here?

See attached. THere is a button that attempts to set the layer of the window.
layer_test.proj (4.16 KB)

I was able to look at this and found a solution. Try the code below and see if it works out for you

value = 6 event.source.parent.parent.parent.parent.setLayer(value)