the only workaround i found is to add my own ok-button (but no cancel button)
like this:
self.okButton = nuke.Script_Knob( "OK" )
self.addKnob( self.okButton )
with this you only have one button it can default to, and you can use the X as
cancel...
-Bernie
________________________________
From: [email protected]
[[email protected]] on behalf of Hugh
[[email protected]]
Sent: Tuesday, May 24, 2011 2:04 PM
To: [email protected]
Subject: [Nuke-python] Re: pythonPanel default button?
This one has been catching me out a few times recently, on our render
submission panel...
I'd love to hear any solutions - I'm considering writing a new panel class that
will let me do more with the buttons, including defining (if the slightly lower
level will let me) the defaults for ENTER and ESC.
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python