The lack of an mro value may indicate that the class is and old-style class, not inheriting from "object"
The error you are seeing when calling dir() looks like you shadowed the builtin dir() function, by assigning a string to the dir variable. On Mon, 2 Feb 2015 3:31 PM yann19 <[email protected]> wrote: > So I run they type() and __mro__ as mentioned by Marcus... > > The results are as follows: > > - type() : <class 'importSceneUI.ImportScene'> > - __mro__ : None > > dir() returns the following error: > > # Error: 'str' object is not callable > # Traceback (most recent call last): > # File "<maya console>", line 19, in <module> > # File "<maya console>", line 17, in main > # File "<maya console>", line 8, in sceneImport > # TypeError: 'str' object is not callable # > > I suppose this may be what I expected as I have mentioned earlier in my > posts that the import dialog I am calling ain't exactly an UI created by > Maya/PySide etc.. Upon taking a closer look in the codes, the dialog > creation seems to branch off from other import modules within its file... > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/59c563ef-d0c9-4d3d-b181-b349e73aea16%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/59c563ef-d0c9-4d3d-b181-b349e73aea16%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2K41KYSdqpqH4Es8M3gvzUwXQ_ga13S7-5TCiUspFR_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
