ChoicesSetting

Bases: Setting

A dropdown setting that accepts one value from a list of choices.

Declare as a class attribute on a HighLevelAnalyzer subclass to add a dropdown selection field to the analyzer's settings UI.

class MyHLA(HighLevelAnalyzer):
    mode = ChoicesSetting(choices=['Hex', 'Decimal', 'Binary'])

Attributes

NameTypeDescription
choices

Methods

__init__(choices: List[str], kwargs = {})
choices
A list of choices for the user to choose from.
validate(value)
AI/LLM users: see llms-extensions.txt for machine-readable documentation.