From 02d676bda89c2fb8469ea81f7429c19c1e29df7c Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 15 Jul 2023 14:44:41 +0200 Subject: Initial commit --- interfaces/desktopEvent.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 interfaces/desktopEvent.py (limited to 'interfaces/desktopEvent.py') diff --git a/interfaces/desktopEvent.py b/interfaces/desktopEvent.py new file mode 100755 index 0000000..e8a30a4 --- /dev/null +++ b/interfaces/desktopEvent.py @@ -0,0 +1,16 @@ +from typing import Optional +from zope import interface +from zope.interface import Attribute + +class IDesktop(interface.Interface): + + queue = Attribute("""The queue to send the message""") + mapping = Attribute("""Correspondance between application and layer""") + + def getForegroundWindowTitle(sel) -> Optional[str]: + """ Return the name of the selected window + """ + + def start(self) -> None: + """ Start listening the events + """ -- cgit v1.2.3