PyQt Inheritance problem


#1

I am working on a tool where I have a PySide UI file and a script file which contains the logic.
The script file inherits the PySide UI class after an import, using this line:

super(MultiDrivenConstraintTool, self).__init__(parent)

It runs fine the first time in maya(through script editor) but when I try to run the second time, I get this error:

global name ‘parent’ is not defined

Why does it happen?

Thanks

Shobhit Khinvasara