If you are talking only about script editor, you can  open 
Window->Settings/Preferences->Preferences
and select Interface from the categories and check the "Show title bar" of "In 
Script Editor".
 
If you are talking about other Maya's dock widgets such as attribute editor, 
it's hard to make the window minimizable.

We can get Maya's window, layout and widget as PyQt object. For example, here 
is a script

which make a window and get attribute editor's layout and parent it to the 
window.

You can minimize the attribute editor. But, you will get some problems.

 

Gaki

 

#------ 
import sip
import maya.OpenMayaUI as mui
from PyQt4.QtCore import *
from PyQt4.QtGui import *
 
def getMayaWindow():
    ptr = mui.MQtUtil.mainWindow()
    return sip.wrapinstance(long(ptr), QObject)
    
def getMayaLayout(layoutString):
    ptr = mui.MQtUtil.findLayout(layoutString)
    return sip.wrapinstance(long(ptr), QObject)
    
class Form(QMainWindow):
    def __init__(self, parent=None):
        super(Form, self).__init__(parent)
        self.setWindowTitle('Attribute Editor')
        aeWidget = getMayaLayout('MayaWindow|MainAttributeEditorLayout')
        self.setCentralWidget(aeWidget)
        
global app
global form
app = qApp
form = Form(getMayaWindow())
form.show()

 






Date: Fri, 18 Jun 2010 13:30:59 +1200
Subject: [Maya-Python] PyQt Maya 2011
From: [email protected]
To: [email protected]; [email protected]

Has anyone successfully found a way to wrap Maya's windows in a way they can be 
minimized or can be pushed to the back? 

For instance, the script editor no longer has a minimize button on the top 
right and if bring up the script editor and click behind it on Maya's main 
canvas, the script editor still persists in the front.

Anyone had any luck wrapping these windows or with some other methodology to 
get around this annoyance?


Cheers

-- 
http://groups.google.com/group/python_inside_maya 
                                          
_________________________________________________________________

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to