
    %
i=
                        d dl Z d dlZd dlZd dlmZmZ  G d dej                  Z G d de          Z G d de          Z	d	 Z
 G d
 dej                  Z G d dej                  ZddZedk    r ed           dS dS )    N)dialogwindowc                   $    e Zd ZdZd Zd Zd ZdS )ControlzGeneric control classc                 h    t           j                            | t          j                               d S N)r   Wnd__init__win32ui	CreateWnd)selfs    C:\Users\Dell Inspiron 16\Desktop\tws\AgrotaPowerBi\back-agrota-powerbi\mcp-client-agrota\venv\Lib\site-packages\pythonwin/pywin/Demos/createwin.pyr
   zControl.__init__   s)    
D'"3"5"566666    c                     |                                  \  }}|                     |           |                     |           d S r   )
BeginPaintDoPaintEndPaint)r   dcpaintStructs      r   OnPaintzControl.OnPaint   s?    //++KRk"""""r   c                     d S r    r   r   s     r   r   zControl.DoPaint   s    r   N)__name__
__module____qualname____doc__r
   r   r   r   r   r   r   r      sG        7 7 7# # #
    r   r   c                       e Zd Zd ZdS )RedBoxc                 ~    |                     |                                 t          j        ddd                     d S )N   r   )FillSolidRectGetClientRectwin32apiRGBr   s     r   r   zRedBox.DoPaint    s8    
++--x|CA/F/FGGGGGr   Nr   r   r   r   r   r   r   r   r      s(        H H H H Hr   r   c                       e Zd Zd ZdS )RedBoxWithPiec                     t                               | |           |                                 }|                    |d         |d         |d         |d         dd|d         |d         dz             d S )Nr            )r   r   r#   Pie)r   r   rs      r   r   zRedBoxWithPie.DoPaint%   si    tR     
qtQqT1Q41q!QqT1Q419=====r   Nr&   r   r   r   r(   r(   $   s#        > > > > >r   r(   c            	         t           j        t           j        z  t           j        z  t           j        z  t           j        z  t           j        z  } t           j        t           j        z  }d}d}ddd||f| d dgg}t           j        |z  }|	                    ddt           j
        d|dz
  d	d
f|t           j        z  g           |S )N@   zRed boxr   )   zMS Sans Serif   Cancel      2      )win32conDS_MODALFRAMEWS_POPUP
WS_VISIBLE
WS_CAPTION
WS_SYSMENU
DS_SETFONTWS_CHILD
WS_TABSTOPappendIDCANCELBS_PUSHBUTTON)stylecswhdlgss         r   MakeDlgTemplaterJ   +   s    

	

	 
	 
		
 
	 
 
	X0	0B
A
A 
Q1aL%/CDC 	b AJJBB&&	
   Jr   c                       e Zd Zd ZdS )
TestDialogc                     t           j                            |           }t                      | _        | j                            d dt          j        t          j        z  d| d           |S )Nr      rO   Z   D     )	r   DialogOnInitDialogr   redboxCreateWindowr8   r?   r;   r   rcs     r   rT   zTestDialog.OnInitDialogM   s`    ]''--hh   33	
 	
 	
 	r   Nr   r   r   rT   r   r   r   rL   rL   L   s#            r   rL   c                       e Zd Zd ZdS )TestPieDialogc                     t           j                            |           }t                      | _        | j                            d dt          j        t          j        z  d| d           d S )NzRedBox with PierN   rR   )	r   rS   rT   r(   controlrV   r8   r?   r;   rW   s     r   rT   zTestPieDialog.OnInitDialog\   sc    ]''--$!! 33	
 	
 	
 	
 	
r   NrY   r   r   r   r[   r[   [   s#        

 

 

 

 

r   r[   c                     t          t                                }| r|                                 d S |                                 d S r   )r[   rJ   DoModalrV   )modalds     r   demorb   i   sD    o''((A 				r   __main__r*   )r   )r$   r8   r   	pywin.mfcr   r   r	   r   r   r(   rJ   rS   rL   r[   rb   r   r   r   r   <module>re      sd      $ $ $ $ $ $ $ $    fj   H H H H HW H H H
> > > > >F > > >  B       
 
 
 
 
FM 
 
 
    zDGGGGG r   