enumerationdelegate

class camelot.view.controls.delegates.enumerationdelegate.EnumerationDelegate(parent=None, choices=[], editable=True, **kwargs)[source]
Contrary to the comboboxdelegate, the enumeration delegate does not support dynamic
choices
../../../../_images/EnumerationDelegate_unselected_disabled.png ../../../../_images/EnumerationDelegate_unselected_editable.png ../../../../_images/EnumerationDelegate_selected_disabled.png ../../../../_images/EnumerationDelegate_selected_editable.png

Field attributes supported by the delegate :

By default, creates a ChoicesEditor as its editor.

Field Attributes Editor
editable=False tooltip=’tooltip’ ../../../../_images/ChoicesEditor_disabled_tooltip.png
editable=True ../../../../_images/ChoicesEditor_editable.png
editable=True tooltip=’tooltip’ ../../../../_images/ChoicesEditor_editable_tooltip.png
editable=False ../../../../_images/ChoicesEditor_disabled.png
editable=False background_color=ColorScheme.green ../../../../_images/ChoicesEditor_disabled_background_color.png
editable=True background_color=ColorScheme.green ../../../../_images/ChoicesEditor_editable_background_color.png

Static attributes supported by this editor :

  • nullable
  • field_name

Dynamic field attributes supported by the editor :

editor

alias of ChoicesEditor

Previous topic

delegatemanager

Next topic

filedelegate

This Page


Comments
blog comments powered by Disqus