From a18c773ab560fe79387585fd80e3ddf38fc858e4 Mon Sep 17 00:00:00 2001 From: markochk <36880601+markochk@users.noreply.github.com> Date: Thu, 24 Feb 2022 19:06:59 +0100 Subject: [PATCH] Add missing statement in an EventControllerMotion example --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a570089..8bc584f 100644 --- a/README.md +++ b/README.md @@ -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}") ```