winrt-Windows.UI.Core.Preview 2.0.1__tar.gz → 2.2.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_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/PKG-INFO +5 -5
- winrt_windows_ui_core_preview-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/py.Windows.UI.Core.Preview.cpp +121 -80
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/pyproject.toml +3 -2
- winrt_windows_ui_core_preview-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/requirements.txt +2 -2
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/winrt/_winrt_windows_ui_core_preview.pyi +7 -7
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/winrt/windows/ui/core/preview/__init__.py +1 -1
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/winrt_Windows.UI.Core.Preview.egg-info/PKG-INFO +5 -5
- winrt_windows_ui_core_preview-2.2.0/winrt_Windows.UI.Core.Preview.egg-info/requires.txt +5 -0
- winrt_windows_ui_core_preview-2.0.1/all-requirements.txt +0 -4
- winrt_windows_ui_core_preview-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_ui_core_preview-2.0.1/winrt_Windows.UI.Core.Preview.egg-info/requires.txt +0 -5
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/README.md +0 -0
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/setup.cfg +0 -0
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/setup.py +0 -0
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/winrt/windows/ui/core/preview/py.typed +0 -0
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/winrt_Windows.UI.Core.Preview.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/winrt_Windows.UI.Core.Preview.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.0}/winrt_Windows.UI.Core.Preview.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Core.Preview
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.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,12 +10,12 @@ 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.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -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.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.UI.Core.Preview.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::UI::Core::Preview
|
|
7
6
|
{
|
|
8
7
|
// ----- CoreAppWindowPreview class --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 1)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.CoreAppWindowPreview", L"GetIdFromWindow", 1))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(1);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.CoreAppWindowPreview", L"GetIdFromWindow", 1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(1);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
auto param0 = py::convert_to<winrt::Windows::UI::WindowManagement::AppWindow>(args, 0);
|
|
40
46
|
|
|
41
47
|
return py::convert(winrt::Windows::UI::Core::Preview::CoreAppWindowPreview::GetIdFromWindow(param0));
|
|
@@ -87,23 +93,20 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
87
93
|
{ }
|
|
88
94
|
};
|
|
89
95
|
|
|
90
|
-
static PyType_Slot _type_slots_CoreAppWindowPreview[] =
|
|
91
|
-
{
|
|
96
|
+
static PyType_Slot _type_slots_CoreAppWindowPreview[] = {
|
|
92
97
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CoreAppWindowPreview) },
|
|
93
98
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CoreAppWindowPreview) },
|
|
94
99
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CoreAppWindowPreview) },
|
|
95
100
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CoreAppWindowPreview) },
|
|
96
|
-
{ }
|
|
101
|
+
{ }
|
|
97
102
|
};
|
|
98
103
|
|
|
99
|
-
static PyType_Spec type_spec_CoreAppWindowPreview =
|
|
100
|
-
{
|
|
104
|
+
static PyType_Spec type_spec_CoreAppWindowPreview = {
|
|
101
105
|
"winrt._winrt_windows_ui_core_preview.CoreAppWindowPreview",
|
|
102
106
|
sizeof(py::wrapper::Windows::UI::Core::Preview::CoreAppWindowPreview),
|
|
103
107
|
0,
|
|
104
108
|
Py_TPFLAGS_DEFAULT,
|
|
105
|
-
_type_slots_CoreAppWindowPreview
|
|
106
|
-
};
|
|
109
|
+
_type_slots_CoreAppWindowPreview};
|
|
107
110
|
|
|
108
111
|
static PyGetSetDef getset_CoreAppWindowPreview_Static[] = {
|
|
109
112
|
{ }
|
|
@@ -154,14 +157,21 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
154
157
|
|
|
155
158
|
if (arg_count == 0)
|
|
156
159
|
{
|
|
157
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"GetDeferral", 0))
|
|
158
|
-
{
|
|
159
|
-
py::set_arg_count_version_error(0);
|
|
160
|
-
return nullptr;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
160
|
try
|
|
164
161
|
{
|
|
162
|
+
static std::optional<bool> is_overload_present{};
|
|
163
|
+
|
|
164
|
+
if (!is_overload_present.has_value())
|
|
165
|
+
{
|
|
166
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"GetDeferral", 0);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (!is_overload_present.value())
|
|
170
|
+
{
|
|
171
|
+
py::set_arg_count_version_error(0);
|
|
172
|
+
return nullptr;
|
|
173
|
+
}
|
|
174
|
+
|
|
165
175
|
return py::convert(self->obj.GetDeferral());
|
|
166
176
|
}
|
|
167
177
|
catch (...)
|
|
@@ -179,14 +189,21 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
179
189
|
|
|
180
190
|
static PyObject* SystemNavigationCloseRequestedPreviewEventArgs_get_Handled(py::wrapper::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs* self, void* /*unused*/) noexcept
|
|
181
191
|
{
|
|
182
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled"))
|
|
183
|
-
{
|
|
184
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
185
|
-
return nullptr;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
192
|
try
|
|
189
193
|
{
|
|
194
|
+
static std::optional<bool> is_property_present{};
|
|
195
|
+
|
|
196
|
+
if (!is_property_present.has_value())
|
|
197
|
+
{
|
|
198
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled");
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (!is_property_present.value())
|
|
202
|
+
{
|
|
203
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
204
|
+
return nullptr;
|
|
205
|
+
}
|
|
206
|
+
|
|
190
207
|
return py::convert(self->obj.Handled());
|
|
191
208
|
}
|
|
192
209
|
catch (...)
|
|
@@ -198,12 +215,6 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
198
215
|
|
|
199
216
|
static int SystemNavigationCloseRequestedPreviewEventArgs_put_Handled(py::wrapper::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs* self, PyObject* arg, void* /*unused*/) noexcept
|
|
200
217
|
{
|
|
201
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled"))
|
|
202
|
-
{
|
|
203
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
204
|
-
return -1;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
218
|
if (arg == nullptr)
|
|
208
219
|
{
|
|
209
220
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -212,6 +223,19 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
212
223
|
|
|
213
224
|
try
|
|
214
225
|
{
|
|
226
|
+
static std::optional<bool> is_property_present{};
|
|
227
|
+
|
|
228
|
+
if (!is_property_present.has_value())
|
|
229
|
+
{
|
|
230
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled");
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
if (!is_property_present.value())
|
|
234
|
+
{
|
|
235
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
236
|
+
return -1;
|
|
237
|
+
}
|
|
238
|
+
|
|
215
239
|
auto param0 = py::convert_to<bool>(arg);
|
|
216
240
|
|
|
217
241
|
self->obj.Handled(param0);
|
|
@@ -260,23 +284,20 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
260
284
|
{ }
|
|
261
285
|
};
|
|
262
286
|
|
|
263
|
-
static PyType_Slot _type_slots_SystemNavigationCloseRequestedPreviewEventArgs[] =
|
|
264
|
-
{
|
|
287
|
+
static PyType_Slot _type_slots_SystemNavigationCloseRequestedPreviewEventArgs[] = {
|
|
265
288
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemNavigationCloseRequestedPreviewEventArgs) },
|
|
266
289
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemNavigationCloseRequestedPreviewEventArgs) },
|
|
267
290
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemNavigationCloseRequestedPreviewEventArgs) },
|
|
268
291
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemNavigationCloseRequestedPreviewEventArgs) },
|
|
269
|
-
{ }
|
|
292
|
+
{ }
|
|
270
293
|
};
|
|
271
294
|
|
|
272
|
-
static PyType_Spec type_spec_SystemNavigationCloseRequestedPreviewEventArgs =
|
|
273
|
-
{
|
|
295
|
+
static PyType_Spec type_spec_SystemNavigationCloseRequestedPreviewEventArgs = {
|
|
274
296
|
"winrt._winrt_windows_ui_core_preview.SystemNavigationCloseRequestedPreviewEventArgs",
|
|
275
297
|
sizeof(py::wrapper::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs),
|
|
276
298
|
0,
|
|
277
299
|
Py_TPFLAGS_DEFAULT,
|
|
278
|
-
_type_slots_SystemNavigationCloseRequestedPreviewEventArgs
|
|
279
|
-
};
|
|
300
|
+
_type_slots_SystemNavigationCloseRequestedPreviewEventArgs};
|
|
280
301
|
|
|
281
302
|
// ----- SystemNavigationManagerPreview class --------------------
|
|
282
303
|
|
|
@@ -301,14 +322,21 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
301
322
|
|
|
302
323
|
if (arg_count == 0)
|
|
303
324
|
{
|
|
304
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"GetForCurrentView", 0))
|
|
305
|
-
{
|
|
306
|
-
py::set_arg_count_version_error(0);
|
|
307
|
-
return nullptr;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
325
|
try
|
|
311
326
|
{
|
|
327
|
+
static std::optional<bool> is_overload_present{};
|
|
328
|
+
|
|
329
|
+
if (!is_overload_present.has_value())
|
|
330
|
+
{
|
|
331
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"GetForCurrentView", 0);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (!is_overload_present.value())
|
|
335
|
+
{
|
|
336
|
+
py::set_arg_count_version_error(0);
|
|
337
|
+
return nullptr;
|
|
338
|
+
}
|
|
339
|
+
|
|
312
340
|
return py::convert(winrt::Windows::UI::Core::Preview::SystemNavigationManagerPreview::GetForCurrentView());
|
|
313
341
|
}
|
|
314
342
|
catch (...)
|
|
@@ -326,14 +354,21 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
326
354
|
|
|
327
355
|
static PyObject* SystemNavigationManagerPreview_add_CloseRequested(py::wrapper::Windows::UI::Core::Preview::SystemNavigationManagerPreview* self, PyObject* arg) noexcept
|
|
328
356
|
{
|
|
329
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested"))
|
|
330
|
-
{
|
|
331
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
332
|
-
return nullptr;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
357
|
try
|
|
336
358
|
{
|
|
359
|
+
static std::optional<bool> is_event_present{};
|
|
360
|
+
|
|
361
|
+
if (!is_event_present.has_value())
|
|
362
|
+
{
|
|
363
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested");
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
if (!is_event_present.value())
|
|
367
|
+
{
|
|
368
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
369
|
+
return nullptr;
|
|
370
|
+
}
|
|
371
|
+
|
|
337
372
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs>>(arg);
|
|
338
373
|
|
|
339
374
|
return py::convert(self->obj.CloseRequested(param0));
|
|
@@ -347,14 +382,21 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
347
382
|
|
|
348
383
|
static PyObject* SystemNavigationManagerPreview_remove_CloseRequested(py::wrapper::Windows::UI::Core::Preview::SystemNavigationManagerPreview* self, PyObject* arg) noexcept
|
|
349
384
|
{
|
|
350
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested"))
|
|
351
|
-
{
|
|
352
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
353
|
-
return nullptr;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
385
|
try
|
|
357
386
|
{
|
|
387
|
+
static std::optional<bool> is_event_present{};
|
|
388
|
+
|
|
389
|
+
if (!is_event_present.has_value())
|
|
390
|
+
{
|
|
391
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested");
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if (!is_event_present.value())
|
|
395
|
+
{
|
|
396
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
397
|
+
return nullptr;
|
|
398
|
+
}
|
|
399
|
+
|
|
358
400
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
359
401
|
|
|
360
402
|
self->obj.CloseRequested(param0);
|
|
@@ -403,23 +445,20 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
403
445
|
{ }
|
|
404
446
|
};
|
|
405
447
|
|
|
406
|
-
static PyType_Slot _type_slots_SystemNavigationManagerPreview[] =
|
|
407
|
-
{
|
|
448
|
+
static PyType_Slot _type_slots_SystemNavigationManagerPreview[] = {
|
|
408
449
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemNavigationManagerPreview) },
|
|
409
450
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemNavigationManagerPreview) },
|
|
410
451
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemNavigationManagerPreview) },
|
|
411
452
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemNavigationManagerPreview) },
|
|
412
|
-
{ }
|
|
453
|
+
{ }
|
|
413
454
|
};
|
|
414
455
|
|
|
415
|
-
static PyType_Spec type_spec_SystemNavigationManagerPreview =
|
|
416
|
-
{
|
|
456
|
+
static PyType_Spec type_spec_SystemNavigationManagerPreview = {
|
|
417
457
|
"winrt._winrt_windows_ui_core_preview.SystemNavigationManagerPreview",
|
|
418
458
|
sizeof(py::wrapper::Windows::UI::Core::Preview::SystemNavigationManagerPreview),
|
|
419
459
|
0,
|
|
420
460
|
Py_TPFLAGS_DEFAULT,
|
|
421
|
-
_type_slots_SystemNavigationManagerPreview
|
|
422
|
-
};
|
|
461
|
+
_type_slots_SystemNavigationManagerPreview};
|
|
423
462
|
|
|
424
463
|
static PyGetSetDef getset_SystemNavigationManagerPreview_Static[] = {
|
|
425
464
|
{ }
|
|
@@ -448,20 +487,19 @@ namespace py::cpp::Windows::UI::Core::Preview
|
|
|
448
487
|
};
|
|
449
488
|
|
|
450
489
|
// ----- Windows.UI.Core.Preview Initialization --------------------
|
|
451
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Core::Preview");
|
|
452
490
|
|
|
491
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Core.Preview");
|
|
453
492
|
|
|
454
|
-
static PyModuleDef module_def
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
493
|
+
static PyModuleDef module_def = {
|
|
494
|
+
PyModuleDef_HEAD_INIT,
|
|
495
|
+
"_winrt_windows_ui_core_preview",
|
|
496
|
+
module_doc,
|
|
497
|
+
0,
|
|
498
|
+
nullptr,
|
|
499
|
+
nullptr,
|
|
500
|
+
nullptr,
|
|
501
|
+
nullptr,
|
|
502
|
+
nullptr};
|
|
465
503
|
} // py::cpp::Windows::UI::Core::Preview
|
|
466
504
|
|
|
467
505
|
PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(void) noexcept
|
|
@@ -499,12 +537,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(void) noexcept
|
|
|
499
537
|
return nullptr;
|
|
500
538
|
}
|
|
501
539
|
|
|
502
|
-
|
|
540
|
+
py::pytype_handle CoreAppWindowPreview_type{py::register_python_type(module.get(), &type_spec_CoreAppWindowPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CoreAppWindowPreview_Static.get()))};
|
|
541
|
+
if (!CoreAppWindowPreview_type)
|
|
503
542
|
{
|
|
504
543
|
return nullptr;
|
|
505
544
|
}
|
|
506
545
|
|
|
507
|
-
|
|
546
|
+
py::pytype_handle SystemNavigationCloseRequestedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_SystemNavigationCloseRequestedPreviewEventArgs, object_bases.get(), nullptr)};
|
|
547
|
+
if (!SystemNavigationCloseRequestedPreviewEventArgs_type)
|
|
508
548
|
{
|
|
509
549
|
return nullptr;
|
|
510
550
|
}
|
|
@@ -515,7 +555,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(void) noexcept
|
|
|
515
555
|
return nullptr;
|
|
516
556
|
}
|
|
517
557
|
|
|
518
|
-
|
|
558
|
+
py::pytype_handle SystemNavigationManagerPreview_type{py::register_python_type(module.get(), &type_spec_SystemNavigationManagerPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SystemNavigationManagerPreview_Static.get()))};
|
|
559
|
+
if (!SystemNavigationManagerPreview_type)
|
|
519
560
|
{
|
|
520
561
|
return nullptr;
|
|
521
562
|
}
|
|
@@ -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.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
{winrt_windows_ui_core_preview-2.0.1 → winrt_windows_ui_core_preview-2.2.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.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.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.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,14 +9,14 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.ui.windowmanagement
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.ui.windowmanagement as windows_ui_windowmanagement
|
|
14
14
|
|
|
15
15
|
Self = typing.TypeVar('Self')
|
|
16
16
|
|
|
17
17
|
@typing.final
|
|
18
18
|
class CoreAppWindowPreview_Static(type):
|
|
19
|
-
def get_id_from_window(cls, window: typing.Optional[
|
|
19
|
+
def get_id_from_window(cls, window: typing.Optional[windows_ui_windowmanagement.AppWindow], /) -> winrt.system.Int32: ...
|
|
20
20
|
|
|
21
21
|
@typing.final
|
|
22
22
|
class CoreAppWindowPreview(winrt.system.Object, metaclass=CoreAppWindowPreview_Static):
|
|
@@ -27,7 +27,7 @@ class CoreAppWindowPreview(winrt.system.Object, metaclass=CoreAppWindowPreview_S
|
|
|
27
27
|
class SystemNavigationCloseRequestedPreviewEventArgs(winrt.system.Object):
|
|
28
28
|
@staticmethod
|
|
29
29
|
def _from(obj: winrt.system.Object, /) -> SystemNavigationCloseRequestedPreviewEventArgs: ...
|
|
30
|
-
def get_deferral(self) -> typing.Optional[
|
|
30
|
+
def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
|
|
31
31
|
@_property
|
|
32
32
|
def handled(self) -> bool: ...
|
|
33
33
|
@handled.setter
|
|
@@ -41,6 +41,6 @@ class SystemNavigationManagerPreview_Static(type):
|
|
|
41
41
|
class SystemNavigationManagerPreview(winrt.system.Object, metaclass=SystemNavigationManagerPreview_Static):
|
|
42
42
|
@staticmethod
|
|
43
43
|
def _from(obj: winrt.system.Object, /) -> SystemNavigationManagerPreview: ...
|
|
44
|
-
def add_close_requested(self, handler:
|
|
45
|
-
def remove_close_requested(self, token:
|
|
44
|
+
def add_close_requested(self, handler: windows_foundation.EventHandler[SystemNavigationCloseRequestedPreviewEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
45
|
+
def remove_close_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
46
46
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Core.Preview
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.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,12 +10,12 @@ 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.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI.WindowManagement[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|