Hey Hugo,

yes, that is what we are doing, but once we wrap this to add to a panel, the closeEvent is not triggered anymore...
we are using the methods from nukescripts.panels.

Cheers
Johannes



Am 3/22/16 um 12:22 PM schrieb Hugo Léveillé:
You can user the closeEvent to trap when a panel is closed


from PySide.QtGui import *

class Panel(QWidget):
     def __init__(self):
         super(Panel, self).__init__()

         push = QPushButton("Close me")
         layout = QHBoxLayout()
         layout.addWidget(push)
         self.setLayout(layout)
         push.clicked.connect(self.close)

     def closeEvent(self, QCloseEvent):
         nuke.message("Panel closed")

p = Panel()
p.show()




--
STUDIO RAKETE GmbH
Johannes Hezer, Compositing TD & Stereoscopic SV
Schomburgstr. 120
D - 22767 Hamburg

j.he...@studiorakete.de
Tel:+49 (0)40 - 380 375 69 - 0
Fax:+49 (0)40 - 380 375 69 - 99

------------------------------------------------------
Pflichtangaben laut Handelsgesetzbuch und GmbH-Gesetz:

STUDIO RAKETE GmbH
Schomburgstr. 120 D - 22767 Hamburg

www.studiorakete.de / i...@studiorakete.de

Geschaeftsfuehrer: Jana Bohl

Die Gesellschaft ist eingetragen im Handelregister des
Amtsgerichts Hamburg unter der Nummer HR B 95660
USt.-ID Nr.: DE 245787817



____ ESET 13215 (20160322) ____
The message was checked by ESET Mail Security.

_______________________________________________
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

Reply via email to