Skip to main content
Glama

ClickUp Operator

by noah-vh
tk.cpython-312.pyc9.94 kB
� lMg-���dZddlZddlZddlZddlmZddlmZddlm Z m Z ddlm Z ddd giZ gd �ZGd �d e �Zd �ZeZ eZy)z� Tkinter GUI progressbar decorator for iterators. Usage: >>> from tqdm.tk import trange, tqdm >>> for i in trange(10): ... ... �N)�warn�)�TqdmExperimentalWarning� TqdmWarning)�tqdmz github.com/�richardsheridan� casperdcl)�tqdm_tk�ttkranger�trangec�f��eZdZdZ�fd�Zd�Zd�Zd�Zd d�Zd d�Z d�Z d �fd � Z e d ��Z �xZS) r a Experimental Tkinter GUI version of tqdm! Note: Window interactivity suffers if `tqdm_tk` is not running within a Tkinter mainloop and values are generated infrequently. In this case, consider calling `tqdm_tk.refresh()` frequently in the Tk thread. c����|j�}d|d<t|jdd��|d<d|v�_|j dd�}|j dd�}|j d d��_t ���|i|���jry|�G tj}|�tj��_ n4tj��_ ntj|��_ td t d � ��j#��_�jj'd�j(��jj+�j,��jj/dd��jj1d�fd��tj2�jd���_tj6�j��_t;j<�jd��}|j?�t;j@|�j8ddd��}|j?�t;jB|�j4d���_"�jF�'�jDjI�jF��n�jDjId���jDj?��j �2t;jJ|d�j(��}|j?�|r�jjM�yy#t$r td ��wxYw) a� This class accepts the following parameters *in addition* to the parameters accepted by `tqdm`. Parameters ---------- grab : bool, optional Grab the input across all windows of the process. tk_parent : `tkinter.Wm`, optional Parent Tk window. cancel_callback : Callable, optional Create a cancel button and set `cancel_callback` to be called when the cancel or window close button is clicked. T�gui�disableF�leave�grab� tk_parentN�cancel_callbackz9`tk_parent` required when using `tkinter.NoDefaultRoot()`zGUI is experimental/alpha��� stacklevel�WM_DELETE_WINDOW�-topmostrrc�<���jjdd�S)Nrr)� _tk_window� wm_attributes��selfs��SC:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\tqdm/tk.py�<lambda>z"tqdm_tk.__init__.<locals>.<lambda>Ps������)F�)F�z�ST�)U�)�value�)�paddingiX�center)� textvariable� wraplength�anchor�justifyi�)�variable�length)�maximum� indeterminate)�mode�Cancel)�text�command)'�copy�bool�get� _warn_leave�pop�_cancel_callback�super�__init__r�tkinter� _default_root�AttributeError�Tkr�Toplevelrr�_tk_dispatching_helper�_tk_dispatching�protocol�cancel�wm_title�descr�after� DoubleVar� _tk_n_var� StringVar� _tk_text_var�ttk�Frame�pack�Label� Progressbar�_tk_pbar�total� configure�Button�grab_set) r�args�kwargsrr� pbar_frame� _tk_label� _tk_button� __class__s ` �rr9ztqdm_tk.__init__!s�����������u� � ����I�u�!=�>��y��"�f�,����z�z�&�%�(���J�J�{�D�1� � &� � �+<�d� C��� ���$�)�&�)� �<�<� � � � Q�#�1�1� �� �")�*�*�,���")�"2�"2�"4���%�.�.�y�9�D�O� � (�*A�a�P�#�:�:�<��� ��� � �!3�T�[�[�A� ��� � ����+� ���%�%�j�!�4� �����a�!U�V� �*�*�4�?�?�!�D���#�-�-�d�o�o�>����Y�Y�t����:� ������I�I�j�t�7H�7H�),�X�x�Q� �������� �����=�� � �:�:� !� �M�M� #� #�D�J�J� #� 7� �M�M� #� #�� #� 9� � � ���� � � � ,����J�X�t�{�{�S�J� �O�O� � � �O�O� $� $� &� ��E"� Q�$�O�Q�Q� Q�s �M�Mc�|���jryd�_�j�5�jj��ddd��fd�}�jj d|��j s|�y�js&�jrtdtd��|�yy#1swY�qxYw)NTc����jjd�jj��js�jj �yy)N�idle)rrE�destroyr@�updaters�r�_closeztqdm_tk.close.<locals>._closens?��� �O�O� !� !�&�$�/�/�*A�*A� B��'�'����&�&�(�(r!rz-leave flag ignored if not in tkinter mainlooprr) r�get_lock� _instances�removerrArr@r5rr)rr_s` r�closez tqdm_tk.closees���� �<�<� ��� � �]�]�_� �O�O� "� "�4� (�� )� ��� � �!3�V�<��z�z� �H��%�%�����D� �Q�0� �H� &��_�s �B2�2B;c��y�N�)r�_�__s r�clearz tqdm_tk.clears�� r!c��|jj|j�|j}|dxsdj dd�|d<|j d i|��}d|vr'dj tjd|d���}|jj|�|js|jj�yy) N� bar_formatz{l_bar}<bar/>{r_bar}z{bar}z<bar/>�z \|?<bar/>\|?r)�maxsplitrf) rG�set�n� format_dict�replace� format_meter�join�re�splitrIr@rr^)rrgrh�d�msgs r�displayztqdm_tk.display�s��� �����4�6�6�"� � � ���\�?�D�.D�M�M� �X���,���d���$�!�$�� �s�?��'�'�"�(�(�?�C�!�D�E�C� �����c�"��#�#� �O�O� "� "� $�$r!c�(�|j||�yre)�set_description_str�rrD�refreshs r�set_descriptionztqdm_tk.set_description�s�� � � ��w�/r!c��||_|jsF|jj|�|r(|js|jj �yyyyre)rDrrrCr@r^r{s rrzztqdm_tk.set_description_str�sI���� ��|�|� �O�O� $� $�T� *��t�3�3����&�&�(� 4�w�r!c�\�|j�|j�|j�y)zf `cancel_callback()` followed by `close()` when close/cancel buttons clicked. N)r7rcrs rrBztqdm_tk.cancel�s%�� � � � ,� � !� !� #� � � � r!c���t|d�r=|�|jjdd��n|jj|d��t�|�|��y)z� Resets to 0 iterations for repeated use. Parameters ---------- total : int or float, optional. Total to use for the new bar. rON�dr-)r,r.� determinate)rP)�hasattrrOrQr8�reset)rrPrYs �rr�z tqdm_tk.reset�sP��� �4�� $��}�� � �'�'��/�'�J�� � �'�'��M�'�J� �� �E� �"r!c��tjjtjjjh}t j �j �D]$}|s�|j|vry|j}|r��&y)z3determine if Tkinter mainloop is dispatching eventsTF) r:�mainloop�__code__�Misc�sys�_current_frames�values�f_code�f_back)�codes�frames rr?ztqdm_tk._tk_dispatching_helper�sk���!�!�*�*�G�L�L�,A�,A�,J�,J�K���(�(�*�1�1�3�E���<�<�5�(��� � ���4� r!)NTre)�__name__� __module__� __qualname__�__doc__r9rcrirxr}rzrBr�� staticmethodr?� __classcell__)rYs@rr r sF����B'�H�4 � %�0�)�� #����r!r c�&�tt|�fi|��S)z4Shortcut for `tqdm.tk.tqdm(range(*args), **kwargs)`.)r �range)rTrUs rr r �s�� �5�$�<� *�6� *�*r!)r�rtr�r:� tkinter.ttkrJ�warningsr�stdrrr�std_tqdm� __author__�__all__r r r rfr!r�<module>r�sV��� � ����5�!��/��=� >� � 3��d�h�d�N+� �� �r!

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/noah-vh/mcp-server-clickup'

If you have feedback or need assistance with the MCP directory API, please join our Discord server