winrt-Windows.System.Preview 2.3.0__tar.gz → 3.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 (22) hide show
  1. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/PKG-INFO +7 -7
  2. winrt_windows_system_preview-3.1.0/all-requirements.txt +4 -0
  3. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/py.Windows.System.Preview.cpp +86 -43
  4. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_system_preview-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/setup.py +1 -1
  8. winrt_windows_system_preview-3.1.0/winrt/_winrt_windows_system_preview.pyi +63 -0
  9. winrt_windows_system_preview-3.1.0/winrt/windows/system/preview/__init__.py +26 -0
  10. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/winrt_Windows.System.Preview.egg-info/PKG-INFO +7 -7
  11. winrt_windows_system_preview-3.1.0/winrt_Windows.System.Preview.egg-info/requires.txt +5 -0
  12. winrt_windows_system_preview-2.3.0/all-requirements.txt +0 -4
  13. winrt_windows_system_preview-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_system_preview-2.3.0/winrt/_winrt_windows_system_preview.pyi +0 -54
  15. winrt_windows_system_preview-2.3.0/winrt/windows/system/preview/__init__.py +0 -25
  16. winrt_windows_system_preview-2.3.0/winrt_Windows.System.Preview.egg-info/requires.txt +0 -5
  17. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/README.md +0 -0
  18. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/setup.cfg +0 -0
  19. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/winrt/windows/system/preview/py.typed +0 -0
  20. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/winrt_Windows.System.Preview.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/winrt_Windows.System.Preview.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_system_preview-2.3.0 → winrt_windows_system_preview-3.1.0}/winrt_Windows.System.Preview.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.Preview
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Sensors[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Sensors[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.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.1.0
2
+
3
+ winrt-Windows.Devices.Sensors[all]==3.1.0
4
+ winrt-Windows.Foundation[all]==3.1.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.1.0
2
2
 
3
3
  #include "py.Windows.System.Preview.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::System::Preview
23
23
 
24
24
  static PyObject* TwoPanelHingedDevicePosturePreview_GetCurrentPostureAsync(py::wrapper::Windows::System::Preview::TwoPanelHingedDevicePosturePreview* self, 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 == 0)
29
29
  {
@@ -42,7 +42,11 @@ namespace py::cpp::Windows::System::Preview
42
42
  return nullptr;
43
43
  }
44
44
 
45
- return py::convert(self->obj.GetCurrentPostureAsync());
45
+ return py::convert([&]()
46
+ {
47
+ auto _gil = release_gil();
48
+ return self->obj.GetCurrentPostureAsync();
49
+ }());
46
50
  }
47
51
  catch (...)
48
52
  {
@@ -59,7 +63,7 @@ namespace py::cpp::Windows::System::Preview
59
63
 
60
64
  static PyObject* TwoPanelHingedDevicePosturePreview_GetDefaultAsync(PyObject* /*unused*/, PyObject* args) noexcept
61
65
  {
62
- auto arg_count = PyTuple_Size(args);
66
+ auto arg_count = PyTuple_GET_SIZE(args);
63
67
 
64
68
  if (arg_count == 0)
65
69
  {
@@ -78,7 +82,11 @@ namespace py::cpp::Windows::System::Preview
78
82
  return nullptr;
79
83
  }
80
84
 
81
- return py::convert(winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview::GetDefaultAsync());
85
+ return py::convert([&]()
86
+ {
87
+ auto _gil = release_gil();
88
+ return winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview::GetDefaultAsync();
89
+ }());
82
90
  }
83
91
  catch (...)
84
92
  {
@@ -112,7 +120,11 @@ namespace py::cpp::Windows::System::Preview
112
120
 
113
121
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview, winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>>(arg);
114
122
 
115
- return py::convert(self->obj.PostureChanged(param0));
123
+ return py::convert([&]()
124
+ {
125
+ auto _gil = release_gil();
126
+ return self->obj.PostureChanged(param0);
127
+ }());
116
128
  }
117
129
  catch (...)
118
130
  {
@@ -140,7 +152,11 @@ namespace py::cpp::Windows::System::Preview
140
152
 
141
153
  auto param0 = py::convert_to<winrt::event_token>(arg);
142
154
 
143
- self->obj.PostureChanged(param0);
155
+ {
156
+ auto _gil = release_gil();
157
+ self->obj.PostureChanged(param0);
158
+ }
159
+
144
160
  Py_RETURN_NONE;
145
161
  }
146
162
  catch (...)
@@ -180,20 +196,17 @@ namespace py::cpp::Windows::System::Preview
180
196
  { "remove_posture_changed", reinterpret_cast<PyCFunction>(TwoPanelHingedDevicePosturePreview_remove_PostureChanged), METH_O, nullptr },
181
197
  { "_assign_array_", _assign_array_TwoPanelHingedDevicePosturePreview, METH_O | METH_STATIC, nullptr },
182
198
  { "_from", reinterpret_cast<PyCFunction>(_from_TwoPanelHingedDevicePosturePreview), METH_O | METH_STATIC, nullptr },
183
- { }
184
- };
199
+ { }};
185
200
 
186
201
  static PyGetSetDef _getset_TwoPanelHingedDevicePosturePreview[] = {
187
- { }
188
- };
202
+ { }};
189
203
 
190
204
  static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreview[] = {
191
205
  { Py_tp_new, reinterpret_cast<void*>(_new_TwoPanelHingedDevicePosturePreview) },
192
206
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TwoPanelHingedDevicePosturePreview) },
193
207
  { Py_tp_methods, reinterpret_cast<void*>(_methods_TwoPanelHingedDevicePosturePreview) },
194
208
  { Py_tp_getset, reinterpret_cast<void*>(_getset_TwoPanelHingedDevicePosturePreview) },
195
- { }
196
- };
209
+ { }};
197
210
 
198
211
  static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreview = {
199
212
  "winrt._winrt_windows_system_preview.TwoPanelHingedDevicePosturePreview",
@@ -203,13 +216,11 @@ namespace py::cpp::Windows::System::Preview
203
216
  _type_slots_TwoPanelHingedDevicePosturePreview};
204
217
 
205
218
  static PyGetSetDef getset_TwoPanelHingedDevicePosturePreview_Static[] = {
206
- { }
207
- };
219
+ { }};
208
220
 
209
221
  static PyMethodDef methods_TwoPanelHingedDevicePosturePreview_Static[] = {
210
222
  { "get_default_async", reinterpret_cast<PyCFunction>(TwoPanelHingedDevicePosturePreview_GetDefaultAsync), METH_VARARGS, nullptr },
211
- { }
212
- };
223
+ { }};
213
224
 
214
225
  static PyType_Slot type_slots_TwoPanelHingedDevicePosturePreview_Static[] =
215
226
  {
@@ -219,14 +230,12 @@ namespace py::cpp::Windows::System::Preview
219
230
  { }
220
231
  };
221
232
 
222
- static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreview_Static =
223
- {
233
+ static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreview_Static = {
224
234
  "winrt._winrt_windows_system_preview.TwoPanelHingedDevicePosturePreview_Static",
225
235
  static_cast<int>(PyType_Type.tp_basicsize),
226
236
  static_cast<int>(PyType_Type.tp_itemsize),
227
237
  Py_TPFLAGS_DEFAULT,
228
- type_slots_TwoPanelHingedDevicePosturePreview_Static
229
- };
238
+ type_slots_TwoPanelHingedDevicePosturePreview_Static};
230
239
 
231
240
  // ----- TwoPanelHingedDevicePosturePreviewReading class --------------------
232
241
 
@@ -262,7 +271,11 @@ namespace py::cpp::Windows::System::Preview
262
271
  return nullptr;
263
272
  }
264
273
 
265
- return py::convert(self->obj.HingeState());
274
+ return py::convert([&]()
275
+ {
276
+ auto _gil = release_gil();
277
+ return self->obj.HingeState();
278
+ }());
266
279
  }
267
280
  catch (...)
268
281
  {
@@ -288,7 +301,11 @@ namespace py::cpp::Windows::System::Preview
288
301
  return nullptr;
289
302
  }
290
303
 
291
- return py::convert(self->obj.Panel1Id());
304
+ return py::convert([&]()
305
+ {
306
+ auto _gil = release_gil();
307
+ return self->obj.Panel1Id();
308
+ }());
292
309
  }
293
310
  catch (...)
294
311
  {
@@ -314,7 +331,11 @@ namespace py::cpp::Windows::System::Preview
314
331
  return nullptr;
315
332
  }
316
333
 
317
- return py::convert(self->obj.Panel1Orientation());
334
+ return py::convert([&]()
335
+ {
336
+ auto _gil = release_gil();
337
+ return self->obj.Panel1Orientation();
338
+ }());
318
339
  }
319
340
  catch (...)
320
341
  {
@@ -340,7 +361,11 @@ namespace py::cpp::Windows::System::Preview
340
361
  return nullptr;
341
362
  }
342
363
 
343
- return py::convert(self->obj.Panel2Id());
364
+ return py::convert([&]()
365
+ {
366
+ auto _gil = release_gil();
367
+ return self->obj.Panel2Id();
368
+ }());
344
369
  }
345
370
  catch (...)
346
371
  {
@@ -366,7 +391,11 @@ namespace py::cpp::Windows::System::Preview
366
391
  return nullptr;
367
392
  }
368
393
 
369
- return py::convert(self->obj.Panel2Orientation());
394
+ return py::convert([&]()
395
+ {
396
+ auto _gil = release_gil();
397
+ return self->obj.Panel2Orientation();
398
+ }());
370
399
  }
371
400
  catch (...)
372
401
  {
@@ -392,7 +421,11 @@ namespace py::cpp::Windows::System::Preview
392
421
  return nullptr;
393
422
  }
394
423
 
395
- return py::convert(self->obj.Timestamp());
424
+ return py::convert([&]()
425
+ {
426
+ auto _gil = release_gil();
427
+ return self->obj.Timestamp();
428
+ }());
396
429
  }
397
430
  catch (...)
398
431
  {
@@ -428,8 +461,7 @@ namespace py::cpp::Windows::System::Preview
428
461
  static PyMethodDef _methods_TwoPanelHingedDevicePosturePreviewReading[] = {
429
462
  { "_assign_array_", _assign_array_TwoPanelHingedDevicePosturePreviewReading, METH_O | METH_STATIC, nullptr },
430
463
  { "_from", reinterpret_cast<PyCFunction>(_from_TwoPanelHingedDevicePosturePreviewReading), METH_O | METH_STATIC, nullptr },
431
- { }
432
- };
464
+ { }};
433
465
 
434
466
  static PyGetSetDef _getset_TwoPanelHingedDevicePosturePreviewReading[] = {
435
467
  { "hinge_state", reinterpret_cast<getter>(TwoPanelHingedDevicePosturePreviewReading_get_HingeState), nullptr, nullptr, nullptr },
@@ -438,16 +470,14 @@ namespace py::cpp::Windows::System::Preview
438
470
  { "panel2_id", reinterpret_cast<getter>(TwoPanelHingedDevicePosturePreviewReading_get_Panel2Id), nullptr, nullptr, nullptr },
439
471
  { "panel2_orientation", reinterpret_cast<getter>(TwoPanelHingedDevicePosturePreviewReading_get_Panel2Orientation), nullptr, nullptr, nullptr },
440
472
  { "timestamp", reinterpret_cast<getter>(TwoPanelHingedDevicePosturePreviewReading_get_Timestamp), nullptr, nullptr, nullptr },
441
- { }
442
- };
473
+ { }};
443
474
 
444
475
  static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreviewReading[] = {
445
476
  { Py_tp_new, reinterpret_cast<void*>(_new_TwoPanelHingedDevicePosturePreviewReading) },
446
477
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TwoPanelHingedDevicePosturePreviewReading) },
447
478
  { Py_tp_methods, reinterpret_cast<void*>(_methods_TwoPanelHingedDevicePosturePreviewReading) },
448
479
  { Py_tp_getset, reinterpret_cast<void*>(_getset_TwoPanelHingedDevicePosturePreviewReading) },
449
- { }
450
- };
480
+ { }};
451
481
 
452
482
  static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreviewReading = {
453
483
  "winrt._winrt_windows_system_preview.TwoPanelHingedDevicePosturePreviewReading",
@@ -490,7 +520,11 @@ namespace py::cpp::Windows::System::Preview
490
520
  return nullptr;
491
521
  }
492
522
 
493
- return py::convert(self->obj.Reading());
523
+ return py::convert([&]()
524
+ {
525
+ auto _gil = release_gil();
526
+ return self->obj.Reading();
527
+ }());
494
528
  }
495
529
  catch (...)
496
530
  {
@@ -526,21 +560,18 @@ namespace py::cpp::Windows::System::Preview
526
560
  static PyMethodDef _methods_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs[] = {
527
561
  { "_assign_array_", _assign_array_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs, METH_O | METH_STATIC, nullptr },
528
562
  { "_from", reinterpret_cast<PyCFunction>(_from_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs), METH_O | METH_STATIC, nullptr },
529
- { }
530
- };
563
+ { }};
531
564
 
532
565
  static PyGetSetDef _getset_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs[] = {
533
566
  { "reading", reinterpret_cast<getter>(TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs_get_Reading), nullptr, nullptr, nullptr },
534
- { }
535
- };
567
+ { }};
536
568
 
537
569
  static PyType_Slot _type_slots_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs[] = {
538
570
  { Py_tp_new, reinterpret_cast<void*>(_new_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) },
539
571
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) },
540
572
  { Py_tp_methods, reinterpret_cast<void*>(_methods_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) },
541
573
  { Py_tp_getset, reinterpret_cast<void*>(_getset_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) },
542
- { }
543
- };
574
+ { }};
544
575
 
545
576
  static PyType_Spec type_spec_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs = {
546
577
  "winrt._winrt_windows_system_preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs",
@@ -581,6 +612,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_preview(void) noexcept
581
612
  return nullptr;
582
613
  }
583
614
 
615
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
616
+ if (!inspectable_meta_type)
617
+ {
618
+ return nullptr;
619
+ }
620
+
584
621
  auto object_type = py::get_object_type();
585
622
  if (!object_type)
586
623
  {
@@ -594,7 +631,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_preview(void) noexcept
594
631
  return nullptr;
595
632
  }
596
633
 
597
- py::pyobj_handle type_TwoPanelHingedDevicePosturePreview_Static{PyType_FromSpec(&type_spec_TwoPanelHingedDevicePosturePreview_Static)};
634
+ py::pyobj_handle TwoPanelHingedDevicePosturePreview_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
635
+ if (!TwoPanelHingedDevicePosturePreview_Static_bases)
636
+ {
637
+ return nullptr;
638
+ }
639
+
640
+ py::pyobj_handle type_TwoPanelHingedDevicePosturePreview_Static{PyType_FromSpecWithBases(&type_spec_TwoPanelHingedDevicePosturePreview_Static, TwoPanelHingedDevicePosturePreview_Static_bases.get())};
598
641
  if (!type_TwoPanelHingedDevicePosturePreview_Static)
599
642
  {
600
643
  return nullptr;
@@ -606,13 +649,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_preview(void) noexcept
606
649
  return nullptr;
607
650
  }
608
651
 
609
- py::pytype_handle TwoPanelHingedDevicePosturePreviewReading_type{py::register_python_type(module.get(), &type_spec_TwoPanelHingedDevicePosturePreviewReading, object_bases.get(), nullptr)};
652
+ py::pytype_handle TwoPanelHingedDevicePosturePreviewReading_type{py::register_python_type(module.get(), &type_spec_TwoPanelHingedDevicePosturePreviewReading, object_bases.get(), inspectable_meta_type)};
610
653
  if (!TwoPanelHingedDevicePosturePreviewReading_type)
611
654
  {
612
655
  return nullptr;
613
656
  }
614
657
 
615
- py::pytype_handle TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs, object_bases.get(), nullptr)};
658
+ py::pytype_handle TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs, object_bases.get(), inspectable_meta_type)};
616
659
  if (!TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs_type)
617
660
  {
618
661
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.System.Preview"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -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.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.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_system_preview",
@@ -0,0 +1,63 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.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.devices.sensors as windows_devices_sensors
13
+ import winrt.windows.foundation as windows_foundation
14
+
15
+ from winrt.windows.system.preview import HingeState
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ @typing.final
20
+ class TwoPanelHingedDevicePosturePreview_Static(winrt._winrt.IInspectable_Static):
21
+ # Windows.Foundation.IAsyncOperation`1<Windows.System.Preview.TwoPanelHingedDevicePosturePreview> Windows.System.Preview.TwoPanelHingedDevicePosturePreview::GetDefaultAsync()
22
+ # @deprecated("TwoPanelHingedDevicePosturePreview is deprecated and might not work on all platforms. For more info, see MSDN.")
23
+ def get_default_async(cls) -> windows_foundation.IAsyncOperation[TwoPanelHingedDevicePosturePreview]: ...
24
+
25
+ @typing.final
26
+ class TwoPanelHingedDevicePosturePreview(winrt.system.Object, metaclass=TwoPanelHingedDevicePosturePreview_Static):
27
+ # Windows.Foundation.IAsyncOperation`1<Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading> Windows.System.Preview.TwoPanelHingedDevicePosturePreview::GetCurrentPostureAsync()
28
+ # @deprecated("TwoPanelHingedDevicePosturePreview is deprecated and might not work on all platforms. For more info, see MSDN.")
29
+ def get_current_posture_async(self) -> windows_foundation.IAsyncOperation[TwoPanelHingedDevicePosturePreviewReading]: ...
30
+ # Windows.Foundation.EventRegistrationToken Windows.System.Preview.TwoPanelHingedDevicePosturePreview::add_PostureChanged(Windows.Foundation.TypedEventHandler`2<Windows.System.Preview.TwoPanelHingedDevicePosturePreview,Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>)
31
+ # @deprecated("TwoPanelHingedDevicePosturePreview is deprecated and might not work on all platforms. For more info, see MSDN.")
32
+ def add_posture_changed(self, handler: windows_foundation.TypedEventHandler[TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
33
+ # System.Void Windows.System.Preview.TwoPanelHingedDevicePosturePreview::remove_PostureChanged(Windows.Foundation.EventRegistrationToken)
34
+ # @deprecated("TwoPanelHingedDevicePosturePreview is deprecated and might not work on all platforms. For more info, see MSDN.")
35
+ def remove_posture_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
36
+
37
+ @typing.final
38
+ class TwoPanelHingedDevicePosturePreviewReading(winrt.system.Object):
39
+ # Windows.System.Preview.HingeState Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading::get_HingeState()
40
+ @_property
41
+ def hinge_state(self) -> HingeState: ...
42
+ # System.String Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading::get_Panel1Id()
43
+ @_property
44
+ def panel1_id(self) -> str: ...
45
+ # Windows.Devices.Sensors.SimpleOrientation Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading::get_Panel1Orientation()
46
+ @_property
47
+ def panel1_orientation(self) -> windows_devices_sensors.SimpleOrientation: ...
48
+ # System.String Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading::get_Panel2Id()
49
+ @_property
50
+ def panel2_id(self) -> str: ...
51
+ # Windows.Devices.Sensors.SimpleOrientation Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading::get_Panel2Orientation()
52
+ @_property
53
+ def panel2_orientation(self) -> windows_devices_sensors.SimpleOrientation: ...
54
+ # Windows.Foundation.DateTime Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading::get_Timestamp()
55
+ @_property
56
+ def timestamp(self) -> datetime.datetime: ...
57
+
58
+ @typing.final
59
+ class TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs(winrt.system.Object):
60
+ # Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs::get_Reading()
61
+ @_property
62
+ def reading(self) -> TwoPanelHingedDevicePosturePreviewReading: ...
63
+
@@ -0,0 +1,26 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt._winrt_windows_system_preview import (
7
+ TwoPanelHingedDevicePosturePreview,
8
+ TwoPanelHingedDevicePosturePreviewReading,
9
+ TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs,
10
+ )
11
+
12
+ __all__ = [
13
+ "HingeState",
14
+ "TwoPanelHingedDevicePosturePreview",
15
+ "TwoPanelHingedDevicePosturePreviewReading",
16
+ "TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs",
17
+ ]
18
+
19
+ class HingeState(enum.IntEnum):
20
+ UNKNOWN = 0
21
+ CLOSED = 1
22
+ CONCAVE = 2
23
+ FLAT = 3
24
+ CONVEX = 4
25
+ FULL = 5
26
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.Preview
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Sensors[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Sensors[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.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.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Sensors[all]==3.1.0
5
+ winrt-Windows.Foundation[all]==3.1.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Devices.Sensors[all]==2.3.0
4
- winrt-Windows.Foundation[all]==2.3.0
@@ -1 +0,0 @@
1
- 2.3.0
@@ -1,54 +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.devices.sensors as windows_devices_sensors
13
- import winrt.windows.foundation as windows_foundation
14
-
15
- from winrt.windows.system.preview import HingeState
16
-
17
- Self = typing.TypeVar('Self')
18
-
19
- @typing.final
20
- class TwoPanelHingedDevicePosturePreview_Static(type):
21
- def get_default_async(cls) -> windows_foundation.IAsyncOperation[TwoPanelHingedDevicePosturePreview]: ...
22
-
23
- @typing.final
24
- class TwoPanelHingedDevicePosturePreview(winrt.system.Object, metaclass=TwoPanelHingedDevicePosturePreview_Static):
25
- @staticmethod
26
- def _from(obj: winrt.system.Object, /) -> TwoPanelHingedDevicePosturePreview: ...
27
- def get_current_posture_async(self) -> windows_foundation.IAsyncOperation[TwoPanelHingedDevicePosturePreviewReading]: ...
28
- def add_posture_changed(self, handler: windows_foundation.TypedEventHandler[TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
29
- def remove_posture_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
30
-
31
- @typing.final
32
- class TwoPanelHingedDevicePosturePreviewReading(winrt.system.Object):
33
- @staticmethod
34
- def _from(obj: winrt.system.Object, /) -> TwoPanelHingedDevicePosturePreviewReading: ...
35
- @_property
36
- def hinge_state(self) -> HingeState: ...
37
- @_property
38
- def panel1_id(self) -> str: ...
39
- @_property
40
- def panel1_orientation(self) -> windows_devices_sensors.SimpleOrientation: ...
41
- @_property
42
- def panel2_id(self) -> str: ...
43
- @_property
44
- def panel2_orientation(self) -> windows_devices_sensors.SimpleOrientation: ...
45
- @_property
46
- def timestamp(self) -> datetime.datetime: ...
47
-
48
- @typing.final
49
- class TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs(winrt.system.Object):
50
- @staticmethod
51
- def _from(obj: winrt.system.Object, /) -> TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs: ...
52
- @_property
53
- def reading(self) -> typing.Optional[TwoPanelHingedDevicePosturePreviewReading]: ...
54
-
@@ -1,25 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import enum
4
-
5
- import winrt.system
6
- from winrt import _winrt_windows_system_preview
7
-
8
- __all__ = [
9
- "HingeState",
10
- "TwoPanelHingedDevicePosturePreview",
11
- "TwoPanelHingedDevicePosturePreviewReading",
12
- "TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs",
13
- ]
14
-
15
- class HingeState(enum.IntEnum):
16
- UNKNOWN = 0
17
- CLOSED = 1
18
- CONCAVE = 2
19
- FLAT = 3
20
- CONVEX = 4
21
- FULL = 5
22
-
23
- TwoPanelHingedDevicePosturePreview = _winrt_windows_system_preview.TwoPanelHingedDevicePosturePreview
24
- TwoPanelHingedDevicePosturePreviewReading = _winrt_windows_system_preview.TwoPanelHingedDevicePosturePreviewReading
25
- TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs = _winrt_windows_system_preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Devices.Sensors[all]==2.3.0
5
- winrt-Windows.Foundation[all]==2.3.0