Is it a pop-up QDialog? Is it parented to the QApplication when created?
If yes and yes you should be able to get the children of the QApplication, loop over them until you find matching object name or title and then close it or do whatever you want to do when existing dialog is found. On Jun 7, 2016 20:34, "Fredrik Averpil" <fredrik.aver...@gmail.com> wrote: Hi, I'm creating a simple UI in PySide. Before showing it, I'd like to make sure to delete any such already existing UI. I've been having issues finding out how to achieve this. Has anyone done this and if so, would you like to give some pointers? Cheers, Fredrik _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python