winrt-Windows.UI.Popups 2.1.0__tar.gz → 2.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/PKG-INFO +5 -5
- winrt_windows_ui_popups-2.3.0/all-requirements.txt +4 -0
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/py.Windows.UI.Popups.cpp +291 -48
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/pyproject.toml +3 -2
- winrt_windows_ui_popups-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/requirements.txt +2 -2
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/winrt/_winrt_windows_ui_popups.pyi +1 -1
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/winrt/windows/ui/popups/__init__.py +1 -1
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/winrt_Windows.UI.Popups.egg-info/PKG-INFO +5 -5
- winrt_windows_ui_popups-2.3.0/winrt_Windows.UI.Popups.egg-info/requires.txt +5 -0
- winrt_windows_ui_popups-2.1.0/all-requirements.txt +0 -4
- winrt_windows_ui_popups-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_ui_popups-2.1.0/winrt_Windows.UI.Popups.egg-info/requires.txt +0 -5
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/README.md +0 -0
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/setup.cfg +0 -0
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/setup.py +0 -0
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/winrt/windows/ui/popups/py.typed +0 -0
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/winrt_Windows.UI.Popups.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/winrt_Windows.UI.Popups.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/winrt_Windows.UI.Popups.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Popups
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.UI.Popups.h"
|
|
4
4
|
|
|
@@ -21,7 +21,7 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
21
21
|
{
|
|
22
22
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
23
23
|
|
|
24
|
-
winrt::Windows::UI::Popups::MessageDialog instance{
|
|
24
|
+
winrt::Windows::UI::Popups::MessageDialog instance{param0};
|
|
25
25
|
return py::wrap(instance, type);
|
|
26
26
|
}
|
|
27
27
|
catch (...)
|
|
@@ -37,7 +37,7 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
37
37
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
38
38
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
39
39
|
|
|
40
|
-
winrt::Windows::UI::Popups::MessageDialog instance{
|
|
40
|
+
winrt::Windows::UI::Popups::MessageDialog instance{param0, param1};
|
|
41
41
|
return py::wrap(instance, type);
|
|
42
42
|
}
|
|
43
43
|
catch (...)
|
|
@@ -69,7 +69,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
69
69
|
{
|
|
70
70
|
try
|
|
71
71
|
{
|
|
72
|
-
|
|
72
|
+
static std::optional<bool> is_overload_present{};
|
|
73
|
+
|
|
74
|
+
if (!is_overload_present.has_value())
|
|
75
|
+
{
|
|
76
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.MessageDialog", L"ShowAsync", 0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (!is_overload_present.value())
|
|
73
80
|
{
|
|
74
81
|
py::set_arg_count_version_error(0);
|
|
75
82
|
return nullptr;
|
|
@@ -94,7 +101,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
94
101
|
{
|
|
95
102
|
try
|
|
96
103
|
{
|
|
97
|
-
|
|
104
|
+
static std::optional<bool> is_property_present{};
|
|
105
|
+
|
|
106
|
+
if (!is_property_present.has_value())
|
|
107
|
+
{
|
|
108
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Title");
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (!is_property_present.value())
|
|
98
112
|
{
|
|
99
113
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
100
114
|
return nullptr;
|
|
@@ -119,7 +133,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
119
133
|
|
|
120
134
|
try
|
|
121
135
|
{
|
|
122
|
-
|
|
136
|
+
static std::optional<bool> is_property_present{};
|
|
137
|
+
|
|
138
|
+
if (!is_property_present.has_value())
|
|
139
|
+
{
|
|
140
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Title");
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (!is_property_present.value())
|
|
123
144
|
{
|
|
124
145
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
125
146
|
return -1;
|
|
@@ -141,7 +162,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
141
162
|
{
|
|
142
163
|
try
|
|
143
164
|
{
|
|
144
|
-
|
|
165
|
+
static std::optional<bool> is_property_present{};
|
|
166
|
+
|
|
167
|
+
if (!is_property_present.has_value())
|
|
168
|
+
{
|
|
169
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Options");
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (!is_property_present.value())
|
|
145
173
|
{
|
|
146
174
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
147
175
|
return nullptr;
|
|
@@ -166,7 +194,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
166
194
|
|
|
167
195
|
try
|
|
168
196
|
{
|
|
169
|
-
|
|
197
|
+
static std::optional<bool> is_property_present{};
|
|
198
|
+
|
|
199
|
+
if (!is_property_present.has_value())
|
|
200
|
+
{
|
|
201
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Options");
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (!is_property_present.value())
|
|
170
205
|
{
|
|
171
206
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
172
207
|
return -1;
|
|
@@ -188,7 +223,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
188
223
|
{
|
|
189
224
|
try
|
|
190
225
|
{
|
|
191
|
-
|
|
226
|
+
static std::optional<bool> is_property_present{};
|
|
227
|
+
|
|
228
|
+
if (!is_property_present.has_value())
|
|
229
|
+
{
|
|
230
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"DefaultCommandIndex");
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
if (!is_property_present.value())
|
|
192
234
|
{
|
|
193
235
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
194
236
|
return nullptr;
|
|
@@ -213,7 +255,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
213
255
|
|
|
214
256
|
try
|
|
215
257
|
{
|
|
216
|
-
|
|
258
|
+
static std::optional<bool> is_property_present{};
|
|
259
|
+
|
|
260
|
+
if (!is_property_present.has_value())
|
|
261
|
+
{
|
|
262
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"DefaultCommandIndex");
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
if (!is_property_present.value())
|
|
217
266
|
{
|
|
218
267
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
219
268
|
return -1;
|
|
@@ -235,7 +284,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
235
284
|
{
|
|
236
285
|
try
|
|
237
286
|
{
|
|
238
|
-
|
|
287
|
+
static std::optional<bool> is_property_present{};
|
|
288
|
+
|
|
289
|
+
if (!is_property_present.has_value())
|
|
290
|
+
{
|
|
291
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Content");
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
if (!is_property_present.value())
|
|
239
295
|
{
|
|
240
296
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
297
|
return nullptr;
|
|
@@ -260,7 +316,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
260
316
|
|
|
261
317
|
try
|
|
262
318
|
{
|
|
263
|
-
|
|
319
|
+
static std::optional<bool> is_property_present{};
|
|
320
|
+
|
|
321
|
+
if (!is_property_present.has_value())
|
|
322
|
+
{
|
|
323
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Content");
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
if (!is_property_present.value())
|
|
264
327
|
{
|
|
265
328
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
266
329
|
return -1;
|
|
@@ -282,7 +345,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
282
345
|
{
|
|
283
346
|
try
|
|
284
347
|
{
|
|
285
|
-
|
|
348
|
+
static std::optional<bool> is_property_present{};
|
|
349
|
+
|
|
350
|
+
if (!is_property_present.has_value())
|
|
351
|
+
{
|
|
352
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"CancelCommandIndex");
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if (!is_property_present.value())
|
|
286
356
|
{
|
|
287
357
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
288
358
|
return nullptr;
|
|
@@ -307,7 +377,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
307
377
|
|
|
308
378
|
try
|
|
309
379
|
{
|
|
310
|
-
|
|
380
|
+
static std::optional<bool> is_property_present{};
|
|
381
|
+
|
|
382
|
+
if (!is_property_present.has_value())
|
|
383
|
+
{
|
|
384
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"CancelCommandIndex");
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
if (!is_property_present.value())
|
|
311
388
|
{
|
|
312
389
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
313
390
|
return -1;
|
|
@@ -329,7 +406,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
329
406
|
{
|
|
330
407
|
try
|
|
331
408
|
{
|
|
332
|
-
|
|
409
|
+
static std::optional<bool> is_property_present{};
|
|
410
|
+
|
|
411
|
+
if (!is_property_present.has_value())
|
|
412
|
+
{
|
|
413
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Commands");
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (!is_property_present.value())
|
|
333
417
|
{
|
|
334
418
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
335
419
|
return nullptr;
|
|
@@ -415,7 +499,7 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
415
499
|
{
|
|
416
500
|
try
|
|
417
501
|
{
|
|
418
|
-
winrt::Windows::UI::Popups::PopupMenu instance{
|
|
502
|
+
winrt::Windows::UI::Popups::PopupMenu instance{};
|
|
419
503
|
return py::wrap(instance, type);
|
|
420
504
|
}
|
|
421
505
|
catch (...)
|
|
@@ -447,7 +531,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
447
531
|
{
|
|
448
532
|
try
|
|
449
533
|
{
|
|
450
|
-
|
|
534
|
+
static std::optional<bool> is_overload_present{};
|
|
535
|
+
|
|
536
|
+
if (!is_overload_present.has_value())
|
|
537
|
+
{
|
|
538
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowAsync", 1);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
if (!is_overload_present.value())
|
|
451
542
|
{
|
|
452
543
|
py::set_arg_count_version_error(1);
|
|
453
544
|
return nullptr;
|
|
@@ -478,7 +569,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
478
569
|
{
|
|
479
570
|
try
|
|
480
571
|
{
|
|
481
|
-
|
|
572
|
+
static std::optional<bool> is_overload_present{};
|
|
573
|
+
|
|
574
|
+
if (!is_overload_present.has_value())
|
|
575
|
+
{
|
|
576
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowForSelectionAsync", 1);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
if (!is_overload_present.value())
|
|
482
580
|
{
|
|
483
581
|
py::set_arg_count_version_error(1);
|
|
484
582
|
return nullptr;
|
|
@@ -498,7 +596,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
498
596
|
{
|
|
499
597
|
try
|
|
500
598
|
{
|
|
501
|
-
|
|
599
|
+
static std::optional<bool> is_overload_present{};
|
|
600
|
+
|
|
601
|
+
if (!is_overload_present.has_value())
|
|
602
|
+
{
|
|
603
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowForSelectionAsync", 2);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
if (!is_overload_present.value())
|
|
502
607
|
{
|
|
503
608
|
py::set_arg_count_version_error(2);
|
|
504
609
|
return nullptr;
|
|
@@ -526,7 +631,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
526
631
|
{
|
|
527
632
|
try
|
|
528
633
|
{
|
|
529
|
-
|
|
634
|
+
static std::optional<bool> is_property_present{};
|
|
635
|
+
|
|
636
|
+
if (!is_property_present.has_value())
|
|
637
|
+
{
|
|
638
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.PopupMenu", L"Commands");
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
if (!is_property_present.value())
|
|
530
642
|
{
|
|
531
643
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
532
644
|
return nullptr;
|
|
@@ -610,7 +722,7 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
610
722
|
{
|
|
611
723
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
612
724
|
|
|
613
|
-
winrt::Windows::UI::Popups::UICommand instance{
|
|
725
|
+
winrt::Windows::UI::Popups::UICommand instance{param0};
|
|
614
726
|
return py::wrap(instance, type);
|
|
615
727
|
}
|
|
616
728
|
catch (...)
|
|
@@ -626,7 +738,7 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
626
738
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
627
739
|
auto param1 = py::convert_to<winrt::Windows::UI::Popups::UICommandInvokedHandler>(args, 1);
|
|
628
740
|
|
|
629
|
-
winrt::Windows::UI::Popups::UICommand instance{
|
|
741
|
+
winrt::Windows::UI::Popups::UICommand instance{param0, param1};
|
|
630
742
|
return py::wrap(instance, type);
|
|
631
743
|
}
|
|
632
744
|
catch (...)
|
|
@@ -643,7 +755,7 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
643
755
|
auto param1 = py::convert_to<winrt::Windows::UI::Popups::UICommandInvokedHandler>(args, 1);
|
|
644
756
|
auto param2 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 2);
|
|
645
757
|
|
|
646
|
-
winrt::Windows::UI::Popups::UICommand instance{
|
|
758
|
+
winrt::Windows::UI::Popups::UICommand instance{param0, param1, param2};
|
|
647
759
|
return py::wrap(instance, type);
|
|
648
760
|
}
|
|
649
761
|
catch (...)
|
|
@@ -656,7 +768,7 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
656
768
|
{
|
|
657
769
|
try
|
|
658
770
|
{
|
|
659
|
-
winrt::Windows::UI::Popups::UICommand instance{
|
|
771
|
+
winrt::Windows::UI::Popups::UICommand instance{};
|
|
660
772
|
return py::wrap(instance, type);
|
|
661
773
|
}
|
|
662
774
|
catch (...)
|
|
@@ -684,7 +796,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
684
796
|
{
|
|
685
797
|
try
|
|
686
798
|
{
|
|
687
|
-
|
|
799
|
+
static std::optional<bool> is_property_present{};
|
|
800
|
+
|
|
801
|
+
if (!is_property_present.has_value())
|
|
802
|
+
{
|
|
803
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Label");
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
if (!is_property_present.value())
|
|
688
807
|
{
|
|
689
808
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
690
809
|
return nullptr;
|
|
@@ -709,7 +828,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
709
828
|
|
|
710
829
|
try
|
|
711
830
|
{
|
|
712
|
-
|
|
831
|
+
static std::optional<bool> is_property_present{};
|
|
832
|
+
|
|
833
|
+
if (!is_property_present.has_value())
|
|
834
|
+
{
|
|
835
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Label");
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
if (!is_property_present.value())
|
|
713
839
|
{
|
|
714
840
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
715
841
|
return -1;
|
|
@@ -731,7 +857,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
731
857
|
{
|
|
732
858
|
try
|
|
733
859
|
{
|
|
734
|
-
|
|
860
|
+
static std::optional<bool> is_property_present{};
|
|
861
|
+
|
|
862
|
+
if (!is_property_present.has_value())
|
|
863
|
+
{
|
|
864
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Invoked");
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
if (!is_property_present.value())
|
|
735
868
|
{
|
|
736
869
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
737
870
|
return nullptr;
|
|
@@ -756,7 +889,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
756
889
|
|
|
757
890
|
try
|
|
758
891
|
{
|
|
759
|
-
|
|
892
|
+
static std::optional<bool> is_property_present{};
|
|
893
|
+
|
|
894
|
+
if (!is_property_present.has_value())
|
|
895
|
+
{
|
|
896
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Invoked");
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
if (!is_property_present.value())
|
|
760
900
|
{
|
|
761
901
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
762
902
|
return -1;
|
|
@@ -778,7 +918,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
778
918
|
{
|
|
779
919
|
try
|
|
780
920
|
{
|
|
781
|
-
|
|
921
|
+
static std::optional<bool> is_property_present{};
|
|
922
|
+
|
|
923
|
+
if (!is_property_present.has_value())
|
|
924
|
+
{
|
|
925
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Id");
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
if (!is_property_present.value())
|
|
782
929
|
{
|
|
783
930
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
784
931
|
return nullptr;
|
|
@@ -803,7 +950,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
803
950
|
|
|
804
951
|
try
|
|
805
952
|
{
|
|
806
|
-
|
|
953
|
+
static std::optional<bool> is_property_present{};
|
|
954
|
+
|
|
955
|
+
if (!is_property_present.has_value())
|
|
956
|
+
{
|
|
957
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Id");
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
if (!is_property_present.value())
|
|
807
961
|
{
|
|
808
962
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
809
963
|
return -1;
|
|
@@ -888,7 +1042,7 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
888
1042
|
{
|
|
889
1043
|
try
|
|
890
1044
|
{
|
|
891
|
-
winrt::Windows::UI::Popups::UICommandSeparator instance{
|
|
1045
|
+
winrt::Windows::UI::Popups::UICommandSeparator instance{};
|
|
892
1046
|
return py::wrap(instance, type);
|
|
893
1047
|
}
|
|
894
1048
|
catch (...)
|
|
@@ -916,7 +1070,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
916
1070
|
{
|
|
917
1071
|
try
|
|
918
1072
|
{
|
|
919
|
-
|
|
1073
|
+
static std::optional<bool> is_property_present{};
|
|
1074
|
+
|
|
1075
|
+
if (!is_property_present.has_value())
|
|
1076
|
+
{
|
|
1077
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Label");
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
if (!is_property_present.value())
|
|
920
1081
|
{
|
|
921
1082
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
922
1083
|
return nullptr;
|
|
@@ -941,7 +1102,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
941
1102
|
|
|
942
1103
|
try
|
|
943
1104
|
{
|
|
944
|
-
|
|
1105
|
+
static std::optional<bool> is_property_present{};
|
|
1106
|
+
|
|
1107
|
+
if (!is_property_present.has_value())
|
|
1108
|
+
{
|
|
1109
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Label");
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
if (!is_property_present.value())
|
|
945
1113
|
{
|
|
946
1114
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
947
1115
|
return -1;
|
|
@@ -963,7 +1131,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
963
1131
|
{
|
|
964
1132
|
try
|
|
965
1133
|
{
|
|
966
|
-
|
|
1134
|
+
static std::optional<bool> is_property_present{};
|
|
1135
|
+
|
|
1136
|
+
if (!is_property_present.has_value())
|
|
1137
|
+
{
|
|
1138
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Invoked");
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
if (!is_property_present.value())
|
|
967
1142
|
{
|
|
968
1143
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
969
1144
|
return nullptr;
|
|
@@ -988,7 +1163,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
988
1163
|
|
|
989
1164
|
try
|
|
990
1165
|
{
|
|
991
|
-
|
|
1166
|
+
static std::optional<bool> is_property_present{};
|
|
1167
|
+
|
|
1168
|
+
if (!is_property_present.has_value())
|
|
1169
|
+
{
|
|
1170
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Invoked");
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
if (!is_property_present.value())
|
|
992
1174
|
{
|
|
993
1175
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
994
1176
|
return -1;
|
|
@@ -1010,7 +1192,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1010
1192
|
{
|
|
1011
1193
|
try
|
|
1012
1194
|
{
|
|
1013
|
-
|
|
1195
|
+
static std::optional<bool> is_property_present{};
|
|
1196
|
+
|
|
1197
|
+
if (!is_property_present.has_value())
|
|
1198
|
+
{
|
|
1199
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Id");
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
if (!is_property_present.value())
|
|
1014
1203
|
{
|
|
1015
1204
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1016
1205
|
return nullptr;
|
|
@@ -1035,7 +1224,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1035
1224
|
|
|
1036
1225
|
try
|
|
1037
1226
|
{
|
|
1038
|
-
|
|
1227
|
+
static std::optional<bool> is_property_present{};
|
|
1228
|
+
|
|
1229
|
+
if (!is_property_present.has_value())
|
|
1230
|
+
{
|
|
1231
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Id");
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
if (!is_property_present.value())
|
|
1039
1235
|
{
|
|
1040
1236
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1041
1237
|
return -1;
|
|
@@ -1126,7 +1322,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1126
1322
|
{
|
|
1127
1323
|
try
|
|
1128
1324
|
{
|
|
1129
|
-
|
|
1325
|
+
static std::optional<bool> is_property_present{};
|
|
1326
|
+
|
|
1327
|
+
if (!is_property_present.has_value())
|
|
1328
|
+
{
|
|
1329
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Id");
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
if (!is_property_present.value())
|
|
1130
1333
|
{
|
|
1131
1334
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1132
1335
|
return nullptr;
|
|
@@ -1151,7 +1354,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1151
1354
|
|
|
1152
1355
|
try
|
|
1153
1356
|
{
|
|
1154
|
-
|
|
1357
|
+
static std::optional<bool> is_property_present{};
|
|
1358
|
+
|
|
1359
|
+
if (!is_property_present.has_value())
|
|
1360
|
+
{
|
|
1361
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Id");
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
if (!is_property_present.value())
|
|
1155
1365
|
{
|
|
1156
1366
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1157
1367
|
return -1;
|
|
@@ -1173,7 +1383,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1173
1383
|
{
|
|
1174
1384
|
try
|
|
1175
1385
|
{
|
|
1176
|
-
|
|
1386
|
+
static std::optional<bool> is_property_present{};
|
|
1387
|
+
|
|
1388
|
+
if (!is_property_present.has_value())
|
|
1389
|
+
{
|
|
1390
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Invoked");
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
if (!is_property_present.value())
|
|
1177
1394
|
{
|
|
1178
1395
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1179
1396
|
return nullptr;
|
|
@@ -1198,7 +1415,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1198
1415
|
|
|
1199
1416
|
try
|
|
1200
1417
|
{
|
|
1201
|
-
|
|
1418
|
+
static std::optional<bool> is_property_present{};
|
|
1419
|
+
|
|
1420
|
+
if (!is_property_present.has_value())
|
|
1421
|
+
{
|
|
1422
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Invoked");
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
if (!is_property_present.value())
|
|
1202
1426
|
{
|
|
1203
1427
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1204
1428
|
return -1;
|
|
@@ -1220,7 +1444,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1220
1444
|
{
|
|
1221
1445
|
try
|
|
1222
1446
|
{
|
|
1223
|
-
|
|
1447
|
+
static std::optional<bool> is_property_present{};
|
|
1448
|
+
|
|
1449
|
+
if (!is_property_present.has_value())
|
|
1450
|
+
{
|
|
1451
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Label");
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
if (!is_property_present.value())
|
|
1224
1455
|
{
|
|
1225
1456
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1226
1457
|
return nullptr;
|
|
@@ -1245,7 +1476,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1245
1476
|
|
|
1246
1477
|
try
|
|
1247
1478
|
{
|
|
1248
|
-
|
|
1479
|
+
static std::optional<bool> is_property_present{};
|
|
1480
|
+
|
|
1481
|
+
if (!is_property_present.has_value())
|
|
1482
|
+
{
|
|
1483
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Label");
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
if (!is_property_present.value())
|
|
1249
1487
|
{
|
|
1250
1488
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1251
1489
|
return -1;
|
|
@@ -1360,27 +1598,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_popups(void) noexcept
|
|
|
1360
1598
|
return nullptr;
|
|
1361
1599
|
}
|
|
1362
1600
|
|
|
1363
|
-
|
|
1601
|
+
py::pytype_handle MessageDialog_type{py::register_python_type(module.get(), &type_spec_MessageDialog, object_bases.get(), nullptr)};
|
|
1602
|
+
if (!MessageDialog_type)
|
|
1364
1603
|
{
|
|
1365
1604
|
return nullptr;
|
|
1366
1605
|
}
|
|
1367
1606
|
|
|
1368
|
-
|
|
1607
|
+
py::pytype_handle PopupMenu_type{py::register_python_type(module.get(), &type_spec_PopupMenu, object_bases.get(), nullptr)};
|
|
1608
|
+
if (!PopupMenu_type)
|
|
1369
1609
|
{
|
|
1370
1610
|
return nullptr;
|
|
1371
1611
|
}
|
|
1372
1612
|
|
|
1373
|
-
|
|
1613
|
+
py::pytype_handle UICommand_type{py::register_python_type(module.get(), &type_spec_UICommand, object_bases.get(), nullptr)};
|
|
1614
|
+
if (!UICommand_type)
|
|
1374
1615
|
{
|
|
1375
1616
|
return nullptr;
|
|
1376
1617
|
}
|
|
1377
1618
|
|
|
1378
|
-
|
|
1619
|
+
py::pytype_handle UICommandSeparator_type{py::register_python_type(module.get(), &type_spec_UICommandSeparator, object_bases.get(), nullptr)};
|
|
1620
|
+
if (!UICommandSeparator_type)
|
|
1379
1621
|
{
|
|
1380
1622
|
return nullptr;
|
|
1381
1623
|
}
|
|
1382
1624
|
|
|
1383
|
-
|
|
1625
|
+
py::pytype_handle IUICommand_type{py::register_python_type(module.get(), &type_spec_IUICommand, object_bases.get(), nullptr)};
|
|
1626
|
+
if (!IUICommand_type)
|
|
1384
1627
|
{
|
|
1385
1628
|
return nullptr;
|
|
1386
1629
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.3.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Popups
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_windows_ui_popups-2.1.0 → winrt_windows_ui_popups-2.3.0}/winrt/windows/ui/popups/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|