MCPcopy Index your code
hub / github.com/rawpython/remi / EditorAttributeInputFile

Class EditorAttributeInputFile

editor/editor_widgets.py:1144–1152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1142
1143
1144class EditorAttributeInputFile(EditorAttributeInputUrl):
1145 def __init__(self, widget, attributeName, propertyDef, attributeDict, appInstance, *args, **kwargs):
1146 super(EditorAttributeInputFile, self).__init__(
1147 widget, attributeName, propertyDef, attributeDict, appInstance, *args, **kwargs)
1148
1149 def file_dialog_confirmed(self, widget, fileList):
1150 if len(fileList) > 0:
1151 self.inputWidget.set_value(fileList[0].replace("\\", "/"))
1152 return self.on_attribute_changed(None, self.inputWidget.get_value())

Callers 1

set_widgetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected