Pop-up ToolBox to the front

Ok. I have a DockWidget working as you propose in NodeInfo module example and it´s really cool.
I have turn my ToolBar to a DockWidget in Qt Designer. How can i use it?
It throw me this error:

.setFeatures(qt.QDockWidget.DockWidgetClosable + qt.QDockWidget.DockWidgetMovable + qt.QDockWidget.DockWidgetFloatable)
AttributeError: QFrame has no attribute named ‘setFeatures’