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

Class EditorAttributeInputBase64Image

editor/editor_widgets.py:1133–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131
1132
1133class EditorAttributeInputBase64Image(EditorAttributeInputUrl):
1134 def __init__(self, widget, attributeName, propertyDef, attributeDict, appInstance, *args, **kwargs):
1135 super(EditorAttributeInputBase64Image, self).__init__(
1136 widget, attributeName, propertyDef, attributeDict, appInstance, *args, **kwargs)
1137
1138 def file_dialog_confirmed(self, widget, fileList):
1139 if len(fileList) > 0:
1140 self.inputWidget.set_value(gui.load_resource(fileList[0]))
1141 return self.on_attribute_changed(None, self.inputWidget.get_value())
1142
1143
1144class EditorAttributeInputFile(EditorAttributeInputUrl):

Callers 1

set_widgetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected