Bases: Application
Wrapper for the Photoshop Application class.
Source code in src\utils\adobe.py
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 | class ApplicationHandler(Application):
"""Wrapper for the Photoshop Application class."""
def __init__(self, env: Optional[AppEnvironment] = None):
version = env.PS_VERSION if env else None
super().__init__(version=version)
self._env = env
# Set error dialog state
with suppress(Exception):
self.displayDialogs = DialogModes.DisplayErrorDialogs if (
env.PS_ERROR_DIALOG
) else DialogModes.DisplayNoDialogs
"""
* Handler Properties
"""
@auto_prop_cached
def _env(self) -> Optional[AppEnvironment]:
"""AppEnvironment: Global app environment object."""
return
def is_error_dialog_enabled(self) -> bool:
"""bool: Whether to allow error dialogs, defined in app environment object."""
if self._env:
return self._env.PS_ERROR_DIALOG
return False
|
Functions
is_error_dialog_enabled() -> bool
Source code in src\utils\adobe.py
| def is_error_dialog_enabled(self) -> bool:
"""bool: Whether to allow error dialogs, defined in app environment object."""
if self._env:
return self._env.PS_ERROR_DIALOG
return False
|