
    o'e                         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	        dej
        Zd Zed	k    r e             dS dS )
    N)QtCore   )Driver)NoSuchClassErrorNoSuchWidgetErrorzPython User Interface Compiler z for Qt version c            
         t          j        dt                    } |                     dddddd	           |                     d
ddddd           |                     dddddd	           |                     dddddd	           |                     dddddddd !           t          j        | d"#          }|                    d$d%d&d'(           |                    d)d*ddd+	           |                    d,d-dd.d/d0d1!           |                     |           |                                 \  }}t          |          d2k    r3t          j	        
                    d3           t          j        d2           t          ||d4                   }d2}	 |                                }n# t          $ r}|                    |           Y d }~nd }~wt           $ r}|                    |           Y d }~n}d }~wt$          $ r}|                    |           Y d }~nVd }~wt(          $ r}|                    |           Y d }~n/d }~wt,          $ r}|                    |           Y d }~nd }~ww xY wt          j        |           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-fromimport_fromPACKAGEzSgenerate imports of pyrcc5 generated modules in the style 'from PACKAGE import ...')r   r   r   z--from-importsfrom_importsz#the equivalent of '--import-from=.'z--resource-suffixresource_suffixstring_rc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   invokeIOError
on_IOErrorSyntaxErroron_SyntaxErrorr   on_NoSuchClassErrorr   on_NoSuchWidgetError	Exceptionon_Exception)parsergoptsargsdriverexit_statuses          /lib/python3.11/site-packages/PyQt5/uic/pyuic.pymainrB   #   sp   ")E  F
dKiF  H H H dJXsA  C C C dKiD  F F F dIGL 3  5 5 5
dJXg3K  M M M 	V+DEEEALL}if  h h hLL!| E  G G GLL$+<W5(Q  S S S A""$$JD$
4yyA~~
GHHH D$q'""FKmmoo   ! ! ! !a         & & &""1%%%%%%%% ' ' '##A&&&&&&&&   A H[sH   F* *
I/4GI/G55I/HI/)II/I**I/__main__)r-   r%   PyQt5r   r>   r   
exceptionsr   r   PYQT_VERSION_STRQT_VERSION_STRr'   rB   __name__     rA   <module>rK      s   . 


              ; ; ; ; ; ; ; ; ; DJCZCZCZ\b\q\q
r9 9 9x zDFFFFF rJ   