Пример #1
0
    def __init__(self, name):
        """
        Set up the notifyicon and the monitors
        """

        self.group = 0

        self.ICONFOLDER = "icons/"

        #the events that trigger the removal of a window
        self.REMOVE_EVENTS = (
            HSHELL_WINDOWDESTROYED,  #placeholder
        )

        #the events that trigger an additional window
        self.ADD_EVENTS = (
            HSHELL_WINDOWCREATED,  #placeholder
        )

        self.notifyicon = NotifyIcon(name, self.icon)

        self.add_hotkeys_to_notifyicon()
        self.notifyicon.register_hotkeys()

        self.notifyicon.register_shellhook()

        self.taskbar = Taskbar()

        self.monitors = Monitor.display_monitors()

        if self.monitors is not None:

            self.stop = False

        else:

            self.stop = True