On 01/04/2011 14:14, Bertrand Lempereur wrote:
I'm looking for a way of creating a Panel that can only be created once
like the "Properties Bin".
What i did until now is to populate the panel in the register and check
if it exist or not and it work until the panel is close, i can't open it
anymore. I didn't find any informations about Pane closing callback that
could let me unregister it.

Or maybe there is an easiest way of doing?

You can create a singleton or use the Borg pattern. See:

http://stackoverflow.com/questions/31875/is-there-a-simple-elegant-way-to-define-singletons-in-python

HTH


--
Wouter Klouwen, Software Engineer
The Foundry, 6th Floor, The Communications Building,
48 Leicester Square, London, WC2H 7LT, UK
T: +442079686828 - F: +442074341550 - thefoundry.co.uk
The Foundry Visionmongers Ltd - Reg.d in England and Wales No: 4642027
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to