I ended up creating a OnScriptClose callback to kill threads/save settings etc but it would be nice if the close signal was sent by nuke when it shut down.
micah ----- Original Message ----- From: "Dennis Martin" <[email protected]> To: "Nuke Python discussion" <[email protected]> Sent: Wednesday, January 18, 2012 1:02:02 PM Subject: [Nuke-python] pyqt inside a python panel doesn't get close signal I have a large pyqt program that is multi-threaded that I am trying to run as a python panel. On closing this program, all the threads it created need to be killed. I handle this in the standalone version with: self.connect(self, SIGNAL('triggered()'), self.closeEvent) Where closeEvent simply kills all my threads. This works fine when I run the program standalone or launched from a menu inside Nuke. The problem is when I make this into a python panel the pyqt instance no longer gets any signals when the panel is closed. I have used registerWidgetAsPanel to load the program as a panel: nukescripts.registerWidgetAsPanel('eep_assetBrowser.MyWindow', 'Asset Browser', 'com.eep.testWindow',create = True) So the question is how can I get the python panel to send a signal to the pyqt instance when it is closed? -- Dennis A Martin _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
