
    ^h?                         S SK r S SKrS SKrS SKJrJr  / rS r\" 5         \R                  R                  \
" \5      S :H  SS9S 5       rg)    N)
set_qt_apiget_inputhook_name_and_funcc                  D   S H}  n [        SU  35         [        U 5        [        R                  " S5        [        R                  U 5        S[        R                  R                  5       ;   a  [        R                  S	 M}  M     g! [         a     M  [         a     M  f = f)zIf any version of Qt is available, this will populate `guis_avail` with 'qt' and 'qtx'. Due
to the import mechanism, we can't import multiple versions of Qt in one session.)qtqt6qt5zTrying z!IPython.terminal.pt_inputhooks.qtQT_APIN)printr   	importlibimport_module
guis_availappendosenvironkeysImportErrorRuntimeError)guis    c/home/james-whalen/.local/lib/python3.13/site-packages/IPython/terminal/tests/test_pt_inputhooks.py_get_qt_versr      s     $uo		sO##$GHc"2::??,,JJx( - $  	 		s   A)B
B	BBz.No viable version of PyQt or PySide installed.)reasonc                      [        S5      u  pU S:w  d   eU [        ;   d   e[        [        5      S:  a,  S H
  nX :w  d  M
    O   [        W5      u  p1X0:X  d   eX2:w  d   eg g )Nr      )r   r   )r   r   len)gui_ret_not_guigui_ret2s       r   test_inputhook_qtr       st    
 -T2JGd??j   
:%G! & 2':""""""     )r   r   pytestIPython.terminal.pt_inputhooksr   r   r   r   markskipifr   r    r    r   <module>r&      s[    	   R 
"  
Oq!Q  ##r    