Ok great. Thats good to know. Pyqt 4.6 is slightly older than the maya 2011 
docs even suggest (they recommend 4.7.3) so as Jo pointed out in his link its 
probably a keyword arg compatibility issue. 




On Nov 20, 2011, at 11:56 PM, "Kurian O.S" <[email protected]> wrote:

> Yeah Justin thats what the issue , i updated with code like this 
> 
>     def __init__(self, parent=None, **kwargs):
> super(MyDialog, self).__init__(parent, **kwargs)
> 
> then its working and I am using 4.6
> 
> On Mon, Nov 21, 2011 at 1:08 PM, jo benayoun <[email protected]> wrote:
> Hi Justin,
> 
> Actually, I just wrote the function from scratch. Didn't try your 
> implementation. Did it now. It works fine, for me on 2012 (don't have 2011 
> too).
> To be sure my code always run, I call baseclasses with the oldstyle and never 
> make a use of keyword args (to be compatible with older versions of sip).
> The "super" call was mainly designed to resolve baseclasses conflicts in a 
> multiple inheritance case and bringing more features to the metaclass concept.
> I make a cast to QWidget, since this is something I probably do in cpp.
> 
> http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/keyword_arguments.html
> 
> jo
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe
> 
> 
> 
> -- 
> --:: Kurian ::--
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to