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

Method set_valid

editor/editor_widgets.py:911–917  ·  view source on GitHub ↗
(self, valid=True)

Source from the content-addressed store, hash-verified

909 self.set_valid(False)
910
911 def set_valid(self, valid=True):
912 self.label.style['opacity'] = '1.0'
913 if 'display' in self.removeAttribute.style:
914 del self.removeAttribute.style['display']
915 if not valid:
916 self.label.style['opacity'] = '0.5'
917 self.removeAttribute.style['display'] = 'none'
918
919 @gui.decorate_event
920 def on_attribute_remove(self, widget):

Callers 9

__init__Method · 0.95
on_attribute_removeMethod · 0.95
set_valueMethod · 0.95
on_attribute_changedMethod · 0.95
set_widgetMethod · 0.80
set_valueMethod · 0.80
onchangeMethod · 0.80
set_valueMethod · 0.80
set_valueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected