From 0d2c1b013b3e645241aa82a9cd140c5346d54e0b Mon Sep 17 00:00:00 2001 From: alfrix Date: Thu, 25 Aug 2022 14:36:54 -0300 Subject: [PATCH] graph: fix error on touch --- ks_includes/widgets/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ks_includes/widgets/graph.py b/ks_includes/widgets/graph.py index fc86e569..9683f094 100644 --- a/ks_includes/widgets/graph.py +++ b/ks_includes/widgets/graph.py @@ -37,7 +37,7 @@ class HeaterGraph(Gtk.DrawingArea): @staticmethod def event_cb(da, ev): - if ev.ev_type == Gdk.EventType.BUTTON_PRESS: + if ev.type == Gdk.EventType.BUTTON_PRESS: x = ev.x y = ev.y logging.info(f"Graph area: {x} {y}")