I think PySide requires you to call the parent constructor directly: super (skinWrangler, self).__init__ (mayaMainWindow)
On Sunday, April 14, 2013, Christopher Evans wrote: > I am getting this error, but the code looks kosher. It's complaining that > I am feeding it a PySide.QtGui.QDialog(), but this is what it says it takes > in the docs.. > > # TypeError: 'PySide.QtGui.QDialog' called with wrong argument types: > # PySide.QtGui.QDialog() > # Supported signatures: > # PySide.QtGui.QDialog(PySide.QtGui.QWidget = None, > PySide.QtCore.Qt.WindowFlags = 0) # > > class skinWrangler(QtGui.QDialog): > def __init__(self, parent=None): > ptr = mui.MQtUtil.mainWindow() > mayaMainWindow = self.wrapinstance(long(ptr), QtCore.QObject) > QtGui.QDialog.__init__(self, parent=mayaMainWindow) > > -- > CE > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]<javascript:_e({}, > 'cvml', > 'python_inside_maya%[email protected]');>. > To post to this group, send email to > [email protected]<javascript:_e({}, 'cvml', > '[email protected]');> > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Technical Director @ DreamWorks Animation -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
