from your knobChanged(self, knob) method you can simply check if knob.name() == 'exit' and then call self.finishModalDialog(True)
- josh On Mon, May 21, 2012 at 4:16 PM, Howard Jones <[email protected]> wrote: > sounds like the same question as my one, any takers? (i'd tried the same) > > Howard > > ________________________________ > From: andi <[email protected]> > To: [email protected] > Sent: Monday, 21 May 2012, 15:57 > Subject: [Nuke-python] what python script to kill nukescripts.PythonPanel > instance. > > I create a custom panel using nukescripts.PythonPanel. > > class mypanel(nukescripts.PythonPanel): > > > then calling : > x=mypanel() > x.show() > > I want to add an 'exit' button to the panel. i tried using pythonscript > button, but then i don't know what python code to use to kill the panel. I > tried something like kill() or close() which didn't work. Anyone can help ? > > THanx > > _______________________________________________ > 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 > _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
