winrt-Windows.ApplicationModel.LockScreen 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.
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/PKG-INFO +6 -6
- winrt_windows_applicationmodel_lockscreen-3.0.0/all-requirements.txt +5 -0
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/py.Windows.ApplicationModel.LockScreen.cpp +162 -73
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_lockscreen-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/setup.py +1 -1
- winrt_windows_applicationmodel_lockscreen-3.0.0/winrt/_winrt_windows_applicationmodel_lockscreen.pyi +92 -0
- winrt_windows_applicationmodel_lockscreen-3.0.0/winrt/windows/applicationmodel/lockscreen/__init__.py +19 -0
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/PKG-INFO +6 -6
- winrt_windows_applicationmodel_lockscreen-3.0.0/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +6 -0
- winrt_windows_applicationmodel_lockscreen-2.2.0/all-requirements.txt +0 -5
- winrt_windows_applicationmodel_lockscreen-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_lockscreen-2.2.0/winrt/_winrt_windows_applicationmodel_lockscreen.pyi +0 -78
- winrt_windows_applicationmodel_lockscreen-2.2.0/winrt/windows/applicationmodel/lockscreen/__init__.py +0 -18
- winrt_windows_applicationmodel_lockscreen-2.2.0/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +0 -6
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/README.md +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/winrt/windows/applicationmodel/lockscreen/py.typed +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_lockscreen-2.2.0 → winrt_windows_applicationmodel_lockscreen-3.0.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.LockScreen
|
|
3
|
-
Version:
|
|
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,13 +10,13 @@ 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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.LockScreen.h"
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
23
23
|
|
|
24
24
|
static PyObject* LockApplicationHost_GetForCurrentView(PyObject* /*unused*/, PyObject* args) noexcept
|
|
25
25
|
{
|
|
26
|
-
auto arg_count =
|
|
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::ApplicationModel::LockScreen
|
|
|
42
42
|
return nullptr;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
return py::convert(
|
|
45
|
+
return py::convert([&]()
|
|
46
|
+
{
|
|
47
|
+
auto _gil = release_gil();
|
|
48
|
+
return winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost::GetForCurrentView();
|
|
49
|
+
}());
|
|
46
50
|
}
|
|
47
51
|
catch (...)
|
|
48
52
|
{
|
|
@@ -59,7 +63,7 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
59
63
|
|
|
60
64
|
static PyObject* LockApplicationHost_RequestUnlock(py::wrapper::Windows::ApplicationModel::LockScreen::LockApplicationHost* self, PyObject* args) noexcept
|
|
61
65
|
{
|
|
62
|
-
auto arg_count =
|
|
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::ApplicationModel::LockScreen
|
|
|
78
82
|
return nullptr;
|
|
79
83
|
}
|
|
80
84
|
|
|
81
|
-
|
|
85
|
+
{
|
|
86
|
+
auto _gil = release_gil();
|
|
87
|
+
self->obj.RequestUnlock();
|
|
88
|
+
}
|
|
89
|
+
|
|
82
90
|
Py_RETURN_NONE;
|
|
83
91
|
}
|
|
84
92
|
catch (...)
|
|
@@ -113,7 +121,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
113
121
|
|
|
114
122
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost, winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs>>(arg);
|
|
115
123
|
|
|
116
|
-
return py::convert(
|
|
124
|
+
return py::convert([&]()
|
|
125
|
+
{
|
|
126
|
+
auto _gil = release_gil();
|
|
127
|
+
return self->obj.Unlocking(param0);
|
|
128
|
+
}());
|
|
117
129
|
}
|
|
118
130
|
catch (...)
|
|
119
131
|
{
|
|
@@ -141,7 +153,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
141
153
|
|
|
142
154
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
143
155
|
|
|
144
|
-
|
|
156
|
+
{
|
|
157
|
+
auto _gil = release_gil();
|
|
158
|
+
self->obj.Unlocking(param0);
|
|
159
|
+
}
|
|
160
|
+
|
|
145
161
|
Py_RETURN_NONE;
|
|
146
162
|
}
|
|
147
163
|
catch (...)
|
|
@@ -181,20 +197,17 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
181
197
|
{ "remove_unlocking", reinterpret_cast<PyCFunction>(LockApplicationHost_remove_Unlocking), METH_O, nullptr },
|
|
182
198
|
{ "_assign_array_", _assign_array_LockApplicationHost, METH_O | METH_STATIC, nullptr },
|
|
183
199
|
{ "_from", reinterpret_cast<PyCFunction>(_from_LockApplicationHost), METH_O | METH_STATIC, nullptr },
|
|
184
|
-
{ }
|
|
185
|
-
};
|
|
200
|
+
{ }};
|
|
186
201
|
|
|
187
202
|
static PyGetSetDef _getset_LockApplicationHost[] = {
|
|
188
|
-
{ }
|
|
189
|
-
};
|
|
203
|
+
{ }};
|
|
190
204
|
|
|
191
205
|
static PyType_Slot _type_slots_LockApplicationHost[] = {
|
|
192
206
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockApplicationHost) },
|
|
193
207
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockApplicationHost) },
|
|
194
208
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockApplicationHost) },
|
|
195
209
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockApplicationHost) },
|
|
196
|
-
{ }
|
|
197
|
-
};
|
|
210
|
+
{ }};
|
|
198
211
|
|
|
199
212
|
static PyType_Spec type_spec_LockApplicationHost = {
|
|
200
213
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockApplicationHost",
|
|
@@ -204,13 +217,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
204
217
|
_type_slots_LockApplicationHost};
|
|
205
218
|
|
|
206
219
|
static PyGetSetDef getset_LockApplicationHost_Static[] = {
|
|
207
|
-
{ }
|
|
208
|
-
};
|
|
220
|
+
{ }};
|
|
209
221
|
|
|
210
222
|
static PyMethodDef methods_LockApplicationHost_Static[] = {
|
|
211
223
|
{ "get_for_current_view", reinterpret_cast<PyCFunction>(LockApplicationHost_GetForCurrentView), METH_VARARGS, nullptr },
|
|
212
|
-
{ }
|
|
213
|
-
};
|
|
224
|
+
{ }};
|
|
214
225
|
|
|
215
226
|
static PyType_Slot type_slots_LockApplicationHost_Static[] =
|
|
216
227
|
{
|
|
@@ -220,14 +231,12 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
220
231
|
{ }
|
|
221
232
|
};
|
|
222
233
|
|
|
223
|
-
static PyType_Spec type_spec_LockApplicationHost_Static =
|
|
224
|
-
{
|
|
234
|
+
static PyType_Spec type_spec_LockApplicationHost_Static = {
|
|
225
235
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockApplicationHost_Static",
|
|
226
236
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
227
237
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
228
238
|
Py_TPFLAGS_DEFAULT,
|
|
229
|
-
type_slots_LockApplicationHost_Static
|
|
230
|
-
};
|
|
239
|
+
type_slots_LockApplicationHost_Static};
|
|
231
240
|
|
|
232
241
|
// ----- LockScreenBadge class --------------------
|
|
233
242
|
|
|
@@ -248,7 +257,7 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
248
257
|
|
|
249
258
|
static PyObject* LockScreenBadge_LaunchApp(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenBadge* self, PyObject* args) noexcept
|
|
250
259
|
{
|
|
251
|
-
auto arg_count =
|
|
260
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
252
261
|
|
|
253
262
|
if (arg_count == 0)
|
|
254
263
|
{
|
|
@@ -267,7 +276,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
267
276
|
return nullptr;
|
|
268
277
|
}
|
|
269
278
|
|
|
270
|
-
|
|
279
|
+
{
|
|
280
|
+
auto _gil = release_gil();
|
|
281
|
+
self->obj.LaunchApp();
|
|
282
|
+
}
|
|
283
|
+
|
|
271
284
|
Py_RETURN_NONE;
|
|
272
285
|
}
|
|
273
286
|
catch (...)
|
|
@@ -300,7 +313,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
300
313
|
return nullptr;
|
|
301
314
|
}
|
|
302
315
|
|
|
303
|
-
return py::convert(
|
|
316
|
+
return py::convert([&]()
|
|
317
|
+
{
|
|
318
|
+
auto _gil = release_gil();
|
|
319
|
+
return self->obj.AutomationName();
|
|
320
|
+
}());
|
|
304
321
|
}
|
|
305
322
|
catch (...)
|
|
306
323
|
{
|
|
@@ -326,7 +343,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
326
343
|
return nullptr;
|
|
327
344
|
}
|
|
328
345
|
|
|
329
|
-
return py::convert(
|
|
346
|
+
return py::convert([&]()
|
|
347
|
+
{
|
|
348
|
+
auto _gil = release_gil();
|
|
349
|
+
return self->obj.Glyph();
|
|
350
|
+
}());
|
|
330
351
|
}
|
|
331
352
|
catch (...)
|
|
332
353
|
{
|
|
@@ -352,7 +373,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
352
373
|
return nullptr;
|
|
353
374
|
}
|
|
354
375
|
|
|
355
|
-
return py::convert(
|
|
376
|
+
return py::convert([&]()
|
|
377
|
+
{
|
|
378
|
+
auto _gil = release_gil();
|
|
379
|
+
return self->obj.Logo();
|
|
380
|
+
}());
|
|
356
381
|
}
|
|
357
382
|
catch (...)
|
|
358
383
|
{
|
|
@@ -378,7 +403,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
378
403
|
return nullptr;
|
|
379
404
|
}
|
|
380
405
|
|
|
381
|
-
return py::convert(
|
|
406
|
+
return py::convert([&]()
|
|
407
|
+
{
|
|
408
|
+
auto _gil = release_gil();
|
|
409
|
+
return self->obj.Number();
|
|
410
|
+
}());
|
|
382
411
|
}
|
|
383
412
|
catch (...)
|
|
384
413
|
{
|
|
@@ -415,24 +444,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
415
444
|
{ "launch_app", reinterpret_cast<PyCFunction>(LockScreenBadge_LaunchApp), METH_VARARGS, nullptr },
|
|
416
445
|
{ "_assign_array_", _assign_array_LockScreenBadge, METH_O | METH_STATIC, nullptr },
|
|
417
446
|
{ "_from", reinterpret_cast<PyCFunction>(_from_LockScreenBadge), METH_O | METH_STATIC, nullptr },
|
|
418
|
-
{ }
|
|
419
|
-
};
|
|
447
|
+
{ }};
|
|
420
448
|
|
|
421
449
|
static PyGetSetDef _getset_LockScreenBadge[] = {
|
|
422
450
|
{ "automation_name", reinterpret_cast<getter>(LockScreenBadge_get_AutomationName), nullptr, nullptr, nullptr },
|
|
423
451
|
{ "glyph", reinterpret_cast<getter>(LockScreenBadge_get_Glyph), nullptr, nullptr, nullptr },
|
|
424
452
|
{ "logo", reinterpret_cast<getter>(LockScreenBadge_get_Logo), nullptr, nullptr, nullptr },
|
|
425
453
|
{ "number", reinterpret_cast<getter>(LockScreenBadge_get_Number), nullptr, nullptr, nullptr },
|
|
426
|
-
{ }
|
|
427
|
-
};
|
|
454
|
+
{ }};
|
|
428
455
|
|
|
429
456
|
static PyType_Slot _type_slots_LockScreenBadge[] = {
|
|
430
457
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenBadge) },
|
|
431
458
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenBadge) },
|
|
432
459
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenBadge) },
|
|
433
460
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenBadge) },
|
|
434
|
-
{ }
|
|
435
|
-
};
|
|
461
|
+
{ }};
|
|
436
462
|
|
|
437
463
|
static PyType_Spec type_spec_LockScreenBadge = {
|
|
438
464
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenBadge",
|
|
@@ -475,7 +501,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
475
501
|
return nullptr;
|
|
476
502
|
}
|
|
477
503
|
|
|
478
|
-
return py::convert(
|
|
504
|
+
return py::convert([&]()
|
|
505
|
+
{
|
|
506
|
+
auto _gil = release_gil();
|
|
507
|
+
return self->obj.AlarmIcon();
|
|
508
|
+
}());
|
|
479
509
|
}
|
|
480
510
|
catch (...)
|
|
481
511
|
{
|
|
@@ -501,7 +531,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
501
531
|
return nullptr;
|
|
502
532
|
}
|
|
503
533
|
|
|
504
|
-
return py::convert(
|
|
534
|
+
return py::convert([&]()
|
|
535
|
+
{
|
|
536
|
+
auto _gil = release_gil();
|
|
537
|
+
return self->obj.Badges();
|
|
538
|
+
}());
|
|
505
539
|
}
|
|
506
540
|
catch (...)
|
|
507
541
|
{
|
|
@@ -527,7 +561,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
527
561
|
return nullptr;
|
|
528
562
|
}
|
|
529
563
|
|
|
530
|
-
return py::convert(
|
|
564
|
+
return py::convert([&]()
|
|
565
|
+
{
|
|
566
|
+
auto _gil = release_gil();
|
|
567
|
+
return self->obj.DetailText();
|
|
568
|
+
}());
|
|
531
569
|
}
|
|
532
570
|
catch (...)
|
|
533
571
|
{
|
|
@@ -553,7 +591,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
553
591
|
return nullptr;
|
|
554
592
|
}
|
|
555
593
|
|
|
556
|
-
return py::convert(
|
|
594
|
+
return py::convert([&]()
|
|
595
|
+
{
|
|
596
|
+
auto _gil = release_gil();
|
|
597
|
+
return self->obj.LockScreenImage();
|
|
598
|
+
}());
|
|
557
599
|
}
|
|
558
600
|
catch (...)
|
|
559
601
|
{
|
|
@@ -581,7 +623,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
581
623
|
|
|
582
624
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
583
625
|
|
|
584
|
-
return py::convert(
|
|
626
|
+
return py::convert([&]()
|
|
627
|
+
{
|
|
628
|
+
auto _gil = release_gil();
|
|
629
|
+
return self->obj.AlarmIconChanged(param0);
|
|
630
|
+
}());
|
|
585
631
|
}
|
|
586
632
|
catch (...)
|
|
587
633
|
{
|
|
@@ -609,7 +655,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
609
655
|
|
|
610
656
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
611
657
|
|
|
612
|
-
|
|
658
|
+
{
|
|
659
|
+
auto _gil = release_gil();
|
|
660
|
+
self->obj.AlarmIconChanged(param0);
|
|
661
|
+
}
|
|
662
|
+
|
|
613
663
|
Py_RETURN_NONE;
|
|
614
664
|
}
|
|
615
665
|
catch (...)
|
|
@@ -638,7 +688,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
638
688
|
|
|
639
689
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
640
690
|
|
|
641
|
-
return py::convert(
|
|
691
|
+
return py::convert([&]()
|
|
692
|
+
{
|
|
693
|
+
auto _gil = release_gil();
|
|
694
|
+
return self->obj.BadgesChanged(param0);
|
|
695
|
+
}());
|
|
642
696
|
}
|
|
643
697
|
catch (...)
|
|
644
698
|
{
|
|
@@ -666,7 +720,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
666
720
|
|
|
667
721
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
668
722
|
|
|
669
|
-
|
|
723
|
+
{
|
|
724
|
+
auto _gil = release_gil();
|
|
725
|
+
self->obj.BadgesChanged(param0);
|
|
726
|
+
}
|
|
727
|
+
|
|
670
728
|
Py_RETURN_NONE;
|
|
671
729
|
}
|
|
672
730
|
catch (...)
|
|
@@ -695,7 +753,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
695
753
|
|
|
696
754
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
697
755
|
|
|
698
|
-
return py::convert(
|
|
756
|
+
return py::convert([&]()
|
|
757
|
+
{
|
|
758
|
+
auto _gil = release_gil();
|
|
759
|
+
return self->obj.DetailTextChanged(param0);
|
|
760
|
+
}());
|
|
699
761
|
}
|
|
700
762
|
catch (...)
|
|
701
763
|
{
|
|
@@ -723,7 +785,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
723
785
|
|
|
724
786
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
725
787
|
|
|
726
|
-
|
|
788
|
+
{
|
|
789
|
+
auto _gil = release_gil();
|
|
790
|
+
self->obj.DetailTextChanged(param0);
|
|
791
|
+
}
|
|
792
|
+
|
|
727
793
|
Py_RETURN_NONE;
|
|
728
794
|
}
|
|
729
795
|
catch (...)
|
|
@@ -752,7 +818,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
752
818
|
|
|
753
819
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
754
820
|
|
|
755
|
-
return py::convert(
|
|
821
|
+
return py::convert([&]()
|
|
822
|
+
{
|
|
823
|
+
auto _gil = release_gil();
|
|
824
|
+
return self->obj.LockScreenImageChanged(param0);
|
|
825
|
+
}());
|
|
756
826
|
}
|
|
757
827
|
catch (...)
|
|
758
828
|
{
|
|
@@ -780,7 +850,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
780
850
|
|
|
781
851
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
782
852
|
|
|
783
|
-
|
|
853
|
+
{
|
|
854
|
+
auto _gil = release_gil();
|
|
855
|
+
self->obj.LockScreenImageChanged(param0);
|
|
856
|
+
}
|
|
857
|
+
|
|
784
858
|
Py_RETURN_NONE;
|
|
785
859
|
}
|
|
786
860
|
catch (...)
|
|
@@ -825,24 +899,21 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
825
899
|
{ "remove_lock_screen_image_changed", reinterpret_cast<PyCFunction>(LockScreenInfo_remove_LockScreenImageChanged), METH_O, nullptr },
|
|
826
900
|
{ "_assign_array_", _assign_array_LockScreenInfo, METH_O | METH_STATIC, nullptr },
|
|
827
901
|
{ "_from", reinterpret_cast<PyCFunction>(_from_LockScreenInfo), METH_O | METH_STATIC, nullptr },
|
|
828
|
-
{ }
|
|
829
|
-
};
|
|
902
|
+
{ }};
|
|
830
903
|
|
|
831
904
|
static PyGetSetDef _getset_LockScreenInfo[] = {
|
|
832
905
|
{ "alarm_icon", reinterpret_cast<getter>(LockScreenInfo_get_AlarmIcon), nullptr, nullptr, nullptr },
|
|
833
906
|
{ "badges", reinterpret_cast<getter>(LockScreenInfo_get_Badges), nullptr, nullptr, nullptr },
|
|
834
907
|
{ "detail_text", reinterpret_cast<getter>(LockScreenInfo_get_DetailText), nullptr, nullptr, nullptr },
|
|
835
908
|
{ "lock_screen_image", reinterpret_cast<getter>(LockScreenInfo_get_LockScreenImage), nullptr, nullptr, nullptr },
|
|
836
|
-
{ }
|
|
837
|
-
};
|
|
909
|
+
{ }};
|
|
838
910
|
|
|
839
911
|
static PyType_Slot _type_slots_LockScreenInfo[] = {
|
|
840
912
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenInfo) },
|
|
841
913
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenInfo) },
|
|
842
914
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenInfo) },
|
|
843
915
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenInfo) },
|
|
844
|
-
{ }
|
|
845
|
-
};
|
|
916
|
+
{ }};
|
|
846
917
|
|
|
847
918
|
static PyType_Spec type_spec_LockScreenInfo = {
|
|
848
919
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenInfo",
|
|
@@ -870,7 +941,7 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
870
941
|
|
|
871
942
|
static PyObject* LockScreenUnlockingDeferral_Complete(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral* self, PyObject* args) noexcept
|
|
872
943
|
{
|
|
873
|
-
auto arg_count =
|
|
944
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
874
945
|
|
|
875
946
|
if (arg_count == 0)
|
|
876
947
|
{
|
|
@@ -889,7 +960,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
889
960
|
return nullptr;
|
|
890
961
|
}
|
|
891
962
|
|
|
892
|
-
|
|
963
|
+
{
|
|
964
|
+
auto _gil = release_gil();
|
|
965
|
+
self->obj.Complete();
|
|
966
|
+
}
|
|
967
|
+
|
|
893
968
|
Py_RETURN_NONE;
|
|
894
969
|
}
|
|
895
970
|
catch (...)
|
|
@@ -933,20 +1008,17 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
933
1008
|
{ "complete", reinterpret_cast<PyCFunction>(LockScreenUnlockingDeferral_Complete), METH_VARARGS, nullptr },
|
|
934
1009
|
{ "_assign_array_", _assign_array_LockScreenUnlockingDeferral, METH_O | METH_STATIC, nullptr },
|
|
935
1010
|
{ "_from", reinterpret_cast<PyCFunction>(_from_LockScreenUnlockingDeferral), METH_O | METH_STATIC, nullptr },
|
|
936
|
-
{ }
|
|
937
|
-
};
|
|
1011
|
+
{ }};
|
|
938
1012
|
|
|
939
1013
|
static PyGetSetDef _getset_LockScreenUnlockingDeferral[] = {
|
|
940
|
-
{ }
|
|
941
|
-
};
|
|
1014
|
+
{ }};
|
|
942
1015
|
|
|
943
1016
|
static PyType_Slot _type_slots_LockScreenUnlockingDeferral[] = {
|
|
944
1017
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenUnlockingDeferral) },
|
|
945
1018
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenUnlockingDeferral) },
|
|
946
1019
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenUnlockingDeferral) },
|
|
947
1020
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenUnlockingDeferral) },
|
|
948
|
-
{ }
|
|
949
|
-
};
|
|
1021
|
+
{ }};
|
|
950
1022
|
|
|
951
1023
|
static PyType_Spec type_spec_LockScreenUnlockingDeferral = {
|
|
952
1024
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingDeferral",
|
|
@@ -974,7 +1046,7 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
974
1046
|
|
|
975
1047
|
static PyObject* LockScreenUnlockingEventArgs_GetDeferral(py::wrapper::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs* self, PyObject* args) noexcept
|
|
976
1048
|
{
|
|
977
|
-
auto arg_count =
|
|
1049
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
978
1050
|
|
|
979
1051
|
if (arg_count == 0)
|
|
980
1052
|
{
|
|
@@ -993,7 +1065,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
993
1065
|
return nullptr;
|
|
994
1066
|
}
|
|
995
1067
|
|
|
996
|
-
return py::convert(
|
|
1068
|
+
return py::convert([&]()
|
|
1069
|
+
{
|
|
1070
|
+
auto _gil = release_gil();
|
|
1071
|
+
return self->obj.GetDeferral();
|
|
1072
|
+
}());
|
|
997
1073
|
}
|
|
998
1074
|
catch (...)
|
|
999
1075
|
{
|
|
@@ -1025,7 +1101,11 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
1025
1101
|
return nullptr;
|
|
1026
1102
|
}
|
|
1027
1103
|
|
|
1028
|
-
return py::convert(
|
|
1104
|
+
return py::convert([&]()
|
|
1105
|
+
{
|
|
1106
|
+
auto _gil = release_gil();
|
|
1107
|
+
return self->obj.Deadline();
|
|
1108
|
+
}());
|
|
1029
1109
|
}
|
|
1030
1110
|
catch (...)
|
|
1031
1111
|
{
|
|
@@ -1062,21 +1142,18 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
|
|
|
1062
1142
|
{ "get_deferral", reinterpret_cast<PyCFunction>(LockScreenUnlockingEventArgs_GetDeferral), METH_VARARGS, nullptr },
|
|
1063
1143
|
{ "_assign_array_", _assign_array_LockScreenUnlockingEventArgs, METH_O | METH_STATIC, nullptr },
|
|
1064
1144
|
{ "_from", reinterpret_cast<PyCFunction>(_from_LockScreenUnlockingEventArgs), METH_O | METH_STATIC, nullptr },
|
|
1065
|
-
{ }
|
|
1066
|
-
};
|
|
1145
|
+
{ }};
|
|
1067
1146
|
|
|
1068
1147
|
static PyGetSetDef _getset_LockScreenUnlockingEventArgs[] = {
|
|
1069
1148
|
{ "deadline", reinterpret_cast<getter>(LockScreenUnlockingEventArgs_get_Deadline), nullptr, nullptr, nullptr },
|
|
1070
|
-
{ }
|
|
1071
|
-
};
|
|
1149
|
+
{ }};
|
|
1072
1150
|
|
|
1073
1151
|
static PyType_Slot _type_slots_LockScreenUnlockingEventArgs[] = {
|
|
1074
1152
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LockScreenUnlockingEventArgs) },
|
|
1075
1153
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LockScreenUnlockingEventArgs) },
|
|
1076
1154
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LockScreenUnlockingEventArgs) },
|
|
1077
1155
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LockScreenUnlockingEventArgs) },
|
|
1078
|
-
{ }
|
|
1079
|
-
};
|
|
1156
|
+
{ }};
|
|
1080
1157
|
|
|
1081
1158
|
static PyType_Spec type_spec_LockScreenUnlockingEventArgs = {
|
|
1082
1159
|
"winrt._winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingEventArgs",
|
|
@@ -1117,6 +1194,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_lockscreen(void) noexcept
|
|
|
1117
1194
|
return nullptr;
|
|
1118
1195
|
}
|
|
1119
1196
|
|
|
1197
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1198
|
+
if (!inspectable_meta_type)
|
|
1199
|
+
{
|
|
1200
|
+
return nullptr;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1120
1203
|
auto object_type = py::get_object_type();
|
|
1121
1204
|
if (!object_type)
|
|
1122
1205
|
{
|
|
@@ -1130,7 +1213,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_lockscreen(void) noexcept
|
|
|
1130
1213
|
return nullptr;
|
|
1131
1214
|
}
|
|
1132
1215
|
|
|
1133
|
-
py::pyobj_handle
|
|
1216
|
+
py::pyobj_handle LockApplicationHost_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1217
|
+
if (!LockApplicationHost_Static_bases)
|
|
1218
|
+
{
|
|
1219
|
+
return nullptr;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
py::pyobj_handle type_LockApplicationHost_Static{PyType_FromSpecWithBases(&type_spec_LockApplicationHost_Static, LockApplicationHost_Static_bases.get())};
|
|
1134
1223
|
if (!type_LockApplicationHost_Static)
|
|
1135
1224
|
{
|
|
1136
1225
|
return nullptr;
|
|
@@ -1142,25 +1231,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_lockscreen(void) noexcept
|
|
|
1142
1231
|
return nullptr;
|
|
1143
1232
|
}
|
|
1144
1233
|
|
|
1145
|
-
py::pytype_handle LockScreenBadge_type{py::register_python_type(module.get(), &type_spec_LockScreenBadge, object_bases.get(),
|
|
1234
|
+
py::pytype_handle LockScreenBadge_type{py::register_python_type(module.get(), &type_spec_LockScreenBadge, object_bases.get(), inspectable_meta_type)};
|
|
1146
1235
|
if (!LockScreenBadge_type)
|
|
1147
1236
|
{
|
|
1148
1237
|
return nullptr;
|
|
1149
1238
|
}
|
|
1150
1239
|
|
|
1151
|
-
py::pytype_handle LockScreenInfo_type{py::register_python_type(module.get(), &type_spec_LockScreenInfo, object_bases.get(),
|
|
1240
|
+
py::pytype_handle LockScreenInfo_type{py::register_python_type(module.get(), &type_spec_LockScreenInfo, object_bases.get(), inspectable_meta_type)};
|
|
1152
1241
|
if (!LockScreenInfo_type)
|
|
1153
1242
|
{
|
|
1154
1243
|
return nullptr;
|
|
1155
1244
|
}
|
|
1156
1245
|
|
|
1157
|
-
py::pytype_handle LockScreenUnlockingDeferral_type{py::register_python_type(module.get(), &type_spec_LockScreenUnlockingDeferral, object_bases.get(),
|
|
1246
|
+
py::pytype_handle LockScreenUnlockingDeferral_type{py::register_python_type(module.get(), &type_spec_LockScreenUnlockingDeferral, object_bases.get(), inspectable_meta_type)};
|
|
1158
1247
|
if (!LockScreenUnlockingDeferral_type)
|
|
1159
1248
|
{
|
|
1160
1249
|
return nullptr;
|
|
1161
1250
|
}
|
|
1162
1251
|
|
|
1163
|
-
py::pytype_handle LockScreenUnlockingEventArgs_type{py::register_python_type(module.get(), &type_spec_LockScreenUnlockingEventArgs, object_bases.get(),
|
|
1252
|
+
py::pytype_handle LockScreenUnlockingEventArgs_type{py::register_python_type(module.get(), &type_spec_LockScreenUnlockingEventArgs, object_bases.get(), inspectable_meta_type)};
|
|
1164
1253
|
if (!LockScreenUnlockingEventArgs_type)
|
|
1165
1254
|
{
|
|
1166
1255
|
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
|
|
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="
|
|
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"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
winrt_windows_applicationmodel_lockscreen-3.0.0/winrt/_winrt_windows_applicationmodel_lockscreen.pyi
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
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.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class LockApplicationHost_Static(winrt._winrt.IInspectable_Static):
|
|
20
|
+
# Windows.ApplicationModel.LockScreen.LockApplicationHost Windows.ApplicationModel.LockScreen.LockApplicationHost::GetForCurrentView()
|
|
21
|
+
def get_for_current_view(cls) -> LockApplicationHost: ...
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class LockApplicationHost(winrt.system.Object, metaclass=LockApplicationHost_Static):
|
|
25
|
+
# System.Void Windows.ApplicationModel.LockScreen.LockApplicationHost::RequestUnlock()
|
|
26
|
+
def request_unlock(self) -> None: ...
|
|
27
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.LockScreen.LockApplicationHost::add_Unlocking(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.LockScreen.LockApplicationHost,Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs>)
|
|
28
|
+
def add_unlocking(self, handler: windows_foundation.TypedEventHandler[LockApplicationHost, LockScreenUnlockingEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
29
|
+
# System.Void Windows.ApplicationModel.LockScreen.LockApplicationHost::remove_Unlocking(Windows.Foundation.EventRegistrationToken)
|
|
30
|
+
def remove_unlocking(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
31
|
+
|
|
32
|
+
@typing.final
|
|
33
|
+
class LockScreenBadge(winrt.system.Object):
|
|
34
|
+
# System.Void Windows.ApplicationModel.LockScreen.LockScreenBadge::LaunchApp()
|
|
35
|
+
def launch_app(self) -> None: ...
|
|
36
|
+
# System.String Windows.ApplicationModel.LockScreen.LockScreenBadge::get_AutomationName()
|
|
37
|
+
@_property
|
|
38
|
+
def automation_name(self) -> str: ...
|
|
39
|
+
# Windows.Storage.Streams.IRandomAccessStream Windows.ApplicationModel.LockScreen.LockScreenBadge::get_Glyph()
|
|
40
|
+
@_property
|
|
41
|
+
def glyph(self) -> windows_storage_streams.IRandomAccessStream: ...
|
|
42
|
+
# Windows.Storage.Streams.IRandomAccessStream Windows.ApplicationModel.LockScreen.LockScreenBadge::get_Logo()
|
|
43
|
+
@_property
|
|
44
|
+
def logo(self) -> windows_storage_streams.IRandomAccessStream: ...
|
|
45
|
+
# Windows.Foundation.IReference`1<System.UInt32> Windows.ApplicationModel.LockScreen.LockScreenBadge::get_Number()
|
|
46
|
+
@_property
|
|
47
|
+
def number(self) -> typing.Optional[winrt.system.UInt32]: ...
|
|
48
|
+
|
|
49
|
+
@typing.final
|
|
50
|
+
class LockScreenInfo(winrt.system.Object):
|
|
51
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.LockScreen.LockScreenInfo::add_AlarmIconChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.LockScreen.LockScreenInfo,System.Object>)
|
|
52
|
+
def add_alarm_icon_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
53
|
+
# System.Void Windows.ApplicationModel.LockScreen.LockScreenInfo::remove_AlarmIconChanged(Windows.Foundation.EventRegistrationToken)
|
|
54
|
+
def remove_alarm_icon_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
55
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.LockScreen.LockScreenInfo::add_BadgesChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.LockScreen.LockScreenInfo,System.Object>)
|
|
56
|
+
def add_badges_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
57
|
+
# System.Void Windows.ApplicationModel.LockScreen.LockScreenInfo::remove_BadgesChanged(Windows.Foundation.EventRegistrationToken)
|
|
58
|
+
def remove_badges_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
59
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.LockScreen.LockScreenInfo::add_DetailTextChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.LockScreen.LockScreenInfo,System.Object>)
|
|
60
|
+
def add_detail_text_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
61
|
+
# System.Void Windows.ApplicationModel.LockScreen.LockScreenInfo::remove_DetailTextChanged(Windows.Foundation.EventRegistrationToken)
|
|
62
|
+
def remove_detail_text_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
63
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.LockScreen.LockScreenInfo::add_LockScreenImageChanged(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.LockScreen.LockScreenInfo,System.Object>)
|
|
64
|
+
def add_lock_screen_image_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
65
|
+
# System.Void Windows.ApplicationModel.LockScreen.LockScreenInfo::remove_LockScreenImageChanged(Windows.Foundation.EventRegistrationToken)
|
|
66
|
+
def remove_lock_screen_image_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
67
|
+
# Windows.Storage.Streams.IRandomAccessStream Windows.ApplicationModel.LockScreen.LockScreenInfo::get_AlarmIcon()
|
|
68
|
+
@_property
|
|
69
|
+
def alarm_icon(self) -> windows_storage_streams.IRandomAccessStream: ...
|
|
70
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.LockScreen.LockScreenBadge> Windows.ApplicationModel.LockScreen.LockScreenInfo::get_Badges()
|
|
71
|
+
@_property
|
|
72
|
+
def badges(self) -> typing.Sequence[LockScreenBadge]: ...
|
|
73
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Windows.ApplicationModel.LockScreen.LockScreenInfo::get_DetailText()
|
|
74
|
+
@_property
|
|
75
|
+
def detail_text(self) -> typing.Sequence[str]: ...
|
|
76
|
+
# Windows.Storage.Streams.IRandomAccessStream Windows.ApplicationModel.LockScreen.LockScreenInfo::get_LockScreenImage()
|
|
77
|
+
@_property
|
|
78
|
+
def lock_screen_image(self) -> windows_storage_streams.IRandomAccessStream: ...
|
|
79
|
+
|
|
80
|
+
@typing.final
|
|
81
|
+
class LockScreenUnlockingDeferral(winrt.system.Object):
|
|
82
|
+
# System.Void Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral::Complete()
|
|
83
|
+
def complete(self) -> None: ...
|
|
84
|
+
|
|
85
|
+
@typing.final
|
|
86
|
+
class LockScreenUnlockingEventArgs(winrt.system.Object):
|
|
87
|
+
# Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs::GetDeferral()
|
|
88
|
+
def get_deferral(self) -> LockScreenUnlockingDeferral: ...
|
|
89
|
+
# Windows.Foundation.DateTime Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs::get_Deadline()
|
|
90
|
+
@_property
|
|
91
|
+
def deadline(self) -> datetime.datetime: ...
|
|
92
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
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_applicationmodel_lockscreen import (
|
|
5
|
+
LockApplicationHost,
|
|
6
|
+
LockScreenBadge,
|
|
7
|
+
LockScreenInfo,
|
|
8
|
+
LockScreenUnlockingDeferral,
|
|
9
|
+
LockScreenUnlockingEventArgs,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"LockApplicationHost",
|
|
14
|
+
"LockScreenBadge",
|
|
15
|
+
"LockScreenInfo",
|
|
16
|
+
"LockScreenUnlockingDeferral",
|
|
17
|
+
"LockScreenUnlockingEventArgs",
|
|
18
|
+
]
|
|
19
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.LockScreen
|
|
3
|
-
Version:
|
|
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,13 +10,13 @@ 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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.0
|
winrt_windows_applicationmodel_lockscreen-2.2.0/winrt/_winrt_windows_applicationmodel_lockscreen.pyi
DELETED
|
@@ -1,78 +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.foundation.collections as windows_foundation_collections
|
|
14
|
-
import winrt.windows.storage.streams as windows_storage_streams
|
|
15
|
-
|
|
16
|
-
Self = typing.TypeVar('Self')
|
|
17
|
-
|
|
18
|
-
@typing.final
|
|
19
|
-
class LockApplicationHost_Static(type):
|
|
20
|
-
def get_for_current_view(cls) -> typing.Optional[LockApplicationHost]: ...
|
|
21
|
-
|
|
22
|
-
@typing.final
|
|
23
|
-
class LockApplicationHost(winrt.system.Object, metaclass=LockApplicationHost_Static):
|
|
24
|
-
@staticmethod
|
|
25
|
-
def _from(obj: winrt.system.Object, /) -> LockApplicationHost: ...
|
|
26
|
-
def request_unlock(self) -> None: ...
|
|
27
|
-
def add_unlocking(self, handler: windows_foundation.TypedEventHandler[LockApplicationHost, LockScreenUnlockingEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
28
|
-
def remove_unlocking(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
29
|
-
|
|
30
|
-
@typing.final
|
|
31
|
-
class LockScreenBadge(winrt.system.Object):
|
|
32
|
-
@staticmethod
|
|
33
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenBadge: ...
|
|
34
|
-
def launch_app(self) -> None: ...
|
|
35
|
-
@_property
|
|
36
|
-
def automation_name(self) -> str: ...
|
|
37
|
-
@_property
|
|
38
|
-
def glyph(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
39
|
-
@_property
|
|
40
|
-
def logo(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
41
|
-
@_property
|
|
42
|
-
def number(self) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
|
|
43
|
-
|
|
44
|
-
@typing.final
|
|
45
|
-
class LockScreenInfo(winrt.system.Object):
|
|
46
|
-
@staticmethod
|
|
47
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenInfo: ...
|
|
48
|
-
def add_alarm_icon_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
49
|
-
def remove_alarm_icon_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
50
|
-
def add_badges_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
51
|
-
def remove_badges_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
52
|
-
def add_detail_text_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
53
|
-
def remove_detail_text_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
54
|
-
def add_lock_screen_image_changed(self, handler: windows_foundation.TypedEventHandler[LockScreenInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
55
|
-
def remove_lock_screen_image_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
-
@_property
|
|
57
|
-
def alarm_icon(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
58
|
-
@_property
|
|
59
|
-
def badges(self) -> typing.Optional[windows_foundation_collections.IVectorView[LockScreenBadge]]: ...
|
|
60
|
-
@_property
|
|
61
|
-
def detail_text(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
62
|
-
@_property
|
|
63
|
-
def lock_screen_image(self) -> typing.Optional[windows_storage_streams.IRandomAccessStream]: ...
|
|
64
|
-
|
|
65
|
-
@typing.final
|
|
66
|
-
class LockScreenUnlockingDeferral(winrt.system.Object):
|
|
67
|
-
@staticmethod
|
|
68
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingDeferral: ...
|
|
69
|
-
def complete(self) -> None: ...
|
|
70
|
-
|
|
71
|
-
@typing.final
|
|
72
|
-
class LockScreenUnlockingEventArgs(winrt.system.Object):
|
|
73
|
-
@staticmethod
|
|
74
|
-
def _from(obj: winrt.system.Object, /) -> LockScreenUnlockingEventArgs: ...
|
|
75
|
-
def get_deferral(self) -> typing.Optional[LockScreenUnlockingDeferral]: ...
|
|
76
|
-
@_property
|
|
77
|
-
def deadline(self) -> datetime.datetime: ...
|
|
78
|
-
|
|
@@ -1,18 +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_applicationmodel_lockscreen
|
|
5
|
-
|
|
6
|
-
__all__ = [
|
|
7
|
-
"LockApplicationHost",
|
|
8
|
-
"LockScreenBadge",
|
|
9
|
-
"LockScreenInfo",
|
|
10
|
-
"LockScreenUnlockingDeferral",
|
|
11
|
-
"LockScreenUnlockingEventArgs",
|
|
12
|
-
]
|
|
13
|
-
|
|
14
|
-
LockApplicationHost = _winrt_windows_applicationmodel_lockscreen.LockApplicationHost
|
|
15
|
-
LockScreenBadge = _winrt_windows_applicationmodel_lockscreen.LockScreenBadge
|
|
16
|
-
LockScreenInfo = _winrt_windows_applicationmodel_lockscreen.LockScreenInfo
|
|
17
|
-
LockScreenUnlockingDeferral = _winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingDeferral
|
|
18
|
-
LockScreenUnlockingEventArgs = _winrt_windows_applicationmodel_lockscreen.LockScreenUnlockingEventArgs
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|