a
    «ˆcþ  ã                   @   sx   d Z ddlmZmZ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 G dd„ deƒZG dd„ deƒZd	S )
z7Various preference helpers for the mayavi preferences.
é    )ÚBoolÚEnumÚTupleÚRangeÚListÚStrÚInstanceÚ	HasTraits)ÚViewÚGroupÚItemÚRGBColorEditorÚInstanceEditor)ÚPreferencesHelperc                   @   sž   e Zd ZdZedd�Zedd�Zedd�Zedd�Ze	e
dd�Zedd�ZeeƒZeeed	d
�edd
�edd
�edd
�eddedd�d�ƒdd�Zdd„ ZdS )ÚRootPreferencesHelperZmayavizCif the user is prompted before a node on the MayaVi tree is deleted©Údescz(if the splash screen is shown at startupz6if the helper (adder) nodes are shown on the tree viewzUif the help pages are opened in a chromeless browser window (only works with Firefox)z#contrib packages to load on startupz1use IPython for the embedded shell (if available)Úconfirm_delete)ÚnameÚshow_splash_screenÚshow_helper_nodesÚopen_help_in_light_browserÚ_contrib_finderFzFind contributions)Úlabel)Z
show_labelÚeditorT©Z	resizablec                 C   s   ddl m} |ƒ S )Né   )ÚContribFinder)Zcontrib_finderr   )Úselfr   © r   úi/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/mayavi/preferences/preferences_helpers.pyZ__contrib_finder_defaultM   s    z.RootPreferencesHelper.__contrib_finder_defaultN)Ú__name__Ú
__module__Ú__qualname__Úpreferences_pathr   r   r   r   r   r   r   Zcontrib_packagesZuse_ipythonr   r	   r   r
   r   r   r   Útraits_viewZ._RootPreferencesHelper__contrib_finder_defaultr   r   r   r    r      s0   	


ÿ
þû
õr   c                   @   sš   e Zd ZdZedddddd�Zeedd	ƒedd	ƒedd	ƒed
d�Z	eedd	ƒedd	ƒedd	ƒedd�Z
edd�Zeeedƒedƒedƒedƒƒdd�ZdS )ÚMlabPreferencesHelperzmayavi.mlabÚautoZenvisageÚsimpleÚtestzthe mlab backend to user   g        g      ð?z!the background color of the scene)r   r   z!the foreground color of the scenezLif mlab should use offscreen rendering (no window will show up in this case)ÚbackendÚbackground_colorÚforeground_colorÚ	offscreenTr   N)r!   r"   r#   r$   r   r*   r   r   r   r+   r,   r   r-   r
   r   r   r%   r   r   r   r    r&   T   s*   
ÿþþ
üúr&   N)Ú__doc__Z
traits.apir   r   r   r   r   r   r   r	   Ztraitsui.apir
   r   r   r   r   Zapptools.preferences.apir   r   r&   r   r   r   r    Ú<module>   s
   (C