def setupUi(self):  # noqa
        Ui_MainWindow.setupUi(self, self)
        self.settings_tree.setColumnWidth(0, 160)
        self.settings_tree.expandAll()

        self.edit_widget = CurveWidget(self)
        self.edit_widget.set_change_handler(self._on_curve_edited)
        self.prefab_edit_widget.addWidget(self.edit_widget)

        connect(self.time_slider, QtCore.SIGNAL("valueChanged(int)"), self._on_time_changed)
        connect(self.settings_tree,
                QtCore.SIGNAL("itemSelectionChanged()"), self._on_setting_selected)
        connect(self.btn_insert_point, QtCore.SIGNAL("clicked()"), self._insert_point)
        connect(self.btn_reset, QtCore.SIGNAL("clicked()"), self._reset_settings)
Setups the UI Components
dataset/ETHPy150Open tobspr/RenderPipeline/toolkit/day_time_editor/main.py/DayTimeEditor.setupUi