PyQT object error ?

78 views
Skip to first unread message

md

unread,
Jul 15, 2014, 7:48:03 AM7/15/14
to python_in...@googlegroups.com
I am getting this error after showing a PyQT Dialog ...

// Error: 'ListLayersDialog' object has no attribute 'winEvent'

# Traceback (most recent call last):

# File "<maya console>", line 28, in <module>

# AttributeError: 'ListLayersDialog' object has no attribute 'winEvent' //


Here is the class code :


class ListLayersDialog(QtGui.QDialog):

    def __init__(self, parent=maya_main_window()):

        QtGui.QDialog.__init__(self, parent)

        self.ui = Ui_frm_setup_passes()

        self.ui.setupUi(self)


The form shows fine ... but the error still gets reported.


Any thoughts ?

Justin Israel

unread,
Jul 15, 2014, 3:43:48 PM7/15/14
to python_in...@googlegroups.com

What does line 28 do in your code?
Sounds like you are accessing an attribute that does not exist ☺

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d96dcf8d-11cb-47a8-b97d-24affb95e5a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

md

unread,
Jul 15, 2014, 4:56:25 PM7/15/14
to python_in...@googlegroups.com
That is where I am setting the ui

self.ui = Ui_frm_setup_passes()

... since I instituted the DeleteOnClose ... this seems to have subsided.


On Tuesday, July 15, 2014 3:43:48 PM UTC-4, Justin Israel wrote:

What does line 28 do in your code?
Sounds like you are accessing an attribute that does not exist ☺

On 15/07/2014 11:48 PM, "md" <acco...@mdonovan.com> wrote:
I am getting this error after showing a PyQT Dialog ...

// Error: 'ListLayersDialog' object has no attribute 'winEvent'

# Traceback (most recent call last):

# File "<maya console>", line 28, in <module>

# AttributeError: 'ListLayersDialog' object has no attribute 'winEvent' //


Here is the class code :


class ListLayersDialog(QtGui.QDialog):

    def __init__(self, parent=maya_main_window()):

        QtGui.QDialog.__init__(self, parent)

        self.ui = Ui_frm_setup_passes()

        self.ui.setupUi(self)


The form shows fine ... but the error still gets reported.


Any thoughts ?

--
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 python_inside_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages