
    G@d                     "    d Z ddlmZ d Zd ZdS )z0Module checking Spyder installation requirements    )parsec                    	 ddl }|                                }|                    d           |                    || d          }|                    dddd	d	
           |                    |d|j                  }|                    ddd           |                                 n# t          $ r Y nw xY wt          |           )z'Show warning using Tkinter if availabler   NSpyderleft)textjustifytopbothT   )sidefillexpandpadxpadyOK)r   commandbottomnone)r   r   r   )
tkinterTktitleLabelpackButtondestroymainloop	ExceptionRuntimeError)messagetkrootlabelbuttons        3lib/python3.11/site-packages/spyder/requirements.pyshow_warningr%      s     	uuww

8GV<<

F4br
JJJ4dDLAAt<<<    w

s   B(B+ +
B87B8c            	      ,   t          dd          } 	 ddl}| |j                 \  }}|j        }| t	          |          t	          |          k     rt          d|d|d|d	           dS dS # t          $ r t          d
| d         z             Y dS w xY w)zCheck Qt binding requirements)PyQt5z5.9)PySide2z5.12)pyqt5pyside2r   Nz/Please check Spyder installation requirements:
 z+ is required (found z).zzFailed to import qtpy.
Please check Spyder installation requirements:

qtpy 1.2.0+ and
%s %s+

are required to run Spyder.r)   )dictqtpyAPI
QT_VERSIONr   r%   ImportError)qt_infosr-   package_namerequired_ver
actual_vers        r$   check_qtr5       s    *4GHHHH,%-dh%7"l_
 Z  5#6#666L(LL,,,


D E E E E E 76
  , , , 3
 !)+ 	, 	, 	, 	, 	, 	,,s   AA- -"BBN)__doc__packaging.versionr   r%   r5        r$   <module>r:      sI    7 6 $ # # # # #     &, , , , ,r9   