a
    §ˆc!  ã                   @   s’  d Z ddlmZ ddlmZmZmZmZmZm	Z	 ddl
mZ ddlmZ zddlmZ W n eyj   Y n0 ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z< ddl=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZG dd	lHmIZImJZJmKZKmLZLmMZM dd
lNmOZO ddlPmPZP ddlQmRZR ddlSmTZTmUZUmVZVmWZWmXZXmYZYmZZZm[Z[m\Z\m]Z] ddl^m_Z_ ddl`maZambZbmcZcmdZdmeZemfZfmgZgmhZhmiZimjZjmkZkmlZlmmZmmnZnmoZompZpmqZqmrZrmsZsmtZtmuZumvZvmwZwmxZx ddlymzZzm{Z{myZy ddl|m}Z}m~Z~mZm€Z€m�Z� ddl‚mƒZƒm„Z„m…Z…m†Z† ddl‡mˆZˆ ddl‰mŠZŠm‹Z‹mŒZŒm�Z� ddlŽmŽZŽm�Z� ddl�m‘Z‘m’Z’m“Z“m”Z”m•Z•m–Z– ddl—m˜Z˜m™Z™mšZšm›Z›mœZœm�Z� ddlžmŸZŸ ddl m¡Z¡ ddl¢m£Z£m¤Z¤m¥Z¥m¦Z¦m§Z§m¨Z¨ ddl©mªZªm«Z«m¬Z¬m­Z­m®Z® ddl¯m°Z° ddl±m²Z²m³Z³ ddl´mµZµ eŽƒ  ¶¡ Z·e· ¸dd ¡Z¹d!d"„ Zºd#S )$aV   API for the traitsui package.

Editor Factories
----------------
- :class:`~.BasicEditorFactory`
- :class:`~.EditorFactory`

Context Values
--------------

- :attr:`~.CV`
- :attr:`~.CVFloat`
- :attr:`~.CVInt`
- :attr:`~.CVStr`
- :func:`~.CVType`
- :class:`~.ContextValue`

Editors
-------
- :class:`~.Editor`
- :attr:`~.ArrayEditor`
- :attr:`~.BooleanEditor`
- :attr:`~.ButtonEditor`
- :attr:`~.CheckListEditor`
- :attr:`~.CodeEditor`
- :func:`~.ColorEditor`
- :attr:`~.CompoundEditor`
- :class:`~.CSVListEditor`
- :attr:`~.CustomEditor`
- :class:`~.DateEditor`
- :class:`~.DatetimeEditor`
- :attr:`~.DateRangeEditor`
- :class:`~.DefaultOverride`
- :attr:`~.DirectoryEditor`
- :attr:`~.DNDEditor`
- :attr:`~.DropEditor`
- :attr:`~.EnumEditor`
- :attr:`~.FileEditor`
- :func:`~.FontEditor`
- :attr:`~.HistoryEditor`
- :attr:`~.HTMLEditor`
- :attr:`~.KeyBindingEditor`
- :class:`~.ImageEditor`
- :attr:`~.ImageEnumEditor`
- :attr:`~.InstanceEditor`
- :attr:`~.ListEditor`
- :class:`~.ListStrEditor`
- :attr:`~.NullEditor`
- :class:`~.PopupEditor`
- :attr:`~.ProgressEditor`
- :attr:`~.RangeEditor`
- :func:`~.RGBColorEditor`
- :class:`~.ScrubberEditor`
- :class:`~.SearchEditor`
- :attr:`~.SetEditor`
- :attr:`~.ShellEditor`
- :attr:`~.StyledDateEditor`
- :attr:`~.TableEditor`
- :class:`~.TabularEditor`
- :attr:`~.TextEditor`
- :class:`~.TimeEditor`
- :attr:`~.TitleEditor`
- :attr:`~.TreeEditor`
- :attr:`~.TupleEditor`
- :attr:`~.ValueEditor`

Layout Support
--------------

- :class:`~.Group`
- :class:`~.HFlow`
- :class:`~.HGroup`
- :class:`~.HSplit`
- :class:`~.Tabbed`
- :class:`~.VFlow`
- :class:`~.VFold`
- :class:`~.VGrid`
- :class:`~.VGroup`
- :class:`~.VSplit`

Handlers
--------

- :class:`~.Controller`
- :class:`~.Handler`
- :class:`~.ModelView`
- :class:`~.ViewHandler`
- :func:`~.default_handler`

UI Items
--------

- :class:`~.Custom`
- :class:`~.Heading`
- :class:`~.Item`
- :class:`~.Label`
- :class:`~.Readonly`
- :class:`~.Spring`
- :class:`~.UCustom`
- :class:`~.UItem`
- :class:`~.UReadonly`
- :attr:`~.spring`

Menus and Actions
-----------------

- :class:`~.Action`
- :attr:`~.ActionGroup`
- :attr:`~.ApplyButton`
- :attr:`~.CancelButton`
- :attr:`~.CloseAction`
- :attr:`~.HelpAction`
- :attr:`~.HelpButton`
- :attr:`~.LiveButtons`
- :attr:`~.Menu`
- :attr:`~.MenuBar`
- :attr:`~.ModalButtons`
- :attr:`~.NoButton`
- :attr:`~.NoButtons`
- :attr:`~.OKButton`
- :attr:`~.OKCancelButtons`
- :attr:`~.PyFaceAction`
- :attr:`~.RedoAction`
- :attr:`~.RevertAction`
- :attr:`~.RevertButton`
- :attr:`~.Separator`
- :attr:`~.StandardMenuBar`
- :attr:`~.ToolBar`
- :attr:`~.UndoAction`
- :attr:`~.UndoButton`

Table and List UI
-----------------

- :class:`~.ListStrAdapter`
- :class:`~.TabularAdapter`
- :attr:`~.TableEditor`

Table column types:

- :class:`~.ExpressionColumn`
- :class:`~.ListColumn`
- :class:`~.NumericColumn`
- :class:`~.ObjectColumn`
- :class:`~.TableColumn`

Table filter types:

- :class:`~.EvalTableFilter`
- :class:`~.MenuTableFilter`
- :class:`~.RuleTableFilter`
- :class:`~.TableFilter`

Instance UI
-----------

- :class:`~.InstanceChoice`
- :class:`~.InstanceChoiceItem`
- :class:`~.InstanceDropChoice`
- :attr:`~.InstanceEditor`
- :class:`~.InstanceFactoryChoice`

Toolkit Object
--------------

- :func:`~.toolkit`
- :func:`~.toolkit_object`

Custom Traits
-------------

- :attr:`~.Color`
- :func:`~.ColorTrait`
- :attr:`~.Font`
- :func:`~.FontTrait`
- :attr:`~.RGBColor`
- :func:`~.RGBColorTrait`

Custom UI Traits
----------------

- :attr:`~.Border`
- :attr:`~.HasBorder`
- :attr:`~.HasMargin`
- :attr:`~.Image`
- :attr:`~.Margin`
- :class:`~.StatusItem`

Tree UI
-------

- :class:`~.ITreeNode`
- :class:`~.ITreeNodeAdapter`
- :class:`~.MultiTreeNode`
- :class:`~.ObjectTreeNode`
- :attr:`~.TreeEditor`
- :class:`~.TreeNode`
- :class:`~.TreeNodeObject`

UI and UI Support
-----------------

- :class:`~.UI`
- :class:`~.UIInfo`

Undo Support
------------

- :class:`~.AbstractUndoItem`
- :class:`~.ListUndoItem`
- :class:`~.UndoHistory`
- :class:`~.UndoHistoryUndoItem`
- :class:`~.UndoItem`

View and View Elements
----------------------

- :class:`~.View`
- :class:`~.ViewElement`
- :class:`~.ViewSubElement`
- :mod:`~.view_elements`

Miscellaneous
-------------

- :func:`~.on_help_call`
- :func:`~.help_template`
- :class:`~.Include`
- :func:`~.auto_close_message`
- :func:`~.error`
- :func:`~.message`
- :attr:`~._constants`
- :attr:`~.WindowColor`
- :func:`~.raise_to_debug`

é   )ÚBasicEditorFactory)ÚCVÚCVFloatÚCVIntÚCVStrÚCVTypeÚContextValue)ÚEditor)ÚEditorFactory)ÚArrayEditor),ÚBooleanEditorÚButtonEditorÚCheckListEditorÚ
CodeEditorÚColorEditorÚCompoundEditorÚCustomEditorÚCSVListEditorÚ	DNDEditorÚStyledDateEditorÚ
DateEditorÚDatetimeEditorÚDateRangeEditorÚDefaultOverrideÚDirectoryEditorÚ
DropEditorÚ
EnumEditorÚ
FileEditorÚ
FontEditorÚ
HTMLEditorÚHistoryEditorÚImageEditorÚImageEnumEditorÚInstanceEditorÚKeyBindingEditorÚ
ListEditorÚListStrEditorÚ
NullEditorÚPopupEditorÚProgressEditorÚRGBColorEditorÚRangeEditorÚScrubberEditorÚSearchEditorÚ	SetEditorÚShellEditorÚTableEditorÚTabularEditorÚ
TextEditorÚ
TimeEditorÚTitleEditorÚ
TreeEditorÚTupleEditorÚValueEditor)
ÚGroupÚHFlowÚHGroupÚHSplitÚTabbedÚVFlowÚVFoldÚVGridÚVGroupÚVSplit)Ú
ControllerÚHandlerÚ	ModelViewÚViewHandlerÚdefault_handler)Úon_help_call)Úhelp_template)ÚInclude)
ÚCustomÚHeadingÚItemÚLabelÚReadonlyÚSpringÚUCustomÚUItemÚ	UReadonlyÚspring)ÚListStrAdapter)ÚActionÚActionGroupÚApplyButtonÚCancelButtonÚCloseActionÚ
HelpActionÚ
HelpButtonÚLiveButtonsÚMenuÚMenuBarÚModalButtonsÚNoButtonÚ	NoButtonsÚOKButtonÚOKCancelButtonsÚPyFaceActionÚ
RedoActionÚRevertActionÚRevertButtonÚ	SeparatorÚStandardMenuBarÚToolBarÚ
UndoActionÚ
UndoButton)Úauto_close_messageÚerrorÚmessage)ÚExpressionColumnÚ
ListColumnÚNumericColumnÚObjectColumnÚTableColumn)ÚEvalTableFilterÚMenuTableFilterÚRuleTableFilterÚTableFilter)ÚTabularAdapter)ÚInstanceChoiceÚInstanceChoiceItemÚInstanceDropChoiceÚInstanceFactoryChoice)ÚtoolkitÚtoolkit_object)ÚColorÚ
ColorTraitÚFontÚ	FontTraitÚRGBColorÚRGBColorTrait)Ú	ITreeNodeÚITreeNodeAdapterÚMultiTreeNodeÚObjectTreeNodeÚTreeNodeÚTreeNodeObject)ÚUI)ÚUIInfo)ÚBorderÚ	HasBorderÚ	HasMarginÚImageÚMarginÚ
StatusItem)ÚAbstractUndoItemÚListUndoItemÚUndoHistoryÚUndoHistoryUndoItemÚUndoItem)ÚView)ÚViewElementÚViewSubElement)Úview_elementsÚWindowColoriÿÿÿ c                  C   s   ddl } |  d¡dur‚ dS )z©When we would otherwise silently swallow an exception, call this instead
    to allow people to set the TRAITS_DEBUG environment variable and get the
    exception.
    é    NZTRAITS_DEBUG)ÚosÚgetenv)rŸ   © r¡   úO/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traitsui/api.pyÚraise_to_debugÀ  s    r£   N)»Ú__doc__Zbasic_editor_factoryr   Zcontext_valuer   r   r   r   r   r   Zeditorr	   Zeditor_factoryr
   Zeditors.apir   ÚImportErrorr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   Úgroupr8   r9   r:   r;   r<   r=   r>   r?   r@   rA   ÚhandlerrB   rC   rD   rE   rF   ÚhelprG   rH   ÚincluderI   ÚitemrJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   Zlist_str_adapterrT   ÚmenurU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   ro   rm   rn   Ztable_columnrp   rq   rr   rs   rt   Ztable_filterru   rv   rw   rx   Ztabular_adapterry   Zinstance_choicerz   r{   r|   r}   r~   r   Ztoolkit_traitsr€   r�   r‚   rƒ   r„   r…   Z	tree_noder†   r‡   rˆ   r‰   rŠ   r‹   ZuirŒ   Zui_infor�   Z	ui_traitsrŽ   r�   r�   r‘   r’   r“   Zundor”   r•   r–   r—   r˜   Úviewr™   Zview_elementrš   r›   Ú rœ   Ú	constantsÚ
_constantsÚgetr�   r£   r¡   r¡   r¡   r¢   Ú<module>   sH    n ¸/00h 	 	 
