Hi all, so I'm seeing this happen on Maya 2017 Update 4 on MacOS and
wondering if anyone's seen similar behaviour in their versions. Like
Michael, I'm trying to use a QMessageBox. My script looks like this:

---- SNIP ----
import logging
import Qt
from Qt import QtGui, QtCore, QtWidgets

try:
    from Qt import QtUiTools
except ImportError as e:
    if Qt.__binding__ in ('PySide'):
        from PySide import QtUiTools
    else:
        from PySide2 import QtUiTools

msgBox = QtWidgets.QMessageBox()
msgBox.setText('What to do?')
msgBox.addButton(QtWidgets.QPushButton('Accept'),
QtWidgets.QMessageBox.YesRole)
msgBox.addButton(QtWidgets.QPushButton('Reject'),
QtWidgets.QMessageBox.NoRole)
msgBox.addButton(QtWidgets.QPushButton('Cancel'),
QtWidgets.QMessageBox.RejectRole)
ret = msgBox.exec_()
---- SNIP ----

Any ideas?

Thank you for your time,
Ravi

On Tue, Aug 1, 2017 at 11:11 PM, Michael Boon <[email protected]> wrote:

> Good point, thanks.
>
> On Wednesday, 2 August 2017 15:01:24 UTC+10, Marcus Ottosson wrote:
>>
>> If it happened under Maya 2017 pre update 4, then it could be a Maya
>> issue more than anything else. PySide2 is under heavy development even as
>> we speak.
>>
> --
> 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/3c4ac731-a67f-4823-87b4-
> efd72fc57121%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/3c4ac731-a67f-4823-87b4-efd72fc57121%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

-- 
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/CADHeb2Yc%2BonBcngN5%3DoeA%2Beoscoqt17Tj53cV3dse_s%3Dqpecng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to