Re: [Nuke-python] Deleting existing PySide UI if it exists

2016-06-07 Thread Timm Wagener
Hey guys, -- here is a link to my recipe for this . I like to specifically subclass a QWidget to search it’s type name in all widgets and kill all matches before the new instance is created. The reaso

Re: [Nuke-python] Deleting existing PySide UI if it exists

2016-06-07 Thread Fredrik Averpil
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. Hehe, tha

Re: [Nuke-python] Deleting existing PySide UI if it exists

2016-06-07 Thread Nathan Rusch
and maybe even calls its .deleteLater() method for good measure. -Nathan From: Fredrik Averpil Sent: Tuesday, June 07, 2016 11:34 AM To: Nuke Python discussion Subject: [Nuke-python] Deleting existing PySide UI if it exists Hi, I'm creating a simple UI in PySide. Before showing it, I&#

Re: [Nuke-python] Deleting existing PySide UI if it exists

2016-06-07 Thread Erik Johansson
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,

[Nuke-python] Deleting existing PySide UI if it exists

2016-06-07 Thread Fredrik Averpil
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 ___