winrt-Windows.UI.Accessibility 2.0.0b2__tar.gz → 2.1.0__tar.gz

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.
Files changed (21) hide show
  1. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/PKG-INFO +3 -1
  2. winrt_windows_ui_accessibility-2.1.0/all-requirements.txt +3 -0
  3. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/py.Windows.UI.Accessibility.cpp +50 -58
  4. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_ui_accessibility-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_ui_accessibility-2.1.0/setup.py +31 -0
  8. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/winrt/_winrt_windows_ui_accessibility.pyi +6 -6
  9. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/winrt/windows/ui/accessibility/__init__.py +1 -1
  10. winrt_windows_ui_accessibility-2.1.0/winrt/windows/ui/accessibility/py.typed +0 -0
  11. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/winrt_Windows.UI.Accessibility.egg-info/PKG-INFO +3 -1
  12. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/winrt_Windows.UI.Accessibility.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_ui_accessibility-2.1.0/winrt_Windows.UI.Accessibility.egg-info/requires.txt +4 -0
  14. winrt-Windows.UI.Accessibility-2.0.0b2/all-requirements.txt +0 -3
  15. winrt-Windows.UI.Accessibility-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.UI.Accessibility-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.UI.Accessibility-2.0.0b2/winrt_Windows.UI.Accessibility.egg-info/requires.txt +0 -4
  18. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/README.md +0 -0
  19. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/setup.cfg +0 -0
  20. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/winrt_Windows.UI.Accessibility.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.UI.Accessibility-2.0.0b2 → winrt_windows_ui_accessibility-2.1.0}/winrt_Windows.UI.Accessibility.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Accessibility
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
16
18
 
17
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
20
 
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
+
3
+ winrt-Windows.Foundation[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.UI.Accessibility.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::UI::Accessibility
7
6
  {
8
7
  // ----- ScreenReaderPositionChangedEventArgs class --------------------
@@ -24,14 +23,14 @@ namespace py::cpp::Windows::UI::Accessibility
24
23
 
25
24
  static PyObject* ScreenReaderPositionChangedEventArgs_get_IsReadingText(py::wrapper::Windows::UI::Accessibility::ScreenReaderPositionChangedEventArgs* self, void* /*unused*/) noexcept
26
25
  {
27
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs", L"IsReadingText"))
28
- {
29
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
30
- return nullptr;
31
- }
32
-
33
26
  try
34
27
  {
28
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs", L"IsReadingText"))
29
+ {
30
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
31
+ return nullptr;
32
+ }
33
+
35
34
  return py::convert(self->obj.IsReadingText());
36
35
  }
37
36
  catch (...)
@@ -43,14 +42,14 @@ namespace py::cpp::Windows::UI::Accessibility
43
42
 
44
43
  static PyObject* ScreenReaderPositionChangedEventArgs_get_ScreenPositionInRawPixels(py::wrapper::Windows::UI::Accessibility::ScreenReaderPositionChangedEventArgs* self, void* /*unused*/) noexcept
45
44
  {
46
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs", L"ScreenPositionInRawPixels"))
47
- {
48
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
49
- return nullptr;
50
- }
51
-
52
45
  try
53
46
  {
47
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs", L"ScreenPositionInRawPixels"))
48
+ {
49
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
50
+ return nullptr;
51
+ }
52
+
54
53
  return py::convert(self->obj.ScreenPositionInRawPixels());
55
54
  }
56
55
  catch (...)
@@ -96,23 +95,20 @@ namespace py::cpp::Windows::UI::Accessibility
96
95
  { }
97
96
  };
98
97
 
99
- static PyType_Slot _type_slots_ScreenReaderPositionChangedEventArgs[] =
100
- {
98
+ static PyType_Slot _type_slots_ScreenReaderPositionChangedEventArgs[] = {
101
99
  { Py_tp_new, reinterpret_cast<void*>(_new_ScreenReaderPositionChangedEventArgs) },
102
100
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ScreenReaderPositionChangedEventArgs) },
103
101
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ScreenReaderPositionChangedEventArgs) },
104
102
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ScreenReaderPositionChangedEventArgs) },
105
- { },
103
+ { }
106
104
  };
107
105
 
108
- static PyType_Spec type_spec_ScreenReaderPositionChangedEventArgs =
109
- {
106
+ static PyType_Spec type_spec_ScreenReaderPositionChangedEventArgs = {
110
107
  "winrt._winrt_windows_ui_accessibility.ScreenReaderPositionChangedEventArgs",
111
108
  sizeof(py::wrapper::Windows::UI::Accessibility::ScreenReaderPositionChangedEventArgs),
112
109
  0,
113
110
  Py_TPFLAGS_DEFAULT,
114
- _type_slots_ScreenReaderPositionChangedEventArgs
115
- };
111
+ _type_slots_ScreenReaderPositionChangedEventArgs};
116
112
 
117
113
  // ----- ScreenReaderService class --------------------
118
114
 
@@ -155,14 +151,14 @@ namespace py::cpp::Windows::UI::Accessibility
155
151
 
156
152
  static PyObject* ScreenReaderService_get_CurrentScreenReaderPosition(py::wrapper::Windows::UI::Accessibility::ScreenReaderService* self, void* /*unused*/) noexcept
157
153
  {
158
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Accessibility.ScreenReaderService", L"CurrentScreenReaderPosition"))
159
- {
160
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
161
- return nullptr;
162
- }
163
-
164
154
  try
165
155
  {
156
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Accessibility.ScreenReaderService", L"CurrentScreenReaderPosition"))
157
+ {
158
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
159
+ return nullptr;
160
+ }
161
+
166
162
  return py::convert(self->obj.CurrentScreenReaderPosition());
167
163
  }
168
164
  catch (...)
@@ -174,14 +170,14 @@ namespace py::cpp::Windows::UI::Accessibility
174
170
 
175
171
  static PyObject* ScreenReaderService_add_ScreenReaderPositionChanged(py::wrapper::Windows::UI::Accessibility::ScreenReaderService* self, PyObject* arg) noexcept
176
172
  {
177
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Accessibility.ScreenReaderService", L"ScreenReaderPositionChanged"))
178
- {
179
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
180
- return nullptr;
181
- }
182
-
183
173
  try
184
174
  {
175
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Accessibility.ScreenReaderService", L"ScreenReaderPositionChanged"))
176
+ {
177
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
178
+ return nullptr;
179
+ }
180
+
185
181
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::Accessibility::ScreenReaderService, winrt::Windows::UI::Accessibility::ScreenReaderPositionChangedEventArgs>>(arg);
186
182
 
187
183
  return py::convert(self->obj.ScreenReaderPositionChanged(param0));
@@ -195,14 +191,14 @@ namespace py::cpp::Windows::UI::Accessibility
195
191
 
196
192
  static PyObject* ScreenReaderService_remove_ScreenReaderPositionChanged(py::wrapper::Windows::UI::Accessibility::ScreenReaderService* self, PyObject* arg) noexcept
197
193
  {
198
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Accessibility.ScreenReaderService", L"ScreenReaderPositionChanged"))
199
- {
200
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
201
- return nullptr;
202
- }
203
-
204
194
  try
205
195
  {
196
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Accessibility.ScreenReaderService", L"ScreenReaderPositionChanged"))
197
+ {
198
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
199
+ return nullptr;
200
+ }
201
+
206
202
  auto param0 = py::convert_to<winrt::event_token>(arg);
207
203
 
208
204
  self->obj.ScreenReaderPositionChanged(param0);
@@ -252,39 +248,35 @@ namespace py::cpp::Windows::UI::Accessibility
252
248
  { }
253
249
  };
254
250
 
255
- static PyType_Slot _type_slots_ScreenReaderService[] =
256
- {
251
+ static PyType_Slot _type_slots_ScreenReaderService[] = {
257
252
  { Py_tp_new, reinterpret_cast<void*>(_new_ScreenReaderService) },
258
253
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ScreenReaderService) },
259
254
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ScreenReaderService) },
260
255
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ScreenReaderService) },
261
- { },
256
+ { }
262
257
  };
263
258
 
264
- static PyType_Spec type_spec_ScreenReaderService =
265
- {
259
+ static PyType_Spec type_spec_ScreenReaderService = {
266
260
  "winrt._winrt_windows_ui_accessibility.ScreenReaderService",
267
261
  sizeof(py::wrapper::Windows::UI::Accessibility::ScreenReaderService),
268
262
  0,
269
263
  Py_TPFLAGS_DEFAULT,
270
- _type_slots_ScreenReaderService
271
- };
264
+ _type_slots_ScreenReaderService};
272
265
 
273
266
  // ----- Windows.UI.Accessibility Initialization --------------------
274
- PyDoc_STRVAR(module_doc, "Windows::UI::Accessibility");
275
-
276
267
 
277
- static PyModuleDef module_def
278
- = {PyModuleDef_HEAD_INIT,
279
- "_winrt_windows_ui_accessibility",
280
- module_doc,
281
- 0,
282
- nullptr,
283
- nullptr,
284
- nullptr,
285
- nullptr,
286
- nullptr};
268
+ PyDoc_STRVAR(module_doc, "Windows.UI.Accessibility");
287
269
 
270
+ static PyModuleDef module_def = {
271
+ PyModuleDef_HEAD_INIT,
272
+ "_winrt_windows_ui_accessibility",
273
+ module_doc,
274
+ 0,
275
+ nullptr,
276
+ nullptr,
277
+ nullptr,
278
+ nullptr,
279
+ nullptr};
288
280
  } // py::cpp::Windows::UI::Accessibility
289
281
 
290
282
  PyMODINIT_FUNC PyInit__winrt_windows_ui_accessibility(void) noexcept
@@ -1,7 +1,7 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
30
30
  optional-dependencies.all = { file = "all-requirements.txt" }
31
31
 
32
32
  [tool.setuptools.package-data]
33
- winrt = ["*.pyi"]
33
+ "*" = ["*.pyi", "py.typed"]
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.2
3
+ winrt-runtime==2.1.0
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from setuptools.command.build_ext import build_ext
5
+ from winrt_sdk import get_include_dirs
6
+
7
+
8
+ class build_ext_ex(build_ext):
9
+ def build_extension(self, ext):
10
+ if self.compiler.compiler_type == "msvc":
11
+ ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
+ elif self.compiler.compiler_type == "mingw32":
13
+ ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
14
+ ext.extra_link_args = ["-loleaut32"]
15
+ else:
16
+ raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
17
+
18
+ build_ext.build_extension(self, ext)
19
+
20
+
21
+ setup(
22
+ cmdclass = {'build_ext': build_ext_ex},
23
+ ext_modules=[
24
+ Extension(
25
+ "winrt._winrt_windows_ui_accessibility",
26
+ sources=["py.Windows.UI.Accessibility.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,7 +9,7 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
12
+ import winrt.windows.foundation as windows_foundation
13
13
 
14
14
  Self = typing.TypeVar('Self')
15
15
 
@@ -20,15 +20,15 @@ class ScreenReaderPositionChangedEventArgs(winrt.system.Object):
20
20
  @_property
21
21
  def is_reading_text(self) -> bool: ...
22
22
  @_property
23
- def screen_position_in_raw_pixels(self) -> winrt.windows.foundation.Rect: ...
23
+ def screen_position_in_raw_pixels(self) -> windows_foundation.Rect: ...
24
24
 
25
25
  @typing.final
26
26
  class ScreenReaderService(winrt.system.Object):
27
27
  @staticmethod
28
28
  def _from(obj: winrt.system.Object, /) -> ScreenReaderService: ...
29
- def __new__(cls: typing.Type[ScreenReaderService]) -> ScreenReaderService:...
30
- def add_screen_reader_position_changed(self, handler: winrt.windows.foundation.TypedEventHandler[ScreenReaderService, ScreenReaderPositionChangedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
31
- def remove_screen_reader_position_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
29
+ def __new__(cls: typing.Type[ScreenReaderService]) -> ScreenReaderService: ...
30
+ def add_screen_reader_position_changed(self, handler: windows_foundation.TypedEventHandler[ScreenReaderService, ScreenReaderPositionChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
31
+ def remove_screen_reader_position_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
32
32
  @_property
33
33
  def current_screen_reader_position(self) -> typing.Optional[ScreenReaderPositionChangedEventArgs]: ...
34
34
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_ui_accessibility
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Accessibility
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
16
18
 
17
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
20
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_ui_accessibility.pyi
9
9
  winrt/windows/ui/accessibility/__init__.py
10
+ winrt/windows/ui/accessibility/py.typed
10
11
  winrt_Windows.UI.Accessibility.egg-info/PKG-INFO
11
12
  winrt_Windows.UI.Accessibility.egg-info/SOURCES.txt
12
13
  winrt_Windows.UI.Accessibility.egg-info/dependency_links.txt
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.1.0
@@ -1,3 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
-
3
- winrt-Windows.Foundation[all]==2.0.0-beta.2
@@ -1 +0,0 @@
1
- 2.0.0-beta.2
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was automatically generated.
2
-
3
- from setuptools import Extension, setup
4
- from winrt_sdk import get_include_dirs
5
-
6
- setup(
7
- ext_modules=[
8
- Extension(
9
- "winrt._winrt_windows_ui_accessibility",
10
- sources=["py.Windows.UI.Accessibility.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.0.0-beta.2
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.0-beta.2