

def _build_ui(self, callback):
    result = QtGui.QWidget()
    layout = QtGui.QFormLayout()
    layout.setFieldGrowthPolicy(layout.AllNonFixedFieldsGrow)
    result.setLayout(layout)
    for k in sorted(self.ui):
        v = self.ui[k]
        w = FormElement.auto(v)
        w.container = self.widget._layer_artist_container
        w.add_callback(callback)
        self._settings[k] = w
        if (w.ui is not None):
            layout.addRow(k.title().replace('_', ' '), w.ui)
    return result

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py CustomViewer._build_ui/original