def init_widget(self):
        super(QtDockItem, self).init_widget()
        d = self.declaration
        self.set_name(d.name)
        self.set_title(d.title)
        self.set_title_editable(d.title_editable)
        if not d.title_bar_visible:
            self.set_title_bar_visible(d.title_bar_visible)
        if d.icon is not None:
            self.set_icon(d.icon)
        if -1 not in d.icon_size:
            self.set_icon_size(d.icon_size)
        self.set_stretch(d.stretch)
        self.set_closable(d.closable)
Initialize the state of the underlying widget.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_dock_item.py/QtDockItem.init_widget