winrt-Windows.UI.Accessibility 2.0.1__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.
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/PKG-INFO +3 -3
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/all-requirements.txt +2 -2
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/py.Windows.UI.Accessibility.cpp +50 -58
- winrt_windows_ui_accessibility-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/requirements.txt +2 -2
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/winrt/_winrt_windows_ui_accessibility.pyi +6 -6
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/winrt/windows/ui/accessibility/__init__.py +1 -1
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/winrt_Windows.UI.Accessibility.egg-info/PKG-INFO +3 -3
- winrt_windows_ui_accessibility-2.1.0/winrt_Windows.UI.Accessibility.egg-info/requires.txt +4 -0
- winrt_windows_ui_accessibility-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_ui_accessibility-2.0.1/winrt_Windows.UI.Accessibility.egg-info/requires.txt +0 -4
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/README.md +0 -0
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/setup.cfg +0 -0
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/setup.py +0 -0
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/winrt/windows/ui/accessibility/py.typed +0 -0
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/winrt_Windows.UI.Accessibility.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/winrt_Windows.UI.Accessibility.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_accessibility-2.0.1 → 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
|
|
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,9 +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.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
{winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/all-requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0
|
|
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
|
|
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
|
-
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
{winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
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) ->
|
|
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:
|
|
31
|
-
def remove_screen_reader_position_changed(self, token:
|
|
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,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Accessibility
|
|
3
|
-
Version: 2.0
|
|
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,9 +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.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
{winrt_windows_ui_accessibility-2.0.1 → winrt_windows_ui_accessibility-2.1.0}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|