HOM Cookbook Qt
HOM cookbook Qt
A PySide2 window only exists as long as there is a reference to it in Python. When you are writing your own code, if you create a window inside a function, and don't store it somewhere persistent in memory (such as hou.session), the window will disappear when Python garbage collects the window at the end of the function.
Qt Designer Example
These day's nobody doubts, that the ability to write even simple scripts it's a huge benefit for a CG artist. Why then it's not that common for artists to be able to code? Probably there is only one main reason: people thinking that coding is hard and requires a special gift.