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

Method __init__

remi/gui.py:3645–3655  ·  view source on GitHub ↗
(self, iterable_of_str=None, default_value="", input_type='text', *args, **kwargs)

Source from the content-addressed store, hash-verified

3643 def attr_input_type(self, value): self.selection_input.attr_input_type = str(value)
3644
3645 def __init__(self, iterable_of_str=None, default_value="", input_type='text', *args, **kwargs):
3646 super(SelectionInputWidget, self).__init__(*args, **kwargs)
3647 options = None
3648 if iterable_of_str:
3649 options = list(map(DatalistItem, iterable_of_str))
3650 self.datalist = Datalist(options)
3651 self.selection_input = SelectionInput(default_value, input_type, style={'top':'0px',
3652 'left':'0px', 'bottom':'0px', 'right':'0px'})
3653 self.selection_input.set_datalist_identifier(self.datalist.identifier)
3654 self.append([self.datalist, self.selection_input])
3655 self.selection_input.oninput.do(self.oninput)
3656
3657 def set_value(self, value):
3658 """

Callers

nothing calls this directly

Calls 6

DatalistClass · 0.85
SelectionInputClass · 0.85
__init__Method · 0.45
appendMethod · 0.45
doMethod · 0.45

Tested by

no test coverage detected