a „oe©ã@s`ddlZddlZddlZddlZdZdZdZdd„Zdd„Zd d „Z e d kr\ddl Z e  ¡dS) éNz„This demo program is not designed to be run as a Script, but is probably used by some other test program. Please try another demo. z…This demo program can only be run from inside of Pythonwin You must start Pythonwin, and select 'Run' from the toolbar or File menu zØThis 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? cCsddl}| td¡dS)NrÚDemos)Úwin32uiÚ MessageBoxÚ NotScriptMsg)r©rúDC:\Program Files\Certbot\pkgs\pythonwin\pywin\Demos\app\demoutils.pyÚ NotAScript!srcCs&ddlm}|ƒ}|s"t td¡|S)Nr)Ú HaveGoodGUIr)Zpywin.framework.appr rrÚ NeedGUIMsg)r ÚrcrrrÚ NeedGoodGUI's   r c Cs–ddl}| ttjddtj¡}|tjkr’z.| ¡  ¡}t   |dddtjddd¡Wn6t j y�}z| d|d¡WYd}~n d}~00dS)Nrrz pythonwin.exez /app "%s"ézError executing command - %s) rrÚ NeedAppMsgÚsysÚargvÚwin32conZMB_YESNOZIDYESZ GetMainFrameZ GetSafeHwndÚwin32apiZ ShellExecuteÚerror)rr ÚparentZdetailsrrrÚNeedApp0s  ÿrÚ__main__) rrrrrr rrr rÚ__name__Z demoutilsrrrrÚs