
    G@d	                     x    d Z ddlmZmZ ddlmZmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZ  G d d	ee          Zd
S )z
Variable Explorer Plugin.
    )PluginsSpyderDockablePlugin)on_plugin_availableon_plugin_teardown)ShellConnectMixin_)VariableExplorerConfigPage)VariableExplorerWidgetc                       e Zd ZdZdZej        ej        gZdZ	e
ZeZdZeZdZed             Zd Zd Zd Z eej        	          d
             Z eej        	          d             Zd Zd ZdS )VariableExplorerz#
    Variable explorer plugin.
    variable_explorerNFc                       t          d          S )NzVariable explorerr        Flib/python3.11/site-packages/spyder/plugins/variableexplorer/plugin.pyget_namezVariableExplorer.get_name&   s    $%%%r   c                      t          d          S )NzBDisplay, explore load and save variables in the current namespace.r   selfs    r   get_descriptionz VariableExplorer.get_description*   s        	r   c                 ,    |                      d          S )Ndictedit)create_iconr   s    r   get_iconzVariableExplorer.get_icon.   s    
+++r   c                     d S Nr   r   s    r   on_initializezVariableExplorer.on_initialize1   s    r   )pluginc                 n    |                      t          j                  }|                    |            d S r   )
get_pluginr   Preferencesregister_plugin_preferencesr   preferencess     r   on_preferences_availablez)VariableExplorer.on_preferences_available4   s0    oog&9:://55555r   c                 n    |                      t          j                  }|                    |            d S r   )r!   r   r"   deregister_plugin_preferencesr$   s     r   on_preferences_teardownz(VariableExplorer.on_preferences_teardown9   s0    oog&9::11$77777r   c                 N    |                                                                  S )z
        Return the current widget displayed at the moment.

        Returns
        -------
        spyder.plugins.plots.widgets.namespacebrowser.NamespaceBrowser
        )
get_widgetcurrent_widgetr   s    r   r,   zVariableExplorer.current_widget@   s        //111r   c                 V    |                                  |                                 dS )z+Send namespace view settings to the kernel.N)set_namespace_view_settingsrefresh_namespacebrowser)r   shellwidgets     r   'on_connection_to_external_spyder_kernelz8VariableExplorer.on_connection_to_external_spyder_kernelJ   s,    //111,,.....r   )__name__
__module____qualname____doc__NAMEr   IPythonConsoler"   REQUIRESTABIFYr   WIDGET_CLASSCONF_SECTION	CONF_FILEr
   CONF_WIDGET_CLASSDISABLE_ACTIONS_WHEN_HIDDENstaticmethodr   r   r   r   r   r&   r   r)   r,   r1   r   r   r   r   r      s         D&(;<HF)LLI2"' & & \&  , , ,    34446 6 546 w23338 8 4382 2 2/ / / / /r   r   N)r5   spyder.api.pluginsr   r   )spyder.api.plugin_registration.decoratorsr   r   spyder.api.shellconnect.mixinsr   spyder.api.translationsr	   (spyder.plugins.variableexplorer.confpager
   3spyder.plugins.variableexplorer.widgets.main_widgetr   r   r   r   r   <module>rF      s    
 = < < < < < < <- - - - - - - - < < < < < < % % % % % %                6/ 6/ 6/ 6/ 6/+-> 6/ 6/ 6/ 6/ 6/r   