Exemplo n.º 1
0
 def set_cursor(self, image, hot_spot):
     hx, hy = Vector.from_anything(hot_spot)
     cursor = pyglet.window.ImageMouseCursor(image, hx, hy)
     self.window.set_mouse_cursor(cursor)
Exemplo n.º 2
0
 def xyw_from_xyp(self, xyp):
     return self.origin + self.heading * Vector.from_anything(xyp)
Exemplo n.º 3
0
 def set_cursor(self, image, hot_spot):
     hx, hy = Vector.from_anything(hot_spot)
     cursor = pyglet.window.ImageMouseCursor(image, hx, hy)
     self.window.set_mouse_cursor(cursor)