def set_widget_value(self, widget: FilepathWidget, value: str): widget.set_value(value)
def get_widget_value(self, widget: FilepathWidget): return widget.get_value()
def set_widget_valid(self, widget: FilepathWidget, valid: bool, msg: str): widget.setPalette(palette_valid if valid else palette_invalid)
def get_widget(self, field_group, parent=None): widget = FilepathWidget(selection_filter=self.selection_filter, parent=parent) widget.setDisabled(self.disabled) return widget