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

Class EditorAttributeInputGeneric

editor/editor_widgets.py:935–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933
934
935class EditorAttributeInputGeneric(EditorAttributeInputBase):
936 inputWidget = None
937
938 def __init__(self, inputWidget, widget, attributeName, propertyDef, attributeDict, appInstance, *args, **kwargs):
939 super(EditorAttributeInputGeneric, self).__init__(
940 widget, attributeName, propertyDef, attributeDict, appInstance, *args, **kwargs)
941 self.inputWidget = inputWidget
942 self.inputWidget.onchange.do(self.on_attribute_changed)
943 self.inputWidget.attributes['title'] = attributeDict['description']
944
945 '''
946 self.set_from_asciiart("""
947 |del|lbl |input |
948 """)
949 '''
950 self.style.update({'grid-template-columns': "6% 46% 48%",
951 'grid-template-rows': "100%", 'grid-template-areas': "'del lbl input'"})
952 self.append({'input': self.inputWidget})
953
954
955class EditorAttributeInputFloat(EditorAttributeInputGeneric):

Callers 1

set_widgetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected