a
    «ˆc]  ã                   @   st   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 ddlmZ G dd„ deƒZG dd„ deƒZd	S )
zPreferences for Mayavi
é    )ÚBoolÚEnumÚTupleÚRangeÚListÚStrÚInstanceÚ	HasTraits)ÚViewÚGroupÚItemÚRGBColorEditor)ÚPreferencesPagec                   @   sÊ   e Zd ZdZdZd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edd�edd�edd�edd�edd�ddd�eeeddddd�ƒddd�ƒdd�Zdd„ ZdS )ÚMayaviRootPreferencesPageú Preferences page for Mayavi. Ú ÚMayaviZ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 viewzSif the help pages are opened in a chromelessbrowser window (only works with Firefoxz#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Úuse_ipythonzGeneral settingsT)ÚlabelZshow_borderÚ_contrib_finderZcustomF)ÚstyleZ
show_labelÚ	resizablezContribution settings©r   c                 C   s   ddl m} |ƒ S )Né   )ÚContribFinder)Zcontrib_finderr!   )Úselfr!   © r#   úm/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/mayavi/preferences/mayavi_preferences_page.pyZ__contrib_finder_defaultc   s    z2MayaviRootPreferencesPage.__contrib_finder_defaultN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚcategoryÚhelp_idr   Úpreferences_pathr   r   r   r   r   r   r   Zcontrib_packagesr   r   r	   r   r
   r   r   Útraits_viewZ2_MayaviRootPreferencesPage__contrib_finder_defaultr#   r#   r#   r$   r      sP   


ÿ
ù	ýÿ÷öér   c                   @   s¶   e Zd ZdZdZdZdZdZedddd	d
d�Z	e
edddƒedddƒedddƒedd�Ze
edddƒedddƒed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 )ÚMayaviMlabPreferencesPager   r   r   ZMlabzmayavi.mlabÚautoZenvisageÚsimpleÚtestzthe mlab backend to user   g        g      ð?z!the background color of the scene)Zeditorr   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   r1   r   r   r   r2   r3   r   r4   r
   r   r   r,   r#   r#   r#   r$   r-   k   s:   
ÿ

ü

ü
üúr-   N)r(   Z
traits.apir   r   r   r   r   r   r   r	   Ztraitsui.apir
   r   r   r   Zapptools.preferences.ui.apir   r   r-   r#   r#   r#   r$   Ú<module>   s
   ([