I think you're pretty spot on Michael. It seems Maya was refreshing it's
own windows, and my stuff was getting attached. I was to blame, but that
hierarchical ui parenting, I can't say I'm a fan of. I actually ended up
switching it to Qt and doing it much more rigid and explicit, and it works
Just a guess: you seem to be relying on Maya's UI context when you create
your layout in listFiles. I mean, you delete any existing scrollLayout,
then you create a new one, but I don't see anything that ensures the new
scrollLayout will be created in your window. If Maya has created new UIs
Did you end up figuring this out? You listed a lot of unwanted behaviours
happening, at all once. I am not sure why your UI would clear when you
create a new scene. You do seem to be using a relative root TMPDIR path, so
I am not sure of your cwd is changing over time making these paths invalid.