Add missing statement in an EventControllerMotion example

This commit is contained in:
markochk
2022-02-24 19:06:59 +01:00
parent 1727c88c18
commit a18c773ab5

View File

@@ -514,6 +514,7 @@ See also: [EventControllerMotion](https://docs.gtk.org/gtk4/class.EventControlle
```python
evk = Gtk.EventControllerMotion.new()
evk.connect("motion", self.mouse_motion)
self.add_controller(evk)
def mouse_motion(self, motion, x, y):
print(f"Mouse moved to {x}, {y}")
```