| 1142 | |
| 1143 | |
| 1144 | class 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()) |