I am trying to import NSWorkspace from Appkit in Python2.7 on Mac 10.7.4. I checked the pynopath in eclipse, its having pyObjc, pip packages, site packages paths but also am not able to import NSWorkspace, even though i can import Appkit.
The following doesn't work for you?
from AppKit import NSWorkspace
AppKit
should contain NSWorkspace
unless you're using a non-standard AppKit
module
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.