| 933 | |
| 934 | |
| 935 | class 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 | |
| 955 | class EditorAttributeInputFloat(EditorAttributeInputGeneric): |