
    9 f?                         d dl Z d dlZd dlZd dlmZmZ g Zd Z e             ej        	                     e
e          d k    d          d             ZdS )    N)
set_qt_apiget_inputhook_name_and_funcc                  @   dD ]} t          d|             	 t          |            t          j        d           t                              |            dt          j                                        v rt          j        d= # t          $ r Y t          $ r Y w xY wdS )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    _/var/www/equiseq/venv/lib/python3.11/site-packages/IPython/terminal/tests/test_pt_inputhooks.py_get_qt_versr      s     $  ooo		sOOO#$GHHHc"""2:??,,,,Jx( 	 	 	D 	 	 	D	 s   A*B
B	BBz.No viable version of PyQt or PySide installed.)reasonc                      t          d          \  } }| dk    sJ | t          v sJ t          t                    dk    r/dD ]
}|| k    r nt          |          \  }}|| k    sJ ||k    sJ d S d S )Nr      )r   r   )r   r   len)gui_ret_not_guigui_ret2s       r   test_inputhook_qtr       s    
 -T22JGQd????j    
:% 	 	G'!! " 2'::!7""""7""""  #"    )r   r   pytestIPython.terminal.pt_inputhooksr   r   r   r   markskipifr   r    r    r   <module>r&      s    				      R R R R R R R R 
  "  C
OOq!Q   # # # # #r    