Example #1
0
 def __init__(
     self,
     default_index=None,
     display_prepopulated_values=False,
     group_by_annotation=True,
     indent_level=1,
     is_alphabetized=True,
     is_asset_section=False,
     is_attribute_section=False,
     is_command_section=False,
     is_hidden=False,
     is_information_section=False,
     is_material_summary_section=False,
     is_navigation_section=False,
     is_numbered=False,
     is_ranged=False,
     match_on_display_string=True,
     menu_entries=None,
     name=None,
     return_value_attribute='display_string',
     title=None,
 ):
     AbjadObject.__init__(self)
     assert menu_entries, repr(name)
     assert name, repr(name)
     assert return_value_attribute in self.return_value_attributes
     self._default_index = default_index
     self._display_prepopulated_values = display_prepopulated_values
     self._group_by_annotation = group_by_annotation
     self._indent_level = indent_level
     self._is_alphabetized = is_alphabetized
     self._is_asset_section = is_asset_section
     self._is_attribute_section = is_attribute_section
     self._is_command_section = is_command_section
     self._is_hidden = is_hidden
     self._is_information_section = is_information_section
     self._is_material_summary_section = is_material_summary_section
     self._is_navigation_section = is_navigation_section
     self._is_numbered = is_numbered
     self._is_ranged = is_ranged
     self._match_on_display_string = match_on_display_string
     self._name = name
     self._menu_entries = []
     for menu_entry in menu_entries:
         self._append(menu_entry)
     self._return_value_attribute = return_value_attribute
     self._title = title
Example #2
0
 def __init__(
     self,
     default_index=None,
     display_prepopulated_values=False,
     group_by_annotation=True,
     indent_level=1,
     is_alphabetized=True,
     is_asset_section=False,
     is_attribute_section=False,
     is_command_section=False,
     is_hidden=False,
     is_information_section=False,
     is_material_summary_section=False,
     is_navigation_section=False,
     is_numbered=False,
     is_ranged=False,
     match_on_display_string=True,
     menu_entries=None,
     name=None,
     return_value_attribute='display_string',
     title=None,
     ):
     AbjadObject.__init__(self)
     assert menu_entries, repr(name)
     assert name, repr(name)
     assert return_value_attribute in self.return_value_attributes
     self._default_index = default_index
     self._display_prepopulated_values = display_prepopulated_values
     self._group_by_annotation = group_by_annotation
     self._indent_level = indent_level
     self._is_alphabetized = is_alphabetized
     self._is_asset_section = is_asset_section
     self._is_attribute_section = is_attribute_section
     self._is_command_section = is_command_section
     self._is_hidden = is_hidden
     self._is_information_section = is_information_section
     self._is_material_summary_section = is_material_summary_section
     self._is_navigation_section = is_navigation_section
     self._is_numbered = is_numbered
     self._is_ranged = is_ranged
     self._match_on_display_string = match_on_display_string
     self._name = name
     self._menu_entries = []
     for menu_entry in menu_entries:
         self._append(menu_entry)
     self._return_value_attribute = return_value_attribute
     self._title = title
 def __init__(self, 
     prompt_string, 
     additional_help_template_arguments=None, 
     default_value=None, 
     help_template=None,
     include_chevron=True,
     setup_statements=None,
     target_menu_section=None,
     validation_function=None,
     ):
     AbjadObject.__init__(self)
     assert isinstance(prompt_string, str)
     assert isinstance(help_template, str)
     self._prompt_string = prompt_string
     self._additional_help_template_arguments = \
         additional_help_template_arguments or []
     self._default_value = default_value
     self._help_template = help_template
     self._include_chevron = include_chevron
     self._setup_statements = setup_statements or []
     self._target_menu_section = target_menu_section
     self._validation_function = validation_function
Example #4
0
 def __init__(
     self,
     return_value_attribute='display_string',
     default_index=None,
     indent_level=1,
     is_hidden=False,
     is_numbered=False,
     is_ranged=False,
     #display_prepopulated_values=True,
     display_prepopulated_values=False,
     title=None,
     ):
     AbjadObject.__init__(self)
     self.menu_entries = []
     assert return_value_attribute in self.return_value_attributes
     self.return_value_attribute = return_value_attribute
     self.default_index = default_index
     self.indent_level = indent_level
     self.is_hidden = is_hidden
     self.is_numbered = is_numbered
     self.is_ranged = is_ranged
     self.display_prepopulated_values = display_prepopulated_values
     self.title = title
Example #5
0
 def __init__(
     self,
     default_value=None,
     disallow_range=False,
     help_template=None,
     help_template_arguments=None,
     include_chevron=True,
     message=None,
     setup_statements=None,
     target_menu_section=None,
     validation_function=None,
 ):
     AbjadObject.__init__(self)
     assert isinstance(message, str)
     assert isinstance(help_template, str)
     self._default_value = default_value
     self._disallow_range = disallow_range
     self._help_template = help_template
     self._help_template_arguments = help_template_arguments or []
     self._include_chevron = include_chevron
     self._message = message
     self._setup_statements = setup_statements or []
     self._target_menu_section = target_menu_section
     self._validation_function = validation_function
Example #6
0
 def __init__(
     self,
     default_value=None,
     disallow_range=False,
     help_template=None,
     help_template_arguments=None,
     include_chevron=True,
     message=None,
     setup_statements=None,
     target_menu_section=None,
     validation_function=None,
     ):
     AbjadObject.__init__(self)
     assert isinstance(message, str)
     assert isinstance(help_template, str)
     self._default_value = default_value
     self._disallow_range = disallow_range
     self._help_template = help_template
     self._help_template_arguments = help_template_arguments or []
     self._include_chevron = include_chevron
     self._message = message
     self._setup_statements = setup_statements or []
     self._target_menu_section = target_menu_section
     self._validation_function = validation_function