Hi,
I have some issues with a dynamic background in a standard PythonPart.
I had set 3 « Double » for rebars :
1) As min
2) As real
3) As max
I'd like to be notified if the value is too low or too high.
So, based on the example I had :
…
<BackgroundColor>(255, 0,0) if AsReal < AsMin or AsReal > AsMax else (-1, -1, -1)</BackgroundColor>
…
This works great, but when I close the PythonPart and open it later, the background color disappears until I change one of these values to recalculate.
I don't know how to "refresh" the color calculation when launching the PythonPart.
Best regards