Draw rectangle on a Window DC

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Jan 4 21:21:53 EST 2007


At Thursday 4/1/2007 07:07, Raymond wrote:

>I want to Draw rectangle on Dc when gived a position. Can you teach 
>me? Let me view your code?

This is more a Windows question. See 
http://msdn.microsoft.com/library/en-us/gdi/rectangl_4b03.asp

py>from win32gui import GetDC
py>hdc=GetDC(0)
py>from win32gui import Rectangle
py>Rectangle(hdc, 100,100, 300,300)
py>ReleaseDC(hdc,0)
0
py>

You should see a white square on your screen.


-- 
Gabriel Genellina
Softlab SRL 


	

	
		
__________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 




More information about the Python-list mailing list