[Maya-Python] Re: MayaQWidgetDockableMixin dockCloseEventTriggered not called

2018-11-05 Thread kiteh
Actually I was wrong - I had thought that using `self.closeEvent` may works in Maya 2018, but turns out it is not. Need any insights on this. Much appreciated in advance! -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.

[Maya-Python] Re: MayaQWidgetDockableMixin dockCloseEventTriggered not called

2018-11-05 Thread kiteh
I managed to have find a resolution. Instead of using `dockCloseEventTriggered`, using of `closeEvent` seems to have resolve it. I have to write my UI create code to include something as follows: self.ui.closeEvent = self.closeEvent And this seems to be picking up in both Maya 2017 and 2018. Or