mirror of
https://github.com/Taiko2k/GTK4PythonTutorial.git
synced 2025-07-21 20:51:10 +02:00
Add missing statement in an EventControllerMotion example
This commit is contained in:
@@ -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}")
|
||||
```
|
||||
|
Reference in New Issue
Block a user