def METHOD_NAME(self, e):
    settings = self.page.session.get("settings")
    parent = e.control.data
    setting = settings[parent.data[1]][parent.data[2]]
    setting_value = None
    if setting["value_type"] == "int":
        setting_value = int(e.control.value)
    elif setting["value_type"] == "float":
        setting_value = float(e.control.value)
    else:
        setting_value = e.control.value
    setting["value"] = setting_value
    parent.controls[0].value = setting_value
    parent.controls[1].value = str(setting_value)
    parent.data[0].update_settings_window_tab(parent.data[1])
    self.page.update()