Also you can get some good reference here
<https://fredrikaverpil.github.io/2016/07/25/dealing-with-maya-2017-and-pyside2/>
​

On Wed, Oct 11, 2017 at 6:18 PM Simon Anderson <[email protected]>
wrote:

> I think its been moved to QWidgets in QT v5
>
>
>
>
> On Wednesday, 11 October 2017 15:54:51 UTC+11, jettam wrote:
>>
>> Can someone tell me why I am getting this error.
>> I am running maya2017.  It appears the QtGui.QDiaLog doesn't exist. Can
>> someone suggest what I should be looking for here instead.
>>
>> from PySide2 import QtGui, QtCore, QtUiTools
>> from shiboken2 import wrapInstance
>>
>> import maya.cmds as mc
>> import maya.OpenMayaUI as omui
>>
>> def getMayaWindow():
>>     ''' pointer to the maya main window '''
>>     ptr = omui.MQtUtil.mainWindow()
>>     if ptr:
>>         return wrapInstance(Long(ptr), QtGui.QMainWindow)
>>
>> def run():
>>     ''' builds our UI '''
>>     global win
>>     win = GeometryGenerator(parent=getMayaWindow())
>>     win.show()
>>
>> class GeometryGenerator(QtGui.QDiaLog):
>>
>>     def __init__(self,parent=None):
>>         super(GeometryGenerator,self).__init__(parent)
>>
>> # Error: 'module' object has no attribute 'QDiaLog'
>> # Traceback (most recent call last):
>> #   File "<maya console>", line 1, in <module>
>> # AttributeError: 'module' object has no attribute 'QDiaLog' #
>>
> --
> 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/80c1f9b4-ba30-4abf-baa4-9ede56bae337%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/80c1f9b4-ba30-4abf-baa4-9ede56bae337%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/CAM33%3Da7o7%3D-V%2B9CBqrF_0dmQ5iLg0btt6hnuuxCZvHWW2T%2BkwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to