So I have my class inheriting from MayaQWidgetDockableMixin, however when I try to set the allowedArea I get an error.
I know I’m missing something here.
from PySide import QtGui
from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
class App(MayaQWidgetDockableMixin,QtGui.QDialog):
....
ui = App()
ui.show(dockable=True, floating=False, area='right', allowedArea='right', width=200, height=300, x=300, y=600)
Error:
// Error: 'MayaQDockWidget' object has no attribute 'setAllowedArea'
# ui.setDockableParameters(dockable=True, floating=False, area='right', allowedArea='right', width=200, height=300, x=300, y=600)
# File "C:\Program Files\Autodesk\Maya2015\Python\lib\site-packages\maya\app\general\mayaMixin.py", line 299, in setDockableParameters
# dockWidget.setAllowedArea(areaValue)
# AttributeError: 'MayaQDockWidget' object has no attribute 'setAllowedArea' //
If I leave out the allowedArea it works fine.