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/32c94e48-1794-481d-afda-1e3f520b2e12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to