Its a simple code that i was testing
When i use cv2.imshow and subsequently waitkey() of opencv the pymouse module stops working and doesnt change mouse's co-ordinates but when i comment out the imshow and waitkey() m.move works properly here is my code and also a screenshot
import cv2
from pymouse import PyMouse
m = PyMouse()
img = cv2.imread("123.jpg")
cv2.imshow("img", img)![enter image description here][2]
cv2.waitKey(0)
m.move(0,0)
print "lastline"
the "lastline" never gets printed