ó
½ÞZc           @   s‡   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 „  Z e d k rƒ e ƒ  n  d S(	   iÿÿÿÿN(   t   QtCorei   (   t   Driver(   t   NoSuchClassErrort   NoSuchWidgetErrors3   Python User Interface Compiler %s for Qt version %sc          C   s   t  j d d d t ƒ }  |  j d d d d d d	 d
 t d d ƒ|  j d d d d d
 d d d d d ƒ|  j d d d d d d	 d
 t d d ƒ|  j d d d d d d	 d
 t d d ƒ|  j d d d d d d d  d! d
 d" d d# d d$ ƒt  j |  d% d& ƒ} | j d' d d( d d) d d* ƒ| j d+ d d, d d	 d
 t d d- ƒ| j d. d d/ d d d  d0 d
 d1 d d2 d d3 ƒ|  j | ƒ |  j ƒ  \ } } t | ƒ d4 k rÇt	 j
 j d5 ƒ t	 j d4 ƒ n  t | | d6 ƒ } d4 } y | j ƒ  } Wnœ t k
 r} | j | ƒ n} t k
 r1} | j | ƒ n^ t k
 rP} | j | ƒ n? t k
 ro} | j | ƒ n  t k
 rŽ} | j | ƒ n Xt	 j | ƒ d  S(7   Nt   usages   pyuic5 [options] <ui-file>t   versions   -ps	   --previewt   destt   previewt   actiont
   store_truet   defaultt   helps3   show a preview of the UI instead of generating codes   -os   --outputt   outputt   -t   metavart   FILEs.   write generated code to FILE instead of stdouts   -xs	   --executet   executes1   generate extra code to test and display the classs   -ds   --debugt   debugs   show debug outputs   -is   --indentt   indentt   storet   typet   inti   t   Ns8   set indent width to N spaces, tab if N is 0 [default: 4]t   titles   Code generation optionss   --import-fromt   import_fromt   PACKAGEsS   generate imports of pyrcc5 generated modules in the style 'from PACKAGE import ...'s   --from-importst   from_importss#   the equivalent of '--import-from=.'s   --resource-suffixt   resource_suffixt   stringt   _rct   SUFFIXs>   append SUFFIX to the basename of resource files [default: _rc]i   s+   Error: one input ui-file must be specified
i    (   t   optparset   OptionParsert   Versiont
   add_optiont   Falset   OptionGroupt   add_option_groupt
   parse_argst   lent   syst   stderrt   writet   exitR   t   invoket   IOErrort
   on_IOErrort   SyntaxErrort   on_SyntaxErrorR   t   on_NoSuchClassErrorR   t   on_NoSuchWidgetErrort	   Exceptiont   on_Exception(   t   parsert   gt   optst   argst   drivert   exit_statust   e(    (    s.   lib/python2.7/site-packages/PyQt5/uic/pyuic.pyt   main#   sX    	t   __main__(   R(   R   t   PyQt5R    R9   R   t
   exceptionsR   R   t   PYQT_VERSION_STRt   QT_VERSION_STRR!   R<   t   __name__(    (    (    s.   lib/python2.7/site-packages/PyQt5/uic/pyuic.pyt   <module>   s   	<