pyobjc-framework-UserNotificationsUI 10.3.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,38 @@
1
+ """
2
+ Python mapping for the UserNotificationsUI framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import AppKit
13
+ import UserNotifications
14
+ import objc
15
+ from . import _metadata
16
+
17
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
18
+ name="UserNotificationsUI",
19
+ frameworkIdentifier="com.apple.UserNotificationsUI",
20
+ frameworkPath=objc.pathForFramework(
21
+ "/System/Library/Frameworks/UserNotificationsUI.framework"
22
+ ),
23
+ globals_dict=globals(),
24
+ inline_list=None,
25
+ parents=(
26
+ UserNotifications,
27
+ AppKit,
28
+ ),
29
+ metadict=_metadata.__dict__,
30
+ )
31
+
32
+ globals()["__dir__"] = dir_func
33
+ globals()["__getattr__"] = getattr_func
34
+
35
+ del sys.modules["UserNotificationsUI._metadata"]
36
+
37
+
38
+ globals().pop("_setup")()
@@ -0,0 +1,94 @@
1
+ # This file is generated by objective.metadata
2
+ #
3
+ # Last update: Sat May 18 09:38:14 2024
4
+ #
5
+ # flake8: noqa
6
+
7
+ import objc, sys
8
+ from typing import NewType
9
+
10
+ if sys.maxsize > 2**32:
11
+
12
+ def sel32or64(a, b):
13
+ return b
14
+
15
+ else:
16
+
17
+ def sel32or64(a, b):
18
+ return a
19
+
20
+
21
+ if objc.arch == "arm64":
22
+
23
+ def selAorI(a, b):
24
+ return a
25
+
26
+ else:
27
+
28
+ def selAorI(a, b):
29
+ return b
30
+
31
+
32
+ misc = {}
33
+ constants = """$$"""
34
+ enums = """$UNNotificationContentExtensionMediaPlayPauseButtonTypeDefault@1$UNNotificationContentExtensionMediaPlayPauseButtonTypeNone@0$UNNotificationContentExtensionMediaPlayPauseButtonTypeOverlay@2$UNNotificationContentExtensionResponseOptionDismiss@1$UNNotificationContentExtensionResponseOptionDismissAndForwardAction@2$UNNotificationContentExtensionResponseOptionDoNotDismiss@0$"""
35
+ misc.update(
36
+ {
37
+ "UNNotificationContentExtensionMediaPlayPauseButtonType": NewType(
38
+ "UNNotificationContentExtensionMediaPlayPauseButtonType", int
39
+ ),
40
+ "UNNotificationContentExtensionResponseOption": NewType(
41
+ "UNNotificationContentExtensionResponseOption", int
42
+ ),
43
+ }
44
+ )
45
+ misc.update({})
46
+ misc.update({})
47
+ r = objc.registerMetaDataForSelector
48
+ objc._updatingMetadata(True)
49
+ try:
50
+ r(
51
+ b"NSObject",
52
+ b"didReceiveNotification:",
53
+ {"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
54
+ )
55
+ r(
56
+ b"NSObject",
57
+ b"didReceiveNotificationResponse:completionHandler:",
58
+ {
59
+ "required": False,
60
+ "retval": {"type": b"v"},
61
+ "arguments": {
62
+ 2: {"type": b"@"},
63
+ 3: {
64
+ "callable": {
65
+ "retval": {"type": b"v"},
66
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"Q"}},
67
+ },
68
+ "type": "@?",
69
+ },
70
+ },
71
+ },
72
+ )
73
+ r(b"NSObject", b"mediaPause", {"required": False, "retval": {"type": b"v"}})
74
+ r(b"NSObject", b"mediaPlay", {"required": False, "retval": {"type": b"v"}})
75
+ r(
76
+ b"NSObject",
77
+ b"mediaPlayPauseButtonFrame",
78
+ {"required": False, "retval": {"type": b"{CGRect={CGPoint=dd}{CGSize=dd}}"}},
79
+ )
80
+ r(
81
+ b"NSObject",
82
+ b"mediaPlayPauseButtonTintColor",
83
+ {"required": False, "retval": {"type": b"@"}},
84
+ )
85
+ r(
86
+ b"NSObject",
87
+ b"mediaPlayPauseButtonType",
88
+ {"required": False, "retval": {"type": b"Q"}},
89
+ )
90
+ finally:
91
+ objc._updatingMetadata(False)
92
+ expressions = {}
93
+
94
+ # END OF FILE
@@ -0,0 +1,58 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyobjc-framework-UserNotificationsUI
3
+ Version: 10.3.2
4
+ Summary: Wrappers for the framework UserNotificationsUI on macOS
5
+ Home-page: https://github.com/ronaldoussoren/pyobjc
6
+ Author: Ronald Oussoren
7
+ Author-email: pyobjc-dev@lists.sourceforge.net
8
+ License: MIT License
9
+ Keywords: PyObjC,UserNotificationsUI
10
+ Platform: MacOS X (>=10.16)
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Console
13
+ Classifier: Environment :: MacOS X :: Cocoa
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Natural Language :: English
17
+ Classifier: Operating System :: MacOS :: MacOS X
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Programming Language :: Objective C
29
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
+ Classifier: Topic :: Software Development :: User Interfaces
31
+ Requires-Python: >=3.8
32
+ Description-Content-Type: text/x-rst; charset=UTF-8
33
+ Requires-Dist: pyobjc-core>=10.3.2
34
+ Requires-Dist: pyobjc-framework-Cocoa>=10.3.2
35
+ Requires-Dist: pyobjc-core>=10.3.2
36
+ Requires-Dist: pyobjc-framework-UserNotifications>=10.3.2
37
+ Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
38
+ Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
39
+ Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
40
+
41
+
42
+ Wrappers for the "UserNotificationsUI" framework on macOS.
43
+
44
+ These wrappers don't include documentation, please check Apple's documentation
45
+ for information on how to use this framework and PyObjC's documentation
46
+ for general tips and tricks regarding the translation between Python
47
+ and (Objective-)C frameworks
48
+
49
+
50
+ Project links
51
+ -------------
52
+
53
+ * `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
54
+
55
+ * `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
56
+
57
+ * `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
58
+
@@ -0,0 +1,6 @@
1
+ UserNotificationsUI/__init__.py,sha256=W8luR2ToKZGXKwPGsfrQqQoKj-hwuYQf6Jrg3LTpwQc,964
2
+ UserNotificationsUI/_metadata.py,sha256=JS6NRD2quAEVGp5TjZtQkZS2j3gFHTgplYndbjQrdDQ,2567
3
+ pyobjc_framework_UserNotificationsUI-10.3.2.dist-info/METADATA,sha256=xi_Ixt1xjeinQcpk5fOHOTcwHcT0_IXQH9VxewJThJM,2375
4
+ pyobjc_framework_UserNotificationsUI-10.3.2.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
5
+ pyobjc_framework_UserNotificationsUI-10.3.2.dist-info/top_level.txt,sha256=0S6DZ4AWj2S0DjkKT7kRe6ZoEP2vWV0TohX7LcnU9oE,20
6
+ pyobjc_framework_UserNotificationsUI-10.3.2.dist-info/RECORD,,
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.6.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py2-none-any
5
+ Tag: py3-none-any
6
+
@@ -0,0 +1 @@
1
+ UserNotificationsUI