I just started adapting some older UI code to use with instead of setParent but I've found it doesn't work with flowLayouts. Works fine with rowLayout, columnLayout and window
The error is:
TypeError: 'str' object does not support the context manager protocol