Can we use PyObjc to call kAXTrustedCheckOptionPrompt?

Jake Wang <[email protected]> Sun, 4 Jan 2015 08:43:35 +0800
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <CALtF2524=+hZ246ECXxJg9cnB58oPLGSXmGNkFVwB9Eu8T3fGg@mail.gmail.com>
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.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net

_______________________________________________
Pyobjc-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev