Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
refactor(a11y): reorder class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
daveenguyen committed Mar 20, 2019
1 parent fec6ba3 commit e9fbeea
Show file tree
Hide file tree
Showing 2 changed files with 163 additions and 176 deletions.
6 changes: 3 additions & 3 deletions atomacos/AXClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ def launchAppByBundleId(bundleID):
# NSWorkspaceLaunchAllowingClassicStartup does nothing on any
# modern system that doesn't have the classic environment installed.
# Encountered a bug when passing 0 for no options on 10.6 PyObjC.
NativeUIElement.launch_app_by_bundle_id(bundleID)
a11y.launch_app_by_bundle_id(bundleID)

@staticmethod
def launchAppByBundlePath(bundlePath, arguments=None):
"""Launch app with a given bundle path.
Return True if succeed.
"""
return NativeUIElement.launch_app_by_bundle_path(bundlePath, arguments)
return a11y.launch_app_by_bundle_path(bundlePath, arguments)

@staticmethod
def terminateAppByBundleId(bundleID):
Expand All @@ -120,7 +120,7 @@ def terminateAppByBundleId(bundleID):
Return True if succeed.
"""
return NativeUIElement.terminate_app_by_bundle_id(bundleID)
return a11y.terminate_app_by_bundle_id(bundleID)

@classmethod
def set_systemwide_timeout(cls, timeout=0.0):
Expand Down
Loading

0 comments on commit e9fbeea

Please sign in to comment.