Open a menu with the mouse

This commit is contained in:
Yohann D'ANELLO
2020-12-11 17:40:56 +01:00
parent bbe37eab97
commit d50f6701f4
3 changed files with 24 additions and 1 deletions

View File

@ -64,7 +64,8 @@ class DisplayManager:
# The click coordinates correspond to the coordinates
# of that display
display = d
raise Exception(f"click at ({y}, {x})", display)
if display:
display.handle_click(y - display.y, x - display.x)
def refresh(self) -> List[Display]:
displays = []