
    Je                     B    d Z ddlmZ ddlmZ ddlmZ  G d de      Zy)zKite message boxes.    )QMessageBox)_)MessageCheckBoxc                   8     e Zd Z fdZ fdZed        Z xZS )KiteInstallationErrorMessagec                    t         |   t        j                  |       || _        | j                  t        d             | j                  t        d             | j                  t        j                         | j                  t        j                         | j                  d       | j                  d       | j                  |       y )N)iconparentzKite installation errorzDon't show again.FT)super__init__r   Criticalset_confsetWindowTitler   set_checkbox_textsetStandardButtonsOksetDefaultButtonset_checkedset_check_visiblesetText)selfr
   err_strr   	__class__s       ]/usr/lib/python3/dist-packages/spyder/plugins/completion/providers/kite/widgets/messagebox.pyr   z%KiteInstallationErrorMessage.__init__   s    k226B A789q!456/knn-t$W    c                 d    t         |           | j                  d| j                                 y )Nshow_installation_error_message)r   exec_r   
is_checked)r   r   s    r   r   z"KiteInstallationErrorMessage.exec_!   s(    -4??3D/D	Fr   c                       fd}|S )Nc                      |       S )N )r
   clsr   r   s    r   wrapperz6KiteInstallationErrorMessage.instance.<locals>.wrapper(   s    vw11r   r"   )r#   r   r   r$   s   ``` r   instancez%KiteInstallationErrorMessage.instance&   s    	2r   )__name__
__module____qualname__r   r   classmethodr%   __classcell__)r   s   @r   r   r      s"    F
  r   r   N)__doc__qtpy.QtWidgetsr   spyder.config.baser   spyder.widgets.helperwidgetsr   r   r"   r   r   <module>r/      s#    
 ' ! 8? r   