Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/external/__pycache__/qt_for_kernel.cpython-39.pyc
Ðазад
a o�hs � @ s� d Z ddlZddlZddlmZmZmZmZmZm Z m Z mZmZm Z eee e e fZdd� Zdd� Ze� Zee�\ZZZZeee�ZdS )a Import Qt in a manner suitable for an IPython kernel. This is the import used for the `gui=qt` or `matplotlib=qt` initialization. Import Priority: if Qt has been imported anywhere else: use that if matplotlib has been imported and doesn't support v2 (<= 1.0.1): use PyQt4 @v1 Next, ask QT_API env variable if QT_API not set: ask matplotlib what it's using. If Qt4Agg or Qt5Agg, then use the version matplotlib is configured with else: (matplotlib said nothing) # this is the default path - nobody told us anything try in this order: PyQt default version, PySide, PyQt5 else: use what QT_API says Note that %gui's implementation will always set a `QT_API`, see `IPython.terminal.pt_inputhooks.get_inputhook_name_and_func` � N) �load_qt� loaded_api�enum_factory�QT_API_PYQT6�QT_API_PYSIDE6�QT_API_PYQT5�QT_API_PYSIDE2�QT_API_PYQT� QT_API_PYSIDE�QT_API_PYQT_DEFAULTc C s� | du rdS | j �dd�}|dkr�| j �dd�}|du r<dS |�� dkrNtgS |�� dkr`tgS |�� dkrrtgS td| ��n@|d kr�| j �d d�}|du r�dS |�� dkr�tgS td| ��dS ) z-Constraints placed on an imported matplotlib.N�backendZQt4Aggzbackend.qt4ZpysideZpyqt4Zpyqt4v2z3unhandled value for backend.qt4 from matplotlib: %rZQt5Aggzbackend.qt5Zpyqt5z3unhandled value for backend.qt5 from matplotlib: %r)ZrcParams�get�lowerr r r �ImportErrorr )�mplr Zmpqt� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/external/qt_for_kernel.py�matplotlib_optionsB s2 ��r c C s� t � } | dur| gS tj�dd�}|durDt|j�d��dk rDtgS tj �dd�}|du rpt |�pntttt tgS |tvr�td|d�t�f ��n|gS dS )zGReturn a list of acceptable QT APIs, in decreasing order of preference.NZ matplotlib�.)�1�0�2�QT_APIz'Invalid Qt API %r, valid values are: %rz, )r �sys�modulesr �tuple�__version__�splitr �os�environr r r r r �_qt_apis�RuntimeError�join)Zloadedr Zqt_apir r r �get_options\ s( ��r# )�__doc__r r ZIPython.external.qt_loadersr r r r r r r r r r r r r# Zapi_optsZQtCoreZQtGuiZQtSvgr Zenum_helperr r r r �<module> s !0�
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка