a
    Df                     @   sb   d dl Z d dlZd dlmZ ddlmZ ddlmZmZ dej	ej
f Zdd Zed	kr^e  dS )
    N)QtCore   )Driver)NoSuchClassErrorNoSuchWidgetErrorz3Python User Interface Compiler %s for Qt version %sc               
   C   s  t jdtd} | jddddddd	 | jd
dddddd | jddddddd	 | jddddddd	 | jdddddddd d! t j| d"d#}|jd$d%d&d'd( |jd)d*ddd+d	 |jd,d-dd.d/d0d1d! | | |  \}}t|d2krtj	
d3 td2 t||d4 }d2}z| }W n tyT } z|| W Y d }~nd }~0  ty } z|| W Y d }~nd }~0  ty } z|| W Y d }~nfd }~0  ty } z|| W Y d }~n8d }~0  ty } z|| W Y d }~n
d }~0 0 t| d S )5Nzpyuic5 [options] <ui-file>)usageversionz-pz	--previewpreview
store_trueFz3show a preview of the UI instead of generating code)destactiondefaulthelpz-oz--outputoutput-FILEz.write generated code to FILE instead of stdout)r   r   metavarr   z-xz	--executeexecutez1generate extra code to test and display the classz-dz--debugdebugzshow debug outputz-iz--indentindentstoreint   Nz8set indent width to N spaces, tab if N is 0 [default: 4])r   r   typer   r   r   zCode generation options)titlez--import-fromZimport_fromZPACKAGEzSgenerate imports of pyrcc5 generated modules in the style 'from PACKAGE import ...')r   r   r   z--from-importsZfrom_importsz#the equivalent of '--import-from=.'z--resource-suffixZresource_suffixstringZ_rcZSUFFIXz>append SUFFIX to the basename of resource files [default: _rc]r   z+Error: one input ui-file must be specified
r   )optparseOptionParserVersion
add_optionOptionGroupadd_option_group
parse_argslensysstderrwriteexitr   ZinvokeIOErrorZ
on_IOErrorSyntaxErrorZon_SyntaxErrorr   Zon_NoSuchClassErrorr   Zon_NoSuchWidgetError	ExceptionZon_Exception)parsergoptsargsdriverexit_statuse r3   \/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/PyQt5/uic/pyuic.pymain#   sj    




 r5   __main__)r%   r   ZPyQt5r   r0   r   
exceptionsr   r   ZPYQT_VERSION_STRZQT_VERSION_STRr   r5   __name__r3   r3   r3   r4   <module>   s   <