diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2023-07-15 14:44:41 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2023-07-15 14:59:43 +0200 |
commit | 02d676bda89c2fb8469ea81f7429c19c1e29df7c (patch) | |
tree | 11dae86a561a4800661e6c174b47611a704f857e /interfaces/desktopEvent.py |
Initial commit
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
+ """
|