
    h                     ,    S \ S\S\ 4S jrSS\4S jjrg)
dictionary
valid_keysreturnc                 ~    0 n[        U R                  5       5       H  nX1;   d  M
  U R                  U5      X#'   M     U$ )zZremove and create new dict with key value pairs of dictionary, where key is in valid_keys )listkeyspop)r   r   new_dictionarykeys       q/var/www/fran/franai/venv/lib/python3.13/site-packages/customtkinter/windows/widgets/utility/utility_functions.pypop_from_dict_by_setr      s<    NJOO%&",.."5N '     c                 |    [        U 5      S:  a-  U(       a%  [        [        U R                  5       5       S35      egg)zMreturns True if kwargs are empty, False otherwise, raises error if not empty     zP are not supported arguments. Look at the documentation for supported arguments.TF)len
ValueErrorr   r   )kwargs_dictraise_errors     r   check_kwargs_emptyr      sH     ;![%5%5%7 89  :J  K  L  Lr   N)F)dictsetr   boolr    r   r   <module>r      s+   T s t 	$ 	r   