Skip to content

Instantly share code, notes, and snippets.

from Cocoa import NSApp, NSEvent, NSKeyDownMask # , NSApplication
from Foundation import NSObject, NSLog
from PyObjCTools import AppHelper
from AppKit import NSApplication
# https://bitbucket.org/ronaldoussoren/pyobjc/
# you have to enable access for assistive devices in 'System Preferences>Universal Access>Keyboard'
class AppDelegate(NSObject):