All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Explore the source code of the class

# Copyright 2010-2014,,
# Released under the MIT License.
from org.sikuli.basics import HotkeyListener
from org.sikuli.basics import HotkeyManager
from org.sikuli.script import Env as JEnv

class Env(JEnv):

    def addHotkey(cls, key, modifiers, handler):
        class AnonyListener(HotkeyListener):
            def hotkeyPressed(self, event):
        return HotkeyManager.getInstance().addHotkey(key, modifiers, AnonyListener())