lastly, approach 1, window ui shows nicely. it won't go behind maya ui, as i click in viewportwhere as even in template script (makeCube_ui.py) it works. but goes back (behind) maya windows when i click in viewports .
--To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANESWi3KLsPxh86XF16ZZywutkb5V2hCw84ro%2BPAPf4TX%2BUEbA%40mail.gmail.com.
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.
thankyou very much everyone. nice community, i m glad, i found this. a lot to learn.
The tool flag for the window is only one part of what you need. The other part is that you have to tell your window to use the Maya main window as its parent. Otherwise the tool window you create doesn't know what to remain on top of.
#-----
import maya.OpenMayaUI as mui
import sip
def getMayaWindow():
ptr = mui.MQtUtil.mainWindow()
return sip.wrapinstance(long(ptr), QtCore.QObject)
#-----
--
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/fa20c095-1705-4d97-95e1-ec9e5c7ae3af%40googlegroups.com.