
    	h                         S SK r S SKrS SKrS SKr\R
                  " S5      r " S S\R                  R                  R                  5      r	 " S S5      r
S rSS jr\S	:X  a	  \" S
5        gg)    Nz&{A4988850-49C3-11d0-AE5D-52342E000000}c                       \ rS rSrS/\R
                  R                  R                  R                  -   r\	/r
S rS rSrg)ConnectableServer   DoItc                 >    U R                  U R                  U45        g N)_BroadcastNotifyNotifyDoneItselfargs     iC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\win32com/demos/connect.pyr   ConnectableServer.DoIt   s    d//#8    c                 J    UR                  SS[        R                  SU5        g )Ni  r      )Invoke	pythoncomDISPATCH_METHOD)r   	interfacer   s      r   r
   ConnectableServer.NotifyDoneIt!   s    q)";";QDr    N)__name__
__module____qualname____firstlineno__win32comserverconnectr   _public_methods_IID_IConnectDemoEvents_connect_interfaces_r   r
   __static_attributes__r   r   r   r   r      sB    11BBC 339Er   r   c                   ,    \ rS rSrS/rS rS rS rSrg)ConnectableClient(   OnDoneItc                     S U l         g r   last_event_arg)r   s    r   __init__ConnectableClient.__init__/   s
    "r   c                 j    U[         :X  a)  [        R                  R                  R	                  U 5      $ g r   )r!   r   r   utilwrap)r   iids     r   _query_interface_#ConnectableClient._query_interface_4   s-     ((??'',,T22 )r   c                     Xl         g r   r)   r   s     r   r'   ConnectableClient.OnDoneIt;   s    !r   r)   N)	r   r   r   r   r    r+   r1   r'   r#   r   r   r   r%   r%   (   s    
 #|#
3"r   r%   c                     S Ul         U R                  U5        UR                   U:w  a  [        SU< SUR                   < 35      eU(       a  [        SU-  5        g g )NzSent z, but got back zSent and received %r)r*   r   RuntimeErrorprint)r   clientvalverboses       r   
CheckEventr;   ?   sY     F
KK#U3'9N9N8QRSS$s*+ r   c                    SS K nSS KnSS KnUR                  R                  R                  UR                  R                  R                  [        5       5      5      nUR                  R                  R                  5       n[        5       nUR                  X$[        5        [        X$SU 5        [        X$SU 5        [        X$SU 5        Sn[        X$XP5        U (       a  [!        S5        g g )Nr   Hellos   Here is a null> <zHere is a null> <u	   test-àòzEverything seemed to work!)win32com.client.connectwin32com.client.dynamicwin32com.server.policyr8   dynamicDispatchr   r.   r/   r   r   SimpleConnectionr%   Connectr!   r;   r7   )r:   r   r   
connectionr8   r9   s         r   testrF   K   s    ""!__$$--!!"3"56F ((99;J Fv'=>vw0v6@v5w?
Cvs,*+ r   __main__r   )r   )r   
pywintypeswin32com.server.connectr   win32com.server.utilIIDr!   r   r   r   r%   r;   rF   r   r   r   r   <module>rL      sm        $(PQ E//AA E&" ".,,* zG r   