
    gi                    4    d Z ddlmZ ddlmZ ddlmZ ddZy)zPlatform module.    )annotations)
ForwardMsg)get_script_run_ctxc                v    t               }|yt               }| |j                  _        |j	                  |       y)zW
    Sends a string message to the parent window (when host configuration allows).
    N)r   r   parent_messagemessageenqueue)r   ctxfwd_msgs      G/var/www/openai/venv/lib/python3.12/site-packages/streamlit/platform.pypost_parent_messager      s5     
C
{lG%,G"KK    N)r   strreturnNone)__doc__
__future__r   streamlit.proto.ForwardMsg_pb2r   7streamlit.runtime.scriptrunner_utils.script_run_contextr   r    r   r   <module>r      s     " 5 V
r   