plaintextdelegate

class camelot.view.controls.delegates.plaintextdelegate.PlainTextDelegate(parent=None, length=20, translate_content=False, **kw)[source]

Custom delegate for simple string values

../../../../_images/PlainTextDelegate_unselected_disabled.png ../../../../_images/PlainTextDelegate_unselected_editable.png ../../../../_images/PlainTextDelegate_selected_disabled.png ../../../../_images/PlainTextDelegate_selected_editable.png

Field attributes supported by the delegate :

By default, creates a TextLineEditor as its editor.

Field Attributes Editor
editable=False tooltip=’tooltip’ ../../../../_images/TextLineEditor_disabled_tooltip.png
editable=True ../../../../_images/TextLineEditor_editable.png
editable=True tooltip=’tooltip’ ../../../../_images/TextLineEditor_editable_tooltip.png
editable=False ../../../../_images/TextLineEditor_disabled.png
editable=False background_color=ColorScheme.green ../../../../_images/TextLineEditor_disabled_background_color.png
editable=True background_color=ColorScheme.green ../../../../_images/TextLineEditor_editable_background_color.png

Static attributes supported by this editor :

Dynamic field attributes supported by the editor :

Previous topic

one2manydelegate

Next topic

richtextdelegate

This Page