winrt-Windows.UI.Core.Preview 2.2.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 (22) hide show
  1. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/PKG-INFO +5 -5
  2. winrt_windows_ui_core_preview-3.0.0/all-requirements.txt +4 -0
  3. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/py.Windows.UI.Core.Preview.cpp +78 -49
  4. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_ui_core_preview-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/setup.py +1 -1
  8. winrt_windows_ui_core_preview-3.0.0/winrt/_winrt_windows_ui_core_preview.pyi +48 -0
  9. winrt_windows_ui_core_preview-3.0.0/winrt/windows/ui/core/preview/__init__.py +15 -0
  10. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/winrt_Windows.UI.Core.Preview.egg-info/PKG-INFO +5 -5
  11. winrt_windows_ui_core_preview-3.0.0/winrt_Windows.UI.Core.Preview.egg-info/requires.txt +5 -0
  12. winrt_windows_ui_core_preview-2.2.0/all-requirements.txt +0 -4
  13. winrt_windows_ui_core_preview-2.2.0/pywinrt-version.txt +0 -1
  14. winrt_windows_ui_core_preview-2.2.0/winrt/_winrt_windows_ui_core_preview.pyi +0 -46
  15. winrt_windows_ui_core_preview-2.2.0/winrt/windows/ui/core/preview/__init__.py +0 -14
  16. winrt_windows_ui_core_preview-2.2.0/winrt_Windows.UI.Core.Preview.egg-info/requires.txt +0 -5
  17. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/README.md +0 -0
  18. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/setup.cfg +0 -0
  19. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/winrt/windows/ui/core/preview/py.typed +0 -0
  20. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/winrt_Windows.UI.Core.Preview.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.0}/winrt_Windows.UI.Core.Preview.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_ui_core_preview-2.2.0 → winrt_windows_ui_core_preview-3.0.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.2.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,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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
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"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ winrt-Windows.Foundation[all]==3.0.0
4
+ winrt-Windows.UI.WindowManagement[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.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.Core.Preview.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::UI::Core::Preview
23
23
 
24
24
  static PyObject* CoreAppWindowPreview_GetIdFromWindow(PyObject* /*unused*/, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 1)
29
29
  {
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::UI::Core::Preview
44
44
 
45
45
  auto param0 = py::convert_to<winrt::Windows::UI::WindowManagement::AppWindow>(args, 0);
46
46
 
47
- return py::convert(winrt::Windows::UI::Core::Preview::CoreAppWindowPreview::GetIdFromWindow(param0));
47
+ return py::convert([&]()
48
+ {
49
+ auto _gil = release_gil();
50
+ return winrt::Windows::UI::Core::Preview::CoreAppWindowPreview::GetIdFromWindow(param0);
51
+ }());
48
52
  }
49
53
  catch (...)
50
54
  {
@@ -86,20 +90,17 @@ namespace py::cpp::Windows::UI::Core::Preview
86
90
  static PyMethodDef _methods_CoreAppWindowPreview[] = {
87
91
  { "_assign_array_", _assign_array_CoreAppWindowPreview, METH_O | METH_STATIC, nullptr },
88
92
  { "_from", reinterpret_cast<PyCFunction>(_from_CoreAppWindowPreview), METH_O | METH_STATIC, nullptr },
89
- { }
90
- };
93
+ { }};
91
94
 
92
95
  static PyGetSetDef _getset_CoreAppWindowPreview[] = {
93
- { }
94
- };
96
+ { }};
95
97
 
96
98
  static PyType_Slot _type_slots_CoreAppWindowPreview[] = {
97
99
  { Py_tp_new, reinterpret_cast<void*>(_new_CoreAppWindowPreview) },
98
100
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CoreAppWindowPreview) },
99
101
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CoreAppWindowPreview) },
100
102
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CoreAppWindowPreview) },
101
- { }
102
- };
103
+ { }};
103
104
 
104
105
  static PyType_Spec type_spec_CoreAppWindowPreview = {
105
106
  "winrt._winrt_windows_ui_core_preview.CoreAppWindowPreview",
@@ -109,13 +110,11 @@ namespace py::cpp::Windows::UI::Core::Preview
109
110
  _type_slots_CoreAppWindowPreview};
110
111
 
111
112
  static PyGetSetDef getset_CoreAppWindowPreview_Static[] = {
112
- { }
113
- };
113
+ { }};
114
114
 
115
115
  static PyMethodDef methods_CoreAppWindowPreview_Static[] = {
116
116
  { "get_id_from_window", reinterpret_cast<PyCFunction>(CoreAppWindowPreview_GetIdFromWindow), METH_VARARGS, nullptr },
117
- { }
118
- };
117
+ { }};
119
118
 
120
119
  static PyType_Slot type_slots_CoreAppWindowPreview_Static[] =
121
120
  {
@@ -125,14 +124,12 @@ namespace py::cpp::Windows::UI::Core::Preview
125
124
  { }
126
125
  };
127
126
 
128
- static PyType_Spec type_spec_CoreAppWindowPreview_Static =
129
- {
127
+ static PyType_Spec type_spec_CoreAppWindowPreview_Static = {
130
128
  "winrt._winrt_windows_ui_core_preview.CoreAppWindowPreview_Static",
131
129
  static_cast<int>(PyType_Type.tp_basicsize),
132
130
  static_cast<int>(PyType_Type.tp_itemsize),
133
131
  Py_TPFLAGS_DEFAULT,
134
- type_slots_CoreAppWindowPreview_Static
135
- };
132
+ type_slots_CoreAppWindowPreview_Static};
136
133
 
137
134
  // ----- SystemNavigationCloseRequestedPreviewEventArgs class --------------------
138
135
 
@@ -153,7 +150,7 @@ namespace py::cpp::Windows::UI::Core::Preview
153
150
 
154
151
  static PyObject* SystemNavigationCloseRequestedPreviewEventArgs_GetDeferral(py::wrapper::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs* self, PyObject* args) noexcept
155
152
  {
156
- auto arg_count = PyTuple_Size(args);
153
+ auto arg_count = PyTuple_GET_SIZE(args);
157
154
 
158
155
  if (arg_count == 0)
159
156
  {
@@ -172,7 +169,11 @@ namespace py::cpp::Windows::UI::Core::Preview
172
169
  return nullptr;
173
170
  }
174
171
 
175
- return py::convert(self->obj.GetDeferral());
172
+ return py::convert([&]()
173
+ {
174
+ auto _gil = release_gil();
175
+ return self->obj.GetDeferral();
176
+ }());
176
177
  }
177
178
  catch (...)
178
179
  {
@@ -204,7 +205,11 @@ namespace py::cpp::Windows::UI::Core::Preview
204
205
  return nullptr;
205
206
  }
206
207
 
207
- return py::convert(self->obj.Handled());
208
+ return py::convert([&]()
209
+ {
210
+ auto _gil = release_gil();
211
+ return self->obj.Handled();
212
+ }());
208
213
  }
209
214
  catch (...)
210
215
  {
@@ -215,7 +220,7 @@ namespace py::cpp::Windows::UI::Core::Preview
215
220
 
216
221
  static int SystemNavigationCloseRequestedPreviewEventArgs_put_Handled(py::wrapper::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs* self, PyObject* arg, void* /*unused*/) noexcept
217
222
  {
218
- if (arg == nullptr)
223
+ if (!arg)
219
224
  {
220
225
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
221
226
  return -1;
@@ -238,7 +243,11 @@ namespace py::cpp::Windows::UI::Core::Preview
238
243
 
239
244
  auto param0 = py::convert_to<bool>(arg);
240
245
 
241
- self->obj.Handled(param0);
246
+ {
247
+ auto _gil = release_gil();
248
+ self->obj.Handled(param0);
249
+ }
250
+
242
251
  return 0;
243
252
  }
244
253
  catch (...)
@@ -276,21 +285,18 @@ namespace py::cpp::Windows::UI::Core::Preview
276
285
  { "get_deferral", reinterpret_cast<PyCFunction>(SystemNavigationCloseRequestedPreviewEventArgs_GetDeferral), METH_VARARGS, nullptr },
277
286
  { "_assign_array_", _assign_array_SystemNavigationCloseRequestedPreviewEventArgs, METH_O | METH_STATIC, nullptr },
278
287
  { "_from", reinterpret_cast<PyCFunction>(_from_SystemNavigationCloseRequestedPreviewEventArgs), METH_O | METH_STATIC, nullptr },
279
- { }
280
- };
288
+ { }};
281
289
 
282
290
  static PyGetSetDef _getset_SystemNavigationCloseRequestedPreviewEventArgs[] = {
283
291
  { "handled", reinterpret_cast<getter>(SystemNavigationCloseRequestedPreviewEventArgs_get_Handled), reinterpret_cast<setter>(SystemNavigationCloseRequestedPreviewEventArgs_put_Handled), nullptr, nullptr },
284
- { }
285
- };
292
+ { }};
286
293
 
287
294
  static PyType_Slot _type_slots_SystemNavigationCloseRequestedPreviewEventArgs[] = {
288
295
  { Py_tp_new, reinterpret_cast<void*>(_new_SystemNavigationCloseRequestedPreviewEventArgs) },
289
296
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemNavigationCloseRequestedPreviewEventArgs) },
290
297
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SystemNavigationCloseRequestedPreviewEventArgs) },
291
298
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SystemNavigationCloseRequestedPreviewEventArgs) },
292
- { }
293
- };
299
+ { }};
294
300
 
295
301
  static PyType_Spec type_spec_SystemNavigationCloseRequestedPreviewEventArgs = {
296
302
  "winrt._winrt_windows_ui_core_preview.SystemNavigationCloseRequestedPreviewEventArgs",
@@ -318,7 +324,7 @@ namespace py::cpp::Windows::UI::Core::Preview
318
324
 
319
325
  static PyObject* SystemNavigationManagerPreview_GetForCurrentView(PyObject* /*unused*/, PyObject* args) noexcept
320
326
  {
321
- auto arg_count = PyTuple_Size(args);
327
+ auto arg_count = PyTuple_GET_SIZE(args);
322
328
 
323
329
  if (arg_count == 0)
324
330
  {
@@ -337,7 +343,11 @@ namespace py::cpp::Windows::UI::Core::Preview
337
343
  return nullptr;
338
344
  }
339
345
 
340
- return py::convert(winrt::Windows::UI::Core::Preview::SystemNavigationManagerPreview::GetForCurrentView());
346
+ return py::convert([&]()
347
+ {
348
+ auto _gil = release_gil();
349
+ return winrt::Windows::UI::Core::Preview::SystemNavigationManagerPreview::GetForCurrentView();
350
+ }());
341
351
  }
342
352
  catch (...)
343
353
  {
@@ -371,7 +381,11 @@ namespace py::cpp::Windows::UI::Core::Preview
371
381
 
372
382
  auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs>>(arg);
373
383
 
374
- return py::convert(self->obj.CloseRequested(param0));
384
+ return py::convert([&]()
385
+ {
386
+ auto _gil = release_gil();
387
+ return self->obj.CloseRequested(param0);
388
+ }());
375
389
  }
376
390
  catch (...)
377
391
  {
@@ -399,7 +413,11 @@ namespace py::cpp::Windows::UI::Core::Preview
399
413
 
400
414
  auto param0 = py::convert_to<winrt::event_token>(arg);
401
415
 
402
- self->obj.CloseRequested(param0);
416
+ {
417
+ auto _gil = release_gil();
418
+ self->obj.CloseRequested(param0);
419
+ }
420
+
403
421
  Py_RETURN_NONE;
404
422
  }
405
423
  catch (...)
@@ -438,20 +456,17 @@ namespace py::cpp::Windows::UI::Core::Preview
438
456
  { "remove_close_requested", reinterpret_cast<PyCFunction>(SystemNavigationManagerPreview_remove_CloseRequested), METH_O, nullptr },
439
457
  { "_assign_array_", _assign_array_SystemNavigationManagerPreview, METH_O | METH_STATIC, nullptr },
440
458
  { "_from", reinterpret_cast<PyCFunction>(_from_SystemNavigationManagerPreview), METH_O | METH_STATIC, nullptr },
441
- { }
442
- };
459
+ { }};
443
460
 
444
461
  static PyGetSetDef _getset_SystemNavigationManagerPreview[] = {
445
- { }
446
- };
462
+ { }};
447
463
 
448
464
  static PyType_Slot _type_slots_SystemNavigationManagerPreview[] = {
449
465
  { Py_tp_new, reinterpret_cast<void*>(_new_SystemNavigationManagerPreview) },
450
466
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemNavigationManagerPreview) },
451
467
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SystemNavigationManagerPreview) },
452
468
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SystemNavigationManagerPreview) },
453
- { }
454
- };
469
+ { }};
455
470
 
456
471
  static PyType_Spec type_spec_SystemNavigationManagerPreview = {
457
472
  "winrt._winrt_windows_ui_core_preview.SystemNavigationManagerPreview",
@@ -461,13 +476,11 @@ namespace py::cpp::Windows::UI::Core::Preview
461
476
  _type_slots_SystemNavigationManagerPreview};
462
477
 
463
478
  static PyGetSetDef getset_SystemNavigationManagerPreview_Static[] = {
464
- { }
465
- };
479
+ { }};
466
480
 
467
481
  static PyMethodDef methods_SystemNavigationManagerPreview_Static[] = {
468
482
  { "get_for_current_view", reinterpret_cast<PyCFunction>(SystemNavigationManagerPreview_GetForCurrentView), METH_VARARGS, nullptr },
469
- { }
470
- };
483
+ { }};
471
484
 
472
485
  static PyType_Slot type_slots_SystemNavigationManagerPreview_Static[] =
473
486
  {
@@ -477,14 +490,12 @@ namespace py::cpp::Windows::UI::Core::Preview
477
490
  { }
478
491
  };
479
492
 
480
- static PyType_Spec type_spec_SystemNavigationManagerPreview_Static =
481
- {
493
+ static PyType_Spec type_spec_SystemNavigationManagerPreview_Static = {
482
494
  "winrt._winrt_windows_ui_core_preview.SystemNavigationManagerPreview_Static",
483
495
  static_cast<int>(PyType_Type.tp_basicsize),
484
496
  static_cast<int>(PyType_Type.tp_itemsize),
485
497
  Py_TPFLAGS_DEFAULT,
486
- type_slots_SystemNavigationManagerPreview_Static
487
- };
498
+ type_slots_SystemNavigationManagerPreview_Static};
488
499
 
489
500
  // ----- Windows.UI.Core.Preview Initialization --------------------
490
501
 
@@ -518,6 +529,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(void) noexcept
518
529
  return nullptr;
519
530
  }
520
531
 
532
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
533
+ if (!inspectable_meta_type)
534
+ {
535
+ return nullptr;
536
+ }
537
+
521
538
  auto object_type = py::get_object_type();
522
539
  if (!object_type)
523
540
  {
@@ -531,7 +548,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(void) noexcept
531
548
  return nullptr;
532
549
  }
533
550
 
534
- py::pyobj_handle type_CoreAppWindowPreview_Static{PyType_FromSpec(&type_spec_CoreAppWindowPreview_Static)};
551
+ py::pyobj_handle CoreAppWindowPreview_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
552
+ if (!CoreAppWindowPreview_Static_bases)
553
+ {
554
+ return nullptr;
555
+ }
556
+
557
+ py::pyobj_handle type_CoreAppWindowPreview_Static{PyType_FromSpecWithBases(&type_spec_CoreAppWindowPreview_Static, CoreAppWindowPreview_Static_bases.get())};
535
558
  if (!type_CoreAppWindowPreview_Static)
536
559
  {
537
560
  return nullptr;
@@ -543,13 +566,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(void) noexcept
543
566
  return nullptr;
544
567
  }
545
568
 
546
- py::pytype_handle SystemNavigationCloseRequestedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_SystemNavigationCloseRequestedPreviewEventArgs, object_bases.get(), nullptr)};
569
+ py::pytype_handle SystemNavigationCloseRequestedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_SystemNavigationCloseRequestedPreviewEventArgs, object_bases.get(), inspectable_meta_type)};
547
570
  if (!SystemNavigationCloseRequestedPreviewEventArgs_type)
548
571
  {
549
572
  return nullptr;
550
573
  }
551
574
 
552
- py::pyobj_handle type_SystemNavigationManagerPreview_Static{PyType_FromSpec(&type_spec_SystemNavigationManagerPreview_Static)};
575
+ py::pyobj_handle SystemNavigationManagerPreview_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
576
+ if (!SystemNavigationManagerPreview_Static_bases)
577
+ {
578
+ return nullptr;
579
+ }
580
+
581
+ py::pyobj_handle type_SystemNavigationManagerPreview_Static{PyType_FromSpecWithBases(&type_spec_SystemNavigationManagerPreview_Static, SystemNavigationManagerPreview_Static_bases.get())};
553
582
  if (!type_SystemNavigationManagerPreview_Static)
554
583
  {
555
584
  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.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.2.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_core_preview",
@@ -0,0 +1,48 @@
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
+ import winrt.windows.ui.windowmanagement as windows_ui_windowmanagement
14
+
15
+ Self = typing.TypeVar('Self')
16
+
17
+ @typing.final
18
+ class CoreAppWindowPreview_Static(winrt._winrt.IInspectable_Static):
19
+ # System.Int32 Windows.UI.Core.Preview.CoreAppWindowPreview::GetIdFromWindow(Windows.UI.WindowManagement.AppWindow)
20
+ def get_id_from_window(cls, window: windows_ui_windowmanagement.AppWindow, /) -> winrt.system.Int32: ...
21
+
22
+ @typing.final
23
+ class CoreAppWindowPreview(winrt.system.Object, metaclass=CoreAppWindowPreview_Static):
24
+ pass
25
+
26
+ @typing.final
27
+ class SystemNavigationCloseRequestedPreviewEventArgs(winrt.system.Object):
28
+ # Windows.Foundation.Deferral Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs::GetDeferral()
29
+ def get_deferral(self) -> windows_foundation.Deferral: ...
30
+ # System.Boolean Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs::get_Handled()
31
+ @_property
32
+ def handled(self) -> bool: ...
33
+ # System.Void Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs::put_Handled(System.Boolean)
34
+ @handled.setter
35
+ def handled(self, value: bool) -> None: ...
36
+
37
+ @typing.final
38
+ class SystemNavigationManagerPreview_Static(winrt._winrt.IInspectable_Static):
39
+ # Windows.UI.Core.Preview.SystemNavigationManagerPreview Windows.UI.Core.Preview.SystemNavigationManagerPreview::GetForCurrentView()
40
+ def get_for_current_view(cls) -> SystemNavigationManagerPreview: ...
41
+
42
+ @typing.final
43
+ class SystemNavigationManagerPreview(winrt.system.Object, metaclass=SystemNavigationManagerPreview_Static):
44
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Core.Preview.SystemNavigationManagerPreview::add_CloseRequested(Windows.Foundation.EventHandler`1<Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs>)
45
+ def add_close_requested(self, handler: windows_foundation.EventHandler[SystemNavigationCloseRequestedPreviewEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
46
+ # System.Void Windows.UI.Core.Preview.SystemNavigationManagerPreview::remove_CloseRequested(Windows.Foundation.EventRegistrationToken)
47
+ def remove_close_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
48
+
@@ -0,0 +1,15 @@
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_core_preview import (
5
+ CoreAppWindowPreview,
6
+ SystemNavigationCloseRequestedPreviewEventArgs,
7
+ SystemNavigationManagerPreview,
8
+ )
9
+
10
+ __all__ = [
11
+ "CoreAppWindowPreview",
12
+ "SystemNavigationCloseRequestedPreviewEventArgs",
13
+ "SystemNavigationManagerPreview",
14
+ ]
15
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Core.Preview
3
- Version: 2.2.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,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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
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"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.UI.WindowManagement[all]==3.0.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.Foundation[all]==2.2.0
4
- winrt-Windows.UI.WindowManagement[all]==2.2.0
@@ -1,46 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.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
- import winrt.windows.ui.windowmanagement as windows_ui_windowmanagement
14
-
15
- Self = typing.TypeVar('Self')
16
-
17
- @typing.final
18
- class CoreAppWindowPreview_Static(type):
19
- def get_id_from_window(cls, window: typing.Optional[windows_ui_windowmanagement.AppWindow], /) -> winrt.system.Int32: ...
20
-
21
- @typing.final
22
- class CoreAppWindowPreview(winrt.system.Object, metaclass=CoreAppWindowPreview_Static):
23
- @staticmethod
24
- def _from(obj: winrt.system.Object, /) -> CoreAppWindowPreview: ...
25
-
26
- @typing.final
27
- class SystemNavigationCloseRequestedPreviewEventArgs(winrt.system.Object):
28
- @staticmethod
29
- def _from(obj: winrt.system.Object, /) -> SystemNavigationCloseRequestedPreviewEventArgs: ...
30
- def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
31
- @_property
32
- def handled(self) -> bool: ...
33
- @handled.setter
34
- def handled(self, value: bool) -> None: ...
35
-
36
- @typing.final
37
- class SystemNavigationManagerPreview_Static(type):
38
- def get_for_current_view(cls) -> typing.Optional[SystemNavigationManagerPreview]: ...
39
-
40
- @typing.final
41
- class SystemNavigationManagerPreview(winrt.system.Object, metaclass=SystemNavigationManagerPreview_Static):
42
- @staticmethod
43
- def _from(obj: winrt.system.Object, /) -> SystemNavigationManagerPreview: ...
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
-
@@ -1,14 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_ui_core_preview
5
-
6
- __all__ = [
7
- "CoreAppWindowPreview",
8
- "SystemNavigationCloseRequestedPreviewEventArgs",
9
- "SystemNavigationManagerPreview",
10
- ]
11
-
12
- CoreAppWindowPreview = _winrt_windows_ui_core_preview.CoreAppWindowPreview
13
- SystemNavigationCloseRequestedPreviewEventArgs = _winrt_windows_ui_core_preview.SystemNavigationCloseRequestedPreviewEventArgs
14
- SystemNavigationManagerPreview = _winrt_windows_ui_core_preview.SystemNavigationManagerPreview
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.2.0
5
- winrt-Windows.UI.WindowManagement[all]==2.2.0