commit 1e18fd3139d4fb2e1726f5f3b0d3757032a14e87 parent 5164d9b574186f9ed117af230b4ef448b62d2b1e Author: Yuval Langer <yuval.langer@gmail.com> Date: Thu, 27 Jan 2022 09:14:07 +0200 Go fully global. Diffstat:
M | content/2022-01-27-opencv-and-gtk.md | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/content/2022-01-27-opencv-and-gtk.md b/content/2022-01-27-opencv-and-gtk.md @@ -32,7 +32,7 @@ a handler to the `motion-notify-event` event. Now you can write your handler: ```python -def on_motion_notify_event(self, *args): +def on_motion_notify_event(*args): global current_mouse_location event = args[1]