, SDL2 (, , pygame), Window ( - ), , . (, _ O X). , - Window .
, Window , ( ), ( examples/animation/animate.py), , + mouse_pos.
mouse_pos , Window ( , Window Button , ).
animate.py:
class TestApp(App):
def on_mouse_pos(self, win, args):
print args
...
def build(self):
...
from kivy.core.window import Window
Window.bind(mouse_pos=self.on_mouse_pos)
return button
, , , . , , (, ), , - .
: Kivy Cython (SDL2) SDL2 SDL2, , SDL2, , , kivy/kivy .