diff options
Diffstat (limited to 'interfaces/desktopEvent.py')
-rwxr-xr-x | interfaces/desktopEvent.py | 16 |
1 files changed, 16 insertions, 0 deletions
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
+ """
|