if we have to dock a pyqt app should I follow this method
def runUI():
if cmds.dockControl("MiniMe_PySide",q=True,exists=True):
cmds.deleteUI("MiniMe_PySide")
global app
global win
app=QtGui.qApp
win = MyUI()
allowedAreas = ['right', 'left']
cmds.dockControl( area='left', content="MiniMe_PySide",
allowedArea=allowedAreas, vcc=lambda *x: win.close() )
win.show()
however, when i click on the toolbar button that calls runUI() it loads a
second blank window that has title dockControl, even if I set the
setWindowTitle in init method i still get dockwindow title as dockControl1
which I guess
I have to make changes to init method.
class MyUI(QtGui.QMainWindow):
def __init__(self,parent=getMayaWindow(),uniqueHandle="MiniMe_PySide"):
super(MyUI,self).__init__(parent)
self.resize(600, 600)
self.setWindowTitle('Mini Me')
self.toolbar=toolBar.ToolBarUI()
self.setObjectName(uniqueHandle)
self.mainWidget = QtGui.QWidget(self)
self.setCentralWidget(self.mainWidget)
self.fileExplorer()
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].