On Sat Jan 31 2015 at 12:12:24 AM Marcus Ottosson <[email protected]> wrote:
> cmds.window is not object-oriented > Technically... cmds.window is object-oriented. It is just a unicode object instead of an object representing a "window". ;-) Just messing with ya. If I interpret the question properly, and you want to detect the closing of the window as opposed to running another function and actively checking, maybe the uiDeleted scriptJob would do what you want? http://download.autodesk.com/global/docs/maya2014/en_us/CommandsPython/scriptJob.html#flaguiDeleted That would attach an event between the window closing, and a callback, which would fire when the window is deleted. Windows are deleted by default when they are closed unless they are created with retain=True -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1AqOuJuLcYCwU9Q187VibMP82LmEHrhqJsd8faqK1URQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
