[Pyobjc-dev] Can we use PyObjc to call kAXTrustedCheckOptionPrompt?
Brought to you by:
ronaldoussoren
From: Jake W. <del...@gm...> - 2015-01-04 00:43:45
|
I would like to ask users for access of assistive devices in Python. In Objc, I saw it could be done via the code below: NSDictionary *options = @{(id)kAXTrustedCheckOptionPrompt : @YES}; BOOL accessibilityEnabled = AXIsProcessTrustedWithOptions((CFDictionaryRef)options); Can we use PyObjc to implement similar function in Python? Thanks a lot. |