dc = win32gui.GetDC(0) hwnd_dc = win32gui.WindowFromDC(dc) win32gui.LineTo(dc, posX,posY)
the above code draw the line on the display screen,