3
ÌœŸWþ  ã               @   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 )ÚRootPreferencesHelperÚ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)Ú
show_labelÚeditorT)Ú	resizablec             C   s   ddl m} |ƒ S )Né   )ÚContribFinder)Úcontrib_finderr   )Úselfr   © r!   úi/home/yuhw/wc/wire-cell-python/venv/lib/python3.6/site-packages/mayavi/preferences/preferences_helpers.pyÚ__contrib_finder_defaultM   s    z.RootPreferencesHelper.__contrib_finder_defaultN)Ú__name__Ú
__module__Ú__qualname__Úpreferences_pathr   r   r   r   r   r   r   Úcontrib_packagesÚuse_ipythonr   r	   r   r
   r   r   r   Útraits_viewÚ._RootPreferencesHelper__contrib_finder_defaultr!   r!   r!   r"   r      s(   	



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ÚautoÚenvisageÚsimpleÚtestzthe mlab backend to use)r   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Ú	offscreenT)r   N)r$   r%   r&   r'   r   r1   r   r   r   r2   r3   r   r4   r
   r   r   r*   r!   r!   r!   r"   r,   T   s    

r,   N)Ú__doc__Ú
traits.apir   r   r   r   r   r   r   r	   Útraitsui.apir
   r   r   r   r   Úapptools.preferences.apir   r   r,   r!   r!   r!   r"   Ú<module>   s
   (C