"Gabriel Genellina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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. >
Nice example. First line should be: from win32gui import GetDC, ReleaseDC -- Paul -- http://mail.python.org/mailman/listinfo/python-list