o
    æ²ªgi  ã                   @  s6   d Z ddlmZ ddlmZ ddlmZ dd	d
„ZdS )zPlatform module.é    )Úannotations)Ú
ForwardMsg)Úget_script_run_ctxÚmessageÚstrÚreturnÚNonec                 C  s.   t ƒ }|du r	dS tƒ }| |j_| |¡ dS )zW
    Sends a string message to the parent window (when host configuration allows).
    N)r   r   Úparent_messager   Úenqueue)r   ÚctxÚfwd_msg© r   úN/var/www/html/chatdoc2/venv/lib/python3.10/site-packages/streamlit/platform.pyÚpost_parent_message   s   r   N)r   r   r   r   )Ú__doc__Ú
__future__r   Ústreamlit.proto.ForwardMsg_pb2r   Ú7streamlit.runtime.scriptrunner_utils.script_run_contextr   r   r   r   r   r   Ú<module>   s
   