
    %
i                     z    d dl Z d dlZd dlZd dlZdZdZdZd Zd Zd Z	e
dk    rd dlZ ej                     dS dS )	    NzThis demo program is not designed to be run as a Script, but is
probably used by some other test program.  Please try another demo.
zThis demo program can only be run from inside of Pythonwin

You must start Pythonwin, and select 'Run' from the toolbar or File menu
zThis demo program is a 'Pythonwin Application'.

It is more demo code than an example of Pythonwin's capabilities.

To run it, you must execute the command:
pythonwin.exe /app "%s"

Would you like to execute it now?
c                  :    dd l }  | j        t          d           d S )Nr   Demos)win32ui
MessageBoxNotScriptMsg)r   s    C:\Users\Dell Inspiron 16\Desktop\tws\AgrotaPowerBi\back-agrota-powerbi\mcp-client-agrota\venv\Lib\site-packages\pythonwin/pywin/Demos/demoutils.py
NotAScriptr	   !   s&    NNNG|W-----    c                  ^    ddl m}   |             }|st          j        t          d           |S )Nr   )HaveGoodGUIr   )pywin.framework.appr   r   r   
NeedGUIMsg)r   rcs     r   NeedGoodGUIr   '   s?    //////	B 0:w///Ir
   c                     dd l }  | j        t          t          j        d         z  dt
          j                  }|t
          j        k    r	  | j                    	                                }t          j        |d ddt          j        d         z  d d           d S # t          j        $ r} | j        d|z  d           Y d }~d S d }~ww xY wd S )Nr   r   zpythonwin.exez	/app "%s"   zError executing command - %s)r   r   
NeedAppMsgsysargvwin32conMB_YESNOIDYESGetMainFrameGetSafeHwndwin32apiShellExecuteerror)r   r   parentdetailss       r   NeedAppr    0   s    NNN		J!4gx?P	Q	QB	X^	T)W)++7799F!o{SXa[/H$PQ     ~ 	T 	T 	TG=I7SSSSSSSSS	T s   
AB C(CC__main__)r   r   r   r   r   r   r   r	   r   r    __name__	demoutils r
   r   <module>r%      s    


   

	
. . .  T T T zI r
   