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)
#-----
On Mar 3, 2014 7:49 AM, "lala" <[email protected]> wrote:

> Hi Everyone again
> i am attaching 2 templates. qdialog template , qwindow template.  only
> *.tool files should be run, they will import relevant *.view file. with
> connections (signals etc )
>
> I am almost there, all wish list points are almost done
>
>    - using qt designer files (quick)
>    - convert to py files, np
>    - subclass from QDialog or QMainWindow with (relevant converted py
>    file)
>    - i call this super decent. ( view is like view, and tool is like
>    controller, setting links, etc )
>
> only missing feature is, >> staying on top of maya window. currently its
> not :(
>
> as per Jesse Kretschmer  comments. i tried setting flags, but its not
> working , as its subclassing from two base classes, any ideas, how can i
> fix this or add this feature
>
> huge thanks for support in advance
> regards,lala
>
>
>  --
> 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/fa20c095-1705-4d97-95e1-ec9e5c7ae3af%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CAPGFgA2jNfhsUHHiiFH0DN%3DfTaE8Ob_DKDPSwFJ13jwTEBpMig%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to