winrt-Windows.UI.Accessibility 2.3.0__tar.gz → 3.0.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.3.0 → winrt_windows_ui_accessibility-3.0.0}/PKG-INFO +4 -4
  2. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/all-requirements.txt +2 -2
  3. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/py.Windows.UI.Accessibility.cpp +42 -22
  4. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_ui_accessibility-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/setup.py +1 -1
  8. winrt_windows_ui_accessibility-3.0.0/winrt/_winrt_windows_ui_accessibility.pyi +35 -0
  9. winrt_windows_ui_accessibility-3.0.0/winrt/windows/ui/accessibility/__init__.py +13 -0
  10. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/winrt_Windows.UI.Accessibility.egg-info/PKG-INFO +4 -4
  11. winrt_windows_ui_accessibility-3.0.0/winrt_Windows.UI.Accessibility.egg-info/requires.txt +4 -0
  12. winrt_windows_ui_accessibility-2.3.0/pywinrt-version.txt +0 -1
  13. winrt_windows_ui_accessibility-2.3.0/winrt/_winrt_windows_ui_accessibility.pyi +0 -34
  14. winrt_windows_ui_accessibility-2.3.0/winrt/windows/ui/accessibility/__init__.py +0 -12
  15. winrt_windows_ui_accessibility-2.3.0/winrt_Windows.UI.Accessibility.egg-info/requires.txt +0 -4
  16. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/README.md +0 -0
  17. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/setup.cfg +0 -0
  18. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/winrt/windows/ui/accessibility/py.typed +0 -0
  19. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/winrt_Windows.UI.Accessibility.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.0}/winrt_Windows.UI.Accessibility.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_ui_accessibility-2.3.0 → winrt_windows_ui_accessibility-3.0.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.3.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-Windows.Foundation[all]==2.3.0
3
+ winrt-Windows.Foundation[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.UI.Accessibility.h"
4
4
 
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::UI::Accessibility
38
38
  return nullptr;
39
39
  }
40
40
 
41
- return py::convert(self->obj.IsReadingText());
41
+ return py::convert([&]()
42
+ {
43
+ auto _gil = release_gil();
44
+ return self->obj.IsReadingText();
45
+ }());
42
46
  }
43
47
  catch (...)
44
48
  {
@@ -64,7 +68,11 @@ namespace py::cpp::Windows::UI::Accessibility
64
68
  return nullptr;
65
69
  }
66
70
 
67
- return py::convert(self->obj.ScreenPositionInRawPixels());
71
+ return py::convert([&]()
72
+ {
73
+ auto _gil = release_gil();
74
+ return self->obj.ScreenPositionInRawPixels();
75
+ }());
68
76
  }
69
77
  catch (...)
70
78
  {
@@ -100,22 +108,19 @@ namespace py::cpp::Windows::UI::Accessibility
100
108
  static PyMethodDef _methods_ScreenReaderPositionChangedEventArgs[] = {
101
109
  { "_assign_array_", _assign_array_ScreenReaderPositionChangedEventArgs, METH_O | METH_STATIC, nullptr },
102
110
  { "_from", reinterpret_cast<PyCFunction>(_from_ScreenReaderPositionChangedEventArgs), METH_O | METH_STATIC, nullptr },
103
- { }
104
- };
111
+ { }};
105
112
 
106
113
  static PyGetSetDef _getset_ScreenReaderPositionChangedEventArgs[] = {
107
114
  { "is_reading_text", reinterpret_cast<getter>(ScreenReaderPositionChangedEventArgs_get_IsReadingText), nullptr, nullptr, nullptr },
108
115
  { "screen_position_in_raw_pixels", reinterpret_cast<getter>(ScreenReaderPositionChangedEventArgs_get_ScreenPositionInRawPixels), nullptr, nullptr, nullptr },
109
- { }
110
- };
116
+ { }};
111
117
 
112
118
  static PyType_Slot _type_slots_ScreenReaderPositionChangedEventArgs[] = {
113
119
  { Py_tp_new, reinterpret_cast<void*>(_new_ScreenReaderPositionChangedEventArgs) },
114
120
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ScreenReaderPositionChangedEventArgs) },
115
121
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ScreenReaderPositionChangedEventArgs) },
116
122
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ScreenReaderPositionChangedEventArgs) },
117
- { }
118
- };
123
+ { }};
119
124
 
120
125
  static PyType_Spec type_spec_ScreenReaderPositionChangedEventArgs = {
121
126
  "winrt._winrt_windows_ui_accessibility.ScreenReaderPositionChangedEventArgs",
@@ -128,13 +133,13 @@ namespace py::cpp::Windows::UI::Accessibility
128
133
 
129
134
  static PyObject* _new_ScreenReaderService(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
130
135
  {
131
- if (kwds != nullptr)
136
+ if (kwds)
132
137
  {
133
138
  py::set_invalid_kwd_args_error();
134
139
  return nullptr;
135
140
  }
136
141
 
137
- auto arg_count = PyTuple_Size(args);
142
+ auto arg_count = PyTuple_GET_SIZE(args);
138
143
  if (arg_count == 0)
139
144
  {
140
145
  try
@@ -180,7 +185,11 @@ namespace py::cpp::Windows::UI::Accessibility
180
185
  return nullptr;
181
186
  }
182
187
 
183
- return py::convert(self->obj.CurrentScreenReaderPosition());
188
+ return py::convert([&]()
189
+ {
190
+ auto _gil = release_gil();
191
+ return self->obj.CurrentScreenReaderPosition();
192
+ }());
184
193
  }
185
194
  catch (...)
186
195
  {
@@ -208,7 +217,11 @@ namespace py::cpp::Windows::UI::Accessibility
208
217
 
209
218
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::Accessibility::ScreenReaderService, winrt::Windows::UI::Accessibility::ScreenReaderPositionChangedEventArgs>>(arg);
210
219
 
211
- return py::convert(self->obj.ScreenReaderPositionChanged(param0));
220
+ return py::convert([&]()
221
+ {
222
+ auto _gil = release_gil();
223
+ return self->obj.ScreenReaderPositionChanged(param0);
224
+ }());
212
225
  }
213
226
  catch (...)
214
227
  {
@@ -236,7 +249,11 @@ namespace py::cpp::Windows::UI::Accessibility
236
249
 
237
250
  auto param0 = py::convert_to<winrt::event_token>(arg);
238
251
 
239
- self->obj.ScreenReaderPositionChanged(param0);
252
+ {
253
+ auto _gil = release_gil();
254
+ self->obj.ScreenReaderPositionChanged(param0);
255
+ }
256
+
240
257
  Py_RETURN_NONE;
241
258
  }
242
259
  catch (...)
@@ -275,21 +292,18 @@ namespace py::cpp::Windows::UI::Accessibility
275
292
  { "remove_screen_reader_position_changed", reinterpret_cast<PyCFunction>(ScreenReaderService_remove_ScreenReaderPositionChanged), METH_O, nullptr },
276
293
  { "_assign_array_", _assign_array_ScreenReaderService, METH_O | METH_STATIC, nullptr },
277
294
  { "_from", reinterpret_cast<PyCFunction>(_from_ScreenReaderService), METH_O | METH_STATIC, nullptr },
278
- { }
279
- };
295
+ { }};
280
296
 
281
297
  static PyGetSetDef _getset_ScreenReaderService[] = {
282
298
  { "current_screen_reader_position", reinterpret_cast<getter>(ScreenReaderService_get_CurrentScreenReaderPosition), nullptr, nullptr, nullptr },
283
- { }
284
- };
299
+ { }};
285
300
 
286
301
  static PyType_Slot _type_slots_ScreenReaderService[] = {
287
302
  { Py_tp_new, reinterpret_cast<void*>(_new_ScreenReaderService) },
288
303
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ScreenReaderService) },
289
304
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ScreenReaderService) },
290
305
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ScreenReaderService) },
291
- { }
292
- };
306
+ { }};
293
307
 
294
308
  static PyType_Spec type_spec_ScreenReaderService = {
295
309
  "winrt._winrt_windows_ui_accessibility.ScreenReaderService",
@@ -330,6 +344,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_accessibility(void) noexcept
330
344
  return nullptr;
331
345
  }
332
346
 
347
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
348
+ if (!inspectable_meta_type)
349
+ {
350
+ return nullptr;
351
+ }
352
+
333
353
  auto object_type = py::get_object_type();
334
354
  if (!object_type)
335
355
  {
@@ -343,13 +363,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_accessibility(void) noexcept
343
363
  return nullptr;
344
364
  }
345
365
 
346
- py::pytype_handle ScreenReaderPositionChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_ScreenReaderPositionChangedEventArgs, object_bases.get(), nullptr)};
366
+ py::pytype_handle ScreenReaderPositionChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_ScreenReaderPositionChangedEventArgs, object_bases.get(), inspectable_meta_type)};
347
367
  if (!ScreenReaderPositionChangedEventArgs_type)
348
368
  {
349
369
  return nullptr;
350
370
  }
351
371
 
352
- py::pytype_handle ScreenReaderService_type{py::register_python_type(module.get(), &type_spec_ScreenReaderService, object_bases.get(), nullptr)};
372
+ py::pytype_handle ScreenReaderService_type{py::register_python_type(module.get(), &type_spec_ScreenReaderService, object_bases.get(), inspectable_meta_type)};
353
373
  if (!ScreenReaderService_type)
354
374
  {
355
375
  return nullptr;
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_ui_accessibility",
@@ -0,0 +1,35 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+
14
+ Self = typing.TypeVar('Self')
15
+
16
+ @typing.final
17
+ class ScreenReaderPositionChangedEventArgs(winrt.system.Object):
18
+ # System.Boolean Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs::get_IsReadingText()
19
+ @_property
20
+ def is_reading_text(self) -> bool: ...
21
+ # Windows.Foundation.Rect Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs::get_ScreenPositionInRawPixels()
22
+ @_property
23
+ def screen_position_in_raw_pixels(self) -> windows_foundation.Rect: ...
24
+
25
+ @typing.final
26
+ class ScreenReaderService(winrt.system.Object):
27
+ def __new__(cls: typing.Type[Self]) -> Self: ...
28
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Accessibility.ScreenReaderService::add_ScreenReaderPositionChanged(Windows.Foundation.TypedEventHandler`2<Windows.UI.Accessibility.ScreenReaderService,Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs>)
29
+ def add_screen_reader_position_changed(self, handler: windows_foundation.TypedEventHandler[ScreenReaderService, ScreenReaderPositionChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
30
+ # System.Void Windows.UI.Accessibility.ScreenReaderService::remove_ScreenReaderPositionChanged(Windows.Foundation.EventRegistrationToken)
31
+ def remove_screen_reader_position_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
32
+ # Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs Windows.UI.Accessibility.ScreenReaderService::get_CurrentScreenReaderPosition()
33
+ @_property
34
+ def current_screen_reader_position(self) -> ScreenReaderPositionChangedEventArgs: ...
35
+
@@ -0,0 +1,13 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_ui_accessibility import (
5
+ ScreenReaderPositionChangedEventArgs,
6
+ ScreenReaderService,
7
+ )
8
+
9
+ __all__ = [
10
+ "ScreenReaderPositionChangedEventArgs",
11
+ "ScreenReaderService",
12
+ ]
13
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Accessibility
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,4 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
@@ -1,34 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.foundation as windows_foundation
13
-
14
- Self = typing.TypeVar('Self')
15
-
16
- @typing.final
17
- class ScreenReaderPositionChangedEventArgs(winrt.system.Object):
18
- @staticmethod
19
- def _from(obj: winrt.system.Object, /) -> ScreenReaderPositionChangedEventArgs: ...
20
- @_property
21
- def is_reading_text(self) -> bool: ...
22
- @_property
23
- def screen_position_in_raw_pixels(self) -> windows_foundation.Rect: ...
24
-
25
- @typing.final
26
- class ScreenReaderService(winrt.system.Object):
27
- @staticmethod
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: windows_foundation.TypedEventHandler[ScreenReaderService, ScreenReaderPositionChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
31
- def remove_screen_reader_position_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
32
- @_property
33
- def current_screen_reader_position(self) -> typing.Optional[ScreenReaderPositionChangedEventArgs]: ...
34
-
@@ -1,12 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_ui_accessibility
5
-
6
- __all__ = [
7
- "ScreenReaderPositionChangedEventArgs",
8
- "ScreenReaderService",
9
- ]
10
-
11
- ScreenReaderPositionChangedEventArgs = _winrt_windows_ui_accessibility.ScreenReaderPositionChangedEventArgs
12
- ScreenReaderService = _winrt_windows_ui_accessibility.ScreenReaderService
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0