If you don't have access to the source for your PySide/PyQt UI to create a
subclass/code modification, you should check out the source for
registerWidgetAsPanel (in nukescripts.panels). All it does is create a small
PythonPanel subclass, embed the UI in a PyCustom_Knob object, and then call
some registration code. You could easily duplicate this yourself, or roll
your own registerWidgetAsPanel function that accepted an optional
preconstructed panel class.
-Nathan
-----Original Message-----
From: Adam Wierzchowski
Sent: Sunday, August 26, 2012 7:43 AM
To: [email protected]
Subject: [Nuke-python] Callback for panel.show()
Hi,
I'd like to execute my function every time panel is shown. Update
controls etc. How can I attach custom callback for show event? Is it
possible?
Panel is created with registerWidgetAsPanel function.
regards
Adam
_______________________________________________
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