Cannot override and widget that is a variable

Hello,
I have a class, has a variable name widgetwindow, type is User Widget.
I set the default widgetwindow on the class to mydefaultwidget.
Create 3 children and override the variable with their own user widget.
It shows and works once, then I do know how all the children variable are back to None and then nothing works naturally.

Is it not possible to override user widgets variables?

Thank you for any help.

In each of the child widget’s pre construct. Set the class reference to the child widget’s value.


And make sure parent widget doesn’t have functions that child widgets may call that modify this.

Thank you, will try that.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.