aboutsummaryrefslogtreecommitdiff
path: root/interfaces/desktopEvent.py
blob: e8a30a4dbe410aac8beb0fcda971dfdb5943d3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
        """