From: Symion <kn...@ip...> - 2010-01-14 04:08:12
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hi there,<br> I have found some weird behavior with the scene.cursor.visible instruction running on Windows Vista.<br> <br> When I turn scene.cursor off, it does not reappear as expected when I move the (invisible) cursor from Scene to Desk top and back. Instead it remains invisible. This effect is easily repeatable.<br> <br> '''<br> Cursor visibility test<br> '''<br> from visual import *<br> <br> scene.autoscale, scene.range, scene.visible = False, 10, True<br> <br> b = 0<br> while 1:<br> a = scene.mouse.pos<br> if scene.mouse.events>0:<br> mk = scene.mouse.getevent()<br> if mk.release == 'left':<br> scene.cursor.visible = (scene.cursor.visible == False)<br> elif a != b:<br> print a,<br> b=a<br> <br> Left Mouse Click to turn cursor On/Off and test it.<br> <br> A work around:<br> Turn cursor Off then push your mouse far enough so that the cursor Should be outside the Scene.<br> Press left mouse key and the cursor reappears when Outside the Scene and becomes Invisible when Inside the Scene. Everything now seems to work as expected.<br> Turning the cursor on and off again will cause the problem to repeat.<br> <br> Symion<br> <br> </body> </html> |