looking at your example "widget" does not seem to be defined in the correct name space.
can you put together a simple example and post the complete code?


On 15/05/12 5:14 AM, Bryan Dunkley wrote:
Hi,

I'm having trouble trying to get my widget to be created and added to a Pane using a button. I have it creating the pane with the correct name and everything I just get a name error when it tries to create the widget.

eg.

def openNewPane(self):
panels.registerWidgetAsPanel('widget', "widget test", "bla.bla.widget", True).addToPane("properties.1")
.....
button.clicked.connect(openNewPane)
...

that would give me a name error of "widget" is not defined.



_______________________________________________
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

Reply via email to