graph: fix error on touch

This commit is contained in:
alfrix 2022-08-25 14:36:54 -03:00 committed by Alfredo Monclus
parent 70e3091127
commit 0d2c1b013b

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}")