Yeah, VERY annoying

Like when you select "Framecycler this", edit the range and hit enter,
it just cancel itself...

Seems to be a linux only bug as far as I remember

On Tue, 24 May 2011 18:40 +0000, "Bernhard Kimbacher"
<[email protected]> wrote:
> Hi,
> 
> when you make a pythonPanel, usually when you simply hit 'enter' on the
> panel, it will default to the 'OK' button.
> 
> however in nuke6.2 it seems to behaves slightly different. if you simply
> create a pythonPanel and hit enter, it will default to ok (so here 6.1
> and 6.2 are the same). if you have a input field (like a String_Knob), it
> will default to 'cancel' after you have entered something in the field
> and hit enter.
> 
> did anybody else run into this issue? below is the sample code i'm using.
> when you run this and only hit 'enter' it should return true. if you
> enter something in the string knob and then hit enter it returns false
> (whereas in nuke6.1 it would return true)
> 
> any way of forcing it to 'OK' as default?
> 
> thanks!
> -Bernie
> 
> 
> ----------
> 
>  import nukescripts
> 
> class testPanel( nukescripts.PythonPanel ):
> 
>     def __init__( self ):
>         nukescripts.PythonPanel.__init__( self, 'testing' )
>         self.addKnob( nuke.Tab_Knob( 'blaaaaaaaa' ) )
>         self.addKnob( nuke.String_Knob( 'test', 'testing'))
> 
>     def showModalDialog( self ):
>         result = nukescripts.PythonPanel.showModalDialog( self )
>         print 'test: %s' % (result)
> 
> test = testPanel().showModalDialog()
> 
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 


-- 
  Hugo Léveillé
  TD Compositing, Vision Globale
  [email protected]

_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to