
    e                     4    d Z ddlmZ erddlZddlmZ d Zyy)z>
Compatibility functions for scoped and unscoped enum access.
   )PYQT6    N)sipc                    t        |       D cg c]  }|j                  d      s| }}|D ]  }t        | |      }t        |t        j
                        s*t        |      D cg c]  }|d   j                         s| }}|D ]X  }t        ||      }t        |t        j                        s*|j                  j                         D ]  \  }}t        |||        Z  yc c}w c c}w )a  
        Search enums in the given module and allow unscoped access.

        Taken from:
        https://github.com/pyqtgraph/pyqtgraph/blob/pyqtgraph-0.12.1/pyqtgraph/Qt.py#L331-L377
        and adapted to also copy enum values aliased under different names.

        Qr   N)dir
startswithgetattr
isinstancer   wrappertypeisupperenumEnumMeta__members__itemssetattr)	modulenameclass_names
class_nameklassattrib_namesattrib_nameattribvalues	            3/usr/lib/python3/dist-packages/qtpy/enums_compat.pypromote_enumsr      s     ),FLts7KtLL% 
	0JFJ/EeS__5-0ZMT47??;LDMLM+ 0 4!&$--8#)#5#5#;#;#= 0KD%E4/0	0
	0 M
 Ns   C#C#$C(=C()__doc__ r   r   r   r        r   <module>r"      s"    0 	r!   