asn1editor.interfaces package¶
Submodules¶
asn1editor.interfaces.BitstringInterface module¶
asn1editor.interfaces.OptionalInterface module¶
- class asn1editor.interfaces.OptionalInterface.OptionalInterface¶
Bases:
objectInterface for optional elements.
Needs to be provided by the view factory that creates the elements.
- get_default_has_value() bool¶
- get_has_value() bool¶
- register_optional_event(callback: Callable)¶
Called by the controller to register a callback that needs to be called whenever the optional status of an element changes.
- set_has_value(val: bool)¶
asn1editor.interfaces.ValueInterface module¶
- class asn1editor.interfaces.ValueInterface.ValueInterface¶
Bases:
objectInterface for a value view to get and set the values and handle changes.
Needs to be provided by the view factory that creates a value view.
- get_value() str | bytes | bool¶
- register_change_event(callback: Callable)¶
Called by the controller to register a callback that needs to be called whenever the value of an element changes.
- set_value(val: str | bytes | bool)¶