alright got it it should be cmds.dockControl("MiniMe_PySide",w=600,
area='left', content="MiniMe_PySide", allowedArea=allowedAreas)

in runUI() function.


On Sat, Jan 12, 2013 at 5:44 PM, San Luthra <[email protected]> wrote:

> 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].
>
>
>


-- 
Best Regards,
Sanjeev Kumar
<http://www.imdb.com/name/nm3637806/>  <http://www.linkedin.com/in/sanfx>

-- 
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].


Reply via email to