graph: fix error on touch

This commit is contained in:
alfrix authored and Alfredo Monclus committed 2022-09-02 19:58:35 -03:00
1 parent 70e3091127
commit 0d2c1b013b
1 file changed
+1 -1
+1 -1
View File
@@ -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}")