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