
    Je                     &    d Z ddlZ G d de      Zy)z
This module contains the Manager API.

Adapted from pyqode/core/api/manager.py of the
`PyQode project <https://github.com/pyQode/pyQode>`_.
Original file:
<https://github.com/pyQode/pyqode.core/blob/master/pyqode/core/api/manager.py>
    Nc                   &    e Zd ZdZed        Zd Zy)Managera  
    A manager manages a specific aspect of a CodeEditor instance:
        - panels management and drawing

    Managers are typically created internally when you create a CodeEditor.
    You interact with them later.

    ::
        editor = CodeEditor()

        # use the panels controller to install a panel
        editor.panels.install(MyPanel(), MyPanel.Position.Right)
        my_panel = editor.panels.get(MyPanel)

        # and so on

    c                 "    | j                         S )z3Return a reference to the parent CodeEditor widget.)_editor)selfs    4/usr/lib/python3/dist-packages/spyder/api/manager.pyeditorzManager.editor*   s     ||~    c                 8    t        j                  |      | _        y)z.:param editor: CodeEditor instance to control.N)weakrefrefr   )r   r	   s     r   __init__zManager.__init__/   s    {{6*r
   N)__name__
__module____qualname____doc__propertyr	   r    r
   r   r   r      s     $  +r
   r   )r   r   objectr   r   r
   r   <module>r      s    +f +r
   