If you make sure your widgets are using setObjectName(), you could possibly look up the widgets by name like so to make sure only on instance is running: for widget in QtGui.QApplication.allWidgets() name = widget.objectName() if 'myWidgetName' in name: print name, type(widget)
I think the registered panel will be of class <class 'PyQt4.QtGui.QDialog'> and the widget the PyCustom_Knob is pointing to <class 'PyQt4.QtGui.QWidget'> As far as I can see, the panel and widget object will be destroyed when the panel is closed. Johan On 24/10/13 13:40, Frank Rueter wrote:
Hi all, |
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python