Maya 2011 with PyQt freezing?

Maya 2011 with PyQt freezing?

kurianos
Participant Participant
495 Views
3 Replies
Message 1 of 4

Maya 2011 with PyQt freezing?

kurianos
Participant
Participant
Hi All,

Iam using Maya 32 bit and PyQt . I got it installed PyQt with maya and i am able to import pyqt , but issue is if i am creating any window with pyqt then simple maya is getting hang , then i need to kill maya . I dont know whats going wrong and I am using pumpthred also . but no luck here is the screen shoot

def main():

"""
main function for creating mod helper

"""

import pumpThread
global dialog, app

#check to see if the dialog is already loaded
if 'dialog' in globals():
dialog.close()
dialog.destroy()
#~ dialog.show()
#~ return
pumpThread.initializePumpThread()
app = QtGui.qApp
app.setStyle('plastique')
dialog = windowGUIClass() #MAIN FUNCTION HERE
dialog.show()
app.connect(app, QtCore.SIGNAL('lastWindowClosed()'), app, QtCore.SLOT('quit()'))


if __name__ == '__main__':
main()




Uploaded with ImageShack.us
0 Likes
496 Views
3 Replies
Replies (3)
Message 2 of 4

kurianos
Participant
Participant
no reply from any one :( , i am totally stuck there :(
0 Likes
Message 3 of 4

Anonymous
Not applicable
Hi there,
In 2011, we don't need to use pumpThread any more.
See my example code on
http://community.softimage.com/forum/autodesk-maya/python/pyqt-and-maya-pyqt-window-parented-to-maya...
You can get the object of maya window and use it as the parent of your dialog or window.
Good luck.

Gaki
0 Likes
Message 4 of 4

kurianos
Participant
Participant
Thank you so much for the info
0 Likes