I cannot reproduce this behavior:
img1 = "img1.png" start = time.time() bl = SCREEN.getBottomRight() # here we can click with no effect
def handler(event): print time.time()-start, "in handler"; mouseMove(bl) mouseDown(Button.LEFT) mouseUp() event.repeat(3)
onAppear(img1, handler) observe(10)
prints out: 0.304000139236 in handler 4.20000004768 in handler 8.10000014305 in handler
the image is visible all the time
BTW: it is not recommended, to use a mouseDown() without a following mouseUp() - might lead to unexpected results.
I cannot reproduce this behavior:
img1 = "img1.png" getBottomRight( ) # here we can click with no effect
start = time.time()
bl = SCREEN.
def handler(event): Button. LEFT)
print time.time()-start, "in handler";
mouseMove(bl)
mouseDown(
mouseUp()
event.repeat(3)
onAppear(img1, handler)
observe(10)
prints out:
0.304000139236 in handler
4.20000004768 in handler
8.10000014305 in handler
the image is visible all the time
BTW: it is not recommended, to use a mouseDown() without a following mouseUp() - might lead to unexpected results.