import pyforms.Utils.tools as tools
from PyQt4 import uic, QtGui,QtCore
from pyforms.Controls.ControlBase import ControlBase

class ControlDockWidget(ControlBase):

    def initControl(self):
        self._form = QtGui.QDockWidget()
        self._form.setFeatures(QtGui.QDockWidget.DockWidgetFloatable | QtGui.QDockWidget.DockWidgetClosable | QtGui.QDockWidget.DockWidgetMovable ) 
        self._form.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea | QtCore.Qt.RightDockWidgetArea)
        self.form.layout().setMargin(0)
    ############################################################################


    @property
    def label(self): return self._form.windowTitle()

    @label.setter
    def label(self, value): ControlBase.label.fset(self, value); self._form.setWindowTitle(value)

    ############################################################################
    
    @property
    def value(self): return ControlBase.value.fget(self)

    @value.setter
    def value(self, value): 
        ControlBase.label.fset(self, value);
        self._form.setWidget(value.form)
Save added