Пример #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)
Пример #2
0
 def xyw_from_xyp(self, xyp):
     return self.origin + self.heading * Vector.from_anything(xyp)
Пример #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)