winrt-Windows.UI.Popups 2.0.0b2__tar.gz → 2.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.
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/PKG-INFO +4 -1
- winrt_windows_ui_popups-2.1.0/all-requirements.txt +4 -0
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/py.Windows.UI.Popups.cpp +236 -253
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/pyproject.toml +2 -2
- winrt_windows_ui_popups-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/requirements.txt +2 -2
- winrt_windows_ui_popups-2.1.0/setup.py +31 -0
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/winrt/_winrt_windows_ui_popups.pyi +17 -17
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/winrt/windows/ui/popups/__init__.py +2 -2
- winrt_windows_ui_popups-2.1.0/winrt/windows/ui/popups/py.typed +0 -0
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/winrt_Windows.UI.Popups.egg-info/PKG-INFO +4 -1
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/winrt_Windows.UI.Popups.egg-info/SOURCES.txt +1 -0
- winrt_windows_ui_popups-2.1.0/winrt_Windows.UI.Popups.egg-info/requires.txt +5 -0
- winrt-Windows.UI.Popups-2.0.0b2/all-requirements.txt +0 -4
- winrt-Windows.UI.Popups-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.UI.Popups-2.0.0b2/setup.py +0 -16
- winrt-Windows.UI.Popups-2.0.0b2/winrt_Windows.UI.Popups.egg-info/requires.txt +0 -5
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/README.md +0 -0
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/winrt_Windows.UI.Popups.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.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.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
16
19
|
|
|
17
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
21
|
|
|
@@ -1,8 +1,7 @@
|
|
|
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.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.UI.Popups.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::UI::Popups
|
|
7
6
|
{
|
|
8
7
|
// ----- MessageDialog class --------------------
|
|
@@ -68,14 +67,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
68
67
|
|
|
69
68
|
if (arg_count == 0)
|
|
70
69
|
{
|
|
71
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.MessageDialog", L"ShowAsync", 0))
|
|
72
|
-
{
|
|
73
|
-
py::set_arg_count_version_error(0);
|
|
74
|
-
return nullptr;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
70
|
try
|
|
78
71
|
{
|
|
72
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.MessageDialog", L"ShowAsync", 0))
|
|
73
|
+
{
|
|
74
|
+
py::set_arg_count_version_error(0);
|
|
75
|
+
return nullptr;
|
|
76
|
+
}
|
|
77
|
+
|
|
79
78
|
return py::convert(self->obj.ShowAsync());
|
|
80
79
|
}
|
|
81
80
|
catch (...)
|
|
@@ -93,14 +92,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
93
92
|
|
|
94
93
|
static PyObject* MessageDialog_get_Title(py::wrapper::Windows::UI::Popups::MessageDialog* self, void* /*unused*/) noexcept
|
|
95
94
|
{
|
|
96
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Title"))
|
|
97
|
-
{
|
|
98
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
99
|
-
return nullptr;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
95
|
try
|
|
103
96
|
{
|
|
97
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Title"))
|
|
98
|
+
{
|
|
99
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
100
|
+
return nullptr;
|
|
101
|
+
}
|
|
102
|
+
|
|
104
103
|
return py::convert(self->obj.Title());
|
|
105
104
|
}
|
|
106
105
|
catch (...)
|
|
@@ -112,12 +111,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
112
111
|
|
|
113
112
|
static int MessageDialog_put_Title(py::wrapper::Windows::UI::Popups::MessageDialog* self, PyObject* arg, void* /*unused*/) noexcept
|
|
114
113
|
{
|
|
115
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Title"))
|
|
116
|
-
{
|
|
117
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
118
|
-
return -1;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
114
|
if (arg == nullptr)
|
|
122
115
|
{
|
|
123
116
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -126,6 +119,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
126
119
|
|
|
127
120
|
try
|
|
128
121
|
{
|
|
122
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Title"))
|
|
123
|
+
{
|
|
124
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
125
|
+
return -1;
|
|
126
|
+
}
|
|
127
|
+
|
|
129
128
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
130
129
|
|
|
131
130
|
self->obj.Title(param0);
|
|
@@ -140,14 +139,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
140
139
|
|
|
141
140
|
static PyObject* MessageDialog_get_Options(py::wrapper::Windows::UI::Popups::MessageDialog* self, void* /*unused*/) noexcept
|
|
142
141
|
{
|
|
143
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Options"))
|
|
144
|
-
{
|
|
145
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
146
|
-
return nullptr;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
142
|
try
|
|
150
143
|
{
|
|
144
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Options"))
|
|
145
|
+
{
|
|
146
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
147
|
+
return nullptr;
|
|
148
|
+
}
|
|
149
|
+
|
|
151
150
|
return py::convert(self->obj.Options());
|
|
152
151
|
}
|
|
153
152
|
catch (...)
|
|
@@ -159,12 +158,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
159
158
|
|
|
160
159
|
static int MessageDialog_put_Options(py::wrapper::Windows::UI::Popups::MessageDialog* self, PyObject* arg, void* /*unused*/) noexcept
|
|
161
160
|
{
|
|
162
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Options"))
|
|
163
|
-
{
|
|
164
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
165
|
-
return -1;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
161
|
if (arg == nullptr)
|
|
169
162
|
{
|
|
170
163
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -173,6 +166,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
173
166
|
|
|
174
167
|
try
|
|
175
168
|
{
|
|
169
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Options"))
|
|
170
|
+
{
|
|
171
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
172
|
+
return -1;
|
|
173
|
+
}
|
|
174
|
+
|
|
176
175
|
auto param0 = py::convert_to<winrt::Windows::UI::Popups::MessageDialogOptions>(arg);
|
|
177
176
|
|
|
178
177
|
self->obj.Options(param0);
|
|
@@ -187,14 +186,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
187
186
|
|
|
188
187
|
static PyObject* MessageDialog_get_DefaultCommandIndex(py::wrapper::Windows::UI::Popups::MessageDialog* self, void* /*unused*/) noexcept
|
|
189
188
|
{
|
|
190
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"DefaultCommandIndex"))
|
|
191
|
-
{
|
|
192
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
193
|
-
return nullptr;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
189
|
try
|
|
197
190
|
{
|
|
191
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"DefaultCommandIndex"))
|
|
192
|
+
{
|
|
193
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
194
|
+
return nullptr;
|
|
195
|
+
}
|
|
196
|
+
|
|
198
197
|
return py::convert(self->obj.DefaultCommandIndex());
|
|
199
198
|
}
|
|
200
199
|
catch (...)
|
|
@@ -206,12 +205,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
206
205
|
|
|
207
206
|
static int MessageDialog_put_DefaultCommandIndex(py::wrapper::Windows::UI::Popups::MessageDialog* self, PyObject* arg, void* /*unused*/) noexcept
|
|
208
207
|
{
|
|
209
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"DefaultCommandIndex"))
|
|
210
|
-
{
|
|
211
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
212
|
-
return -1;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
208
|
if (arg == nullptr)
|
|
216
209
|
{
|
|
217
210
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -220,6 +213,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
220
213
|
|
|
221
214
|
try
|
|
222
215
|
{
|
|
216
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"DefaultCommandIndex"))
|
|
217
|
+
{
|
|
218
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
219
|
+
return -1;
|
|
220
|
+
}
|
|
221
|
+
|
|
223
222
|
auto param0 = py::convert_to<uint32_t>(arg);
|
|
224
223
|
|
|
225
224
|
self->obj.DefaultCommandIndex(param0);
|
|
@@ -234,14 +233,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
234
233
|
|
|
235
234
|
static PyObject* MessageDialog_get_Content(py::wrapper::Windows::UI::Popups::MessageDialog* self, void* /*unused*/) noexcept
|
|
236
235
|
{
|
|
237
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Content"))
|
|
238
|
-
{
|
|
239
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
240
|
-
return nullptr;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
236
|
try
|
|
244
237
|
{
|
|
238
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Content"))
|
|
239
|
+
{
|
|
240
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
|
+
return nullptr;
|
|
242
|
+
}
|
|
243
|
+
|
|
245
244
|
return py::convert(self->obj.Content());
|
|
246
245
|
}
|
|
247
246
|
catch (...)
|
|
@@ -253,12 +252,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
253
252
|
|
|
254
253
|
static int MessageDialog_put_Content(py::wrapper::Windows::UI::Popups::MessageDialog* self, PyObject* arg, void* /*unused*/) noexcept
|
|
255
254
|
{
|
|
256
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Content"))
|
|
257
|
-
{
|
|
258
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
259
|
-
return -1;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
255
|
if (arg == nullptr)
|
|
263
256
|
{
|
|
264
257
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -267,6 +260,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
267
260
|
|
|
268
261
|
try
|
|
269
262
|
{
|
|
263
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Content"))
|
|
264
|
+
{
|
|
265
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
266
|
+
return -1;
|
|
267
|
+
}
|
|
268
|
+
|
|
270
269
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
271
270
|
|
|
272
271
|
self->obj.Content(param0);
|
|
@@ -281,14 +280,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
281
280
|
|
|
282
281
|
static PyObject* MessageDialog_get_CancelCommandIndex(py::wrapper::Windows::UI::Popups::MessageDialog* self, void* /*unused*/) noexcept
|
|
283
282
|
{
|
|
284
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"CancelCommandIndex"))
|
|
285
|
-
{
|
|
286
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
287
|
-
return nullptr;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
283
|
try
|
|
291
284
|
{
|
|
285
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"CancelCommandIndex"))
|
|
286
|
+
{
|
|
287
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
288
|
+
return nullptr;
|
|
289
|
+
}
|
|
290
|
+
|
|
292
291
|
return py::convert(self->obj.CancelCommandIndex());
|
|
293
292
|
}
|
|
294
293
|
catch (...)
|
|
@@ -300,12 +299,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
300
299
|
|
|
301
300
|
static int MessageDialog_put_CancelCommandIndex(py::wrapper::Windows::UI::Popups::MessageDialog* self, PyObject* arg, void* /*unused*/) noexcept
|
|
302
301
|
{
|
|
303
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"CancelCommandIndex"))
|
|
304
|
-
{
|
|
305
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
306
|
-
return -1;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
302
|
if (arg == nullptr)
|
|
310
303
|
{
|
|
311
304
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -314,6 +307,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
314
307
|
|
|
315
308
|
try
|
|
316
309
|
{
|
|
310
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"CancelCommandIndex"))
|
|
311
|
+
{
|
|
312
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
313
|
+
return -1;
|
|
314
|
+
}
|
|
315
|
+
|
|
317
316
|
auto param0 = py::convert_to<uint32_t>(arg);
|
|
318
317
|
|
|
319
318
|
self->obj.CancelCommandIndex(param0);
|
|
@@ -328,14 +327,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
328
327
|
|
|
329
328
|
static PyObject* MessageDialog_get_Commands(py::wrapper::Windows::UI::Popups::MessageDialog* self, void* /*unused*/) noexcept
|
|
330
329
|
{
|
|
331
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Commands"))
|
|
332
|
-
{
|
|
333
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
334
|
-
return nullptr;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
330
|
try
|
|
338
331
|
{
|
|
332
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.MessageDialog", L"Commands"))
|
|
333
|
+
{
|
|
334
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
335
|
+
return nullptr;
|
|
336
|
+
}
|
|
337
|
+
|
|
339
338
|
return py::convert(self->obj.Commands());
|
|
340
339
|
}
|
|
341
340
|
catch (...)
|
|
@@ -386,23 +385,20 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
386
385
|
{ }
|
|
387
386
|
};
|
|
388
387
|
|
|
389
|
-
static PyType_Slot _type_slots_MessageDialog[] =
|
|
390
|
-
{
|
|
388
|
+
static PyType_Slot _type_slots_MessageDialog[] = {
|
|
391
389
|
{ Py_tp_new, reinterpret_cast<void*>(_new_MessageDialog) },
|
|
392
390
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MessageDialog) },
|
|
393
391
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_MessageDialog) },
|
|
394
392
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_MessageDialog) },
|
|
395
|
-
{ }
|
|
393
|
+
{ }
|
|
396
394
|
};
|
|
397
395
|
|
|
398
|
-
static PyType_Spec type_spec_MessageDialog =
|
|
399
|
-
{
|
|
396
|
+
static PyType_Spec type_spec_MessageDialog = {
|
|
400
397
|
"winrt._winrt_windows_ui_popups.MessageDialog",
|
|
401
398
|
sizeof(py::wrapper::Windows::UI::Popups::MessageDialog),
|
|
402
399
|
0,
|
|
403
400
|
Py_TPFLAGS_DEFAULT,
|
|
404
|
-
_type_slots_MessageDialog
|
|
405
|
-
};
|
|
401
|
+
_type_slots_MessageDialog};
|
|
406
402
|
|
|
407
403
|
// ----- PopupMenu class --------------------
|
|
408
404
|
|
|
@@ -449,14 +445,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
449
445
|
|
|
450
446
|
if (arg_count == 1)
|
|
451
447
|
{
|
|
452
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowAsync", 1))
|
|
453
|
-
{
|
|
454
|
-
py::set_arg_count_version_error(1);
|
|
455
|
-
return nullptr;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
448
|
try
|
|
459
449
|
{
|
|
450
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowAsync", 1))
|
|
451
|
+
{
|
|
452
|
+
py::set_arg_count_version_error(1);
|
|
453
|
+
return nullptr;
|
|
454
|
+
}
|
|
455
|
+
|
|
460
456
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Point>(args, 0);
|
|
461
457
|
|
|
462
458
|
return py::convert(self->obj.ShowAsync(param0));
|
|
@@ -480,14 +476,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
480
476
|
|
|
481
477
|
if (arg_count == 1)
|
|
482
478
|
{
|
|
483
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowForSelectionAsync", 1))
|
|
484
|
-
{
|
|
485
|
-
py::set_arg_count_version_error(1);
|
|
486
|
-
return nullptr;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
479
|
try
|
|
490
480
|
{
|
|
481
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowForSelectionAsync", 1))
|
|
482
|
+
{
|
|
483
|
+
py::set_arg_count_version_error(1);
|
|
484
|
+
return nullptr;
|
|
485
|
+
}
|
|
486
|
+
|
|
491
487
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Rect>(args, 0);
|
|
492
488
|
|
|
493
489
|
return py::convert(self->obj.ShowForSelectionAsync(param0));
|
|
@@ -500,14 +496,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
500
496
|
}
|
|
501
497
|
else if (arg_count == 2)
|
|
502
498
|
{
|
|
503
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowForSelectionAsync", 2))
|
|
504
|
-
{
|
|
505
|
-
py::set_arg_count_version_error(2);
|
|
506
|
-
return nullptr;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
499
|
try
|
|
510
500
|
{
|
|
501
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Popups.PopupMenu", L"ShowForSelectionAsync", 2))
|
|
502
|
+
{
|
|
503
|
+
py::set_arg_count_version_error(2);
|
|
504
|
+
return nullptr;
|
|
505
|
+
}
|
|
506
|
+
|
|
511
507
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Rect>(args, 0);
|
|
512
508
|
auto param1 = py::convert_to<winrt::Windows::UI::Popups::Placement>(args, 1);
|
|
513
509
|
|
|
@@ -528,14 +524,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
528
524
|
|
|
529
525
|
static PyObject* PopupMenu_get_Commands(py::wrapper::Windows::UI::Popups::PopupMenu* self, void* /*unused*/) noexcept
|
|
530
526
|
{
|
|
531
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.PopupMenu", L"Commands"))
|
|
532
|
-
{
|
|
533
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
534
|
-
return nullptr;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
527
|
try
|
|
538
528
|
{
|
|
529
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.PopupMenu", L"Commands"))
|
|
530
|
+
{
|
|
531
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
532
|
+
return nullptr;
|
|
533
|
+
}
|
|
534
|
+
|
|
539
535
|
return py::convert(self->obj.Commands());
|
|
540
536
|
}
|
|
541
537
|
catch (...)
|
|
@@ -582,23 +578,20 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
582
578
|
{ }
|
|
583
579
|
};
|
|
584
580
|
|
|
585
|
-
static PyType_Slot _type_slots_PopupMenu[] =
|
|
586
|
-
{
|
|
581
|
+
static PyType_Slot _type_slots_PopupMenu[] = {
|
|
587
582
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PopupMenu) },
|
|
588
583
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PopupMenu) },
|
|
589
584
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PopupMenu) },
|
|
590
585
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PopupMenu) },
|
|
591
|
-
{ }
|
|
586
|
+
{ }
|
|
592
587
|
};
|
|
593
588
|
|
|
594
|
-
static PyType_Spec type_spec_PopupMenu =
|
|
595
|
-
{
|
|
589
|
+
static PyType_Spec type_spec_PopupMenu = {
|
|
596
590
|
"winrt._winrt_windows_ui_popups.PopupMenu",
|
|
597
591
|
sizeof(py::wrapper::Windows::UI::Popups::PopupMenu),
|
|
598
592
|
0,
|
|
599
593
|
Py_TPFLAGS_DEFAULT,
|
|
600
|
-
_type_slots_PopupMenu
|
|
601
|
-
};
|
|
594
|
+
_type_slots_PopupMenu};
|
|
602
595
|
|
|
603
596
|
// ----- UICommand class --------------------
|
|
604
597
|
|
|
@@ -689,14 +682,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
689
682
|
|
|
690
683
|
static PyObject* UICommand_get_Label(py::wrapper::Windows::UI::Popups::UICommand* self, void* /*unused*/) noexcept
|
|
691
684
|
{
|
|
692
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Label"))
|
|
693
|
-
{
|
|
694
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
695
|
-
return nullptr;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
685
|
try
|
|
699
686
|
{
|
|
687
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Label"))
|
|
688
|
+
{
|
|
689
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
690
|
+
return nullptr;
|
|
691
|
+
}
|
|
692
|
+
|
|
700
693
|
return py::convert(self->obj.Label());
|
|
701
694
|
}
|
|
702
695
|
catch (...)
|
|
@@ -708,12 +701,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
708
701
|
|
|
709
702
|
static int UICommand_put_Label(py::wrapper::Windows::UI::Popups::UICommand* self, PyObject* arg, void* /*unused*/) noexcept
|
|
710
703
|
{
|
|
711
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Label"))
|
|
712
|
-
{
|
|
713
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
714
|
-
return -1;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
704
|
if (arg == nullptr)
|
|
718
705
|
{
|
|
719
706
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -722,6 +709,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
722
709
|
|
|
723
710
|
try
|
|
724
711
|
{
|
|
712
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Label"))
|
|
713
|
+
{
|
|
714
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
715
|
+
return -1;
|
|
716
|
+
}
|
|
717
|
+
|
|
725
718
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
726
719
|
|
|
727
720
|
self->obj.Label(param0);
|
|
@@ -736,14 +729,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
736
729
|
|
|
737
730
|
static PyObject* UICommand_get_Invoked(py::wrapper::Windows::UI::Popups::UICommand* self, void* /*unused*/) noexcept
|
|
738
731
|
{
|
|
739
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Invoked"))
|
|
740
|
-
{
|
|
741
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
742
|
-
return nullptr;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
732
|
try
|
|
746
733
|
{
|
|
734
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Invoked"))
|
|
735
|
+
{
|
|
736
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
737
|
+
return nullptr;
|
|
738
|
+
}
|
|
739
|
+
|
|
747
740
|
return py::convert(self->obj.Invoked());
|
|
748
741
|
}
|
|
749
742
|
catch (...)
|
|
@@ -755,12 +748,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
755
748
|
|
|
756
749
|
static int UICommand_put_Invoked(py::wrapper::Windows::UI::Popups::UICommand* self, PyObject* arg, void* /*unused*/) noexcept
|
|
757
750
|
{
|
|
758
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Invoked"))
|
|
759
|
-
{
|
|
760
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
761
|
-
return -1;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
751
|
if (arg == nullptr)
|
|
765
752
|
{
|
|
766
753
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -769,6 +756,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
769
756
|
|
|
770
757
|
try
|
|
771
758
|
{
|
|
759
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Invoked"))
|
|
760
|
+
{
|
|
761
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
762
|
+
return -1;
|
|
763
|
+
}
|
|
764
|
+
|
|
772
765
|
auto param0 = py::convert_to<winrt::Windows::UI::Popups::UICommandInvokedHandler>(arg);
|
|
773
766
|
|
|
774
767
|
self->obj.Invoked(param0);
|
|
@@ -783,14 +776,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
783
776
|
|
|
784
777
|
static PyObject* UICommand_get_Id(py::wrapper::Windows::UI::Popups::UICommand* self, void* /*unused*/) noexcept
|
|
785
778
|
{
|
|
786
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Id"))
|
|
787
|
-
{
|
|
788
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
789
|
-
return nullptr;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
779
|
try
|
|
793
780
|
{
|
|
781
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Id"))
|
|
782
|
+
{
|
|
783
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
784
|
+
return nullptr;
|
|
785
|
+
}
|
|
786
|
+
|
|
794
787
|
return py::convert(self->obj.Id());
|
|
795
788
|
}
|
|
796
789
|
catch (...)
|
|
@@ -802,12 +795,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
802
795
|
|
|
803
796
|
static int UICommand_put_Id(py::wrapper::Windows::UI::Popups::UICommand* self, PyObject* arg, void* /*unused*/) noexcept
|
|
804
797
|
{
|
|
805
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Id"))
|
|
806
|
-
{
|
|
807
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
808
|
-
return -1;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
798
|
if (arg == nullptr)
|
|
812
799
|
{
|
|
813
800
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -816,6 +803,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
816
803
|
|
|
817
804
|
try
|
|
818
805
|
{
|
|
806
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommand", L"Id"))
|
|
807
|
+
{
|
|
808
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
809
|
+
return -1;
|
|
810
|
+
}
|
|
811
|
+
|
|
819
812
|
auto param0 = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
820
813
|
|
|
821
814
|
self->obj.Id(param0);
|
|
@@ -865,23 +858,20 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
865
858
|
{ }
|
|
866
859
|
};
|
|
867
860
|
|
|
868
|
-
static PyType_Slot _type_slots_UICommand[] =
|
|
869
|
-
{
|
|
861
|
+
static PyType_Slot _type_slots_UICommand[] = {
|
|
870
862
|
{ Py_tp_new, reinterpret_cast<void*>(_new_UICommand) },
|
|
871
863
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UICommand) },
|
|
872
864
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_UICommand) },
|
|
873
865
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_UICommand) },
|
|
874
|
-
{ }
|
|
866
|
+
{ }
|
|
875
867
|
};
|
|
876
868
|
|
|
877
|
-
static PyType_Spec type_spec_UICommand =
|
|
878
|
-
{
|
|
869
|
+
static PyType_Spec type_spec_UICommand = {
|
|
879
870
|
"winrt._winrt_windows_ui_popups.UICommand",
|
|
880
871
|
sizeof(py::wrapper::Windows::UI::Popups::UICommand),
|
|
881
872
|
0,
|
|
882
873
|
Py_TPFLAGS_DEFAULT,
|
|
883
|
-
_type_slots_UICommand
|
|
884
|
-
};
|
|
874
|
+
_type_slots_UICommand};
|
|
885
875
|
|
|
886
876
|
// ----- UICommandSeparator class --------------------
|
|
887
877
|
|
|
@@ -924,14 +914,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
924
914
|
|
|
925
915
|
static PyObject* UICommandSeparator_get_Label(py::wrapper::Windows::UI::Popups::UICommandSeparator* self, void* /*unused*/) noexcept
|
|
926
916
|
{
|
|
927
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Label"))
|
|
928
|
-
{
|
|
929
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
930
|
-
return nullptr;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
917
|
try
|
|
934
918
|
{
|
|
919
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Label"))
|
|
920
|
+
{
|
|
921
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
922
|
+
return nullptr;
|
|
923
|
+
}
|
|
924
|
+
|
|
935
925
|
return py::convert(self->obj.Label());
|
|
936
926
|
}
|
|
937
927
|
catch (...)
|
|
@@ -943,12 +933,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
943
933
|
|
|
944
934
|
static int UICommandSeparator_put_Label(py::wrapper::Windows::UI::Popups::UICommandSeparator* self, PyObject* arg, void* /*unused*/) noexcept
|
|
945
935
|
{
|
|
946
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Label"))
|
|
947
|
-
{
|
|
948
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
949
|
-
return -1;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
936
|
if (arg == nullptr)
|
|
953
937
|
{
|
|
954
938
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -957,6 +941,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
957
941
|
|
|
958
942
|
try
|
|
959
943
|
{
|
|
944
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Label"))
|
|
945
|
+
{
|
|
946
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
947
|
+
return -1;
|
|
948
|
+
}
|
|
949
|
+
|
|
960
950
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
961
951
|
|
|
962
952
|
self->obj.Label(param0);
|
|
@@ -971,14 +961,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
971
961
|
|
|
972
962
|
static PyObject* UICommandSeparator_get_Invoked(py::wrapper::Windows::UI::Popups::UICommandSeparator* self, void* /*unused*/) noexcept
|
|
973
963
|
{
|
|
974
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Invoked"))
|
|
975
|
-
{
|
|
976
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
977
|
-
return nullptr;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
964
|
try
|
|
981
965
|
{
|
|
966
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Invoked"))
|
|
967
|
+
{
|
|
968
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
969
|
+
return nullptr;
|
|
970
|
+
}
|
|
971
|
+
|
|
982
972
|
return py::convert(self->obj.Invoked());
|
|
983
973
|
}
|
|
984
974
|
catch (...)
|
|
@@ -990,12 +980,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
990
980
|
|
|
991
981
|
static int UICommandSeparator_put_Invoked(py::wrapper::Windows::UI::Popups::UICommandSeparator* self, PyObject* arg, void* /*unused*/) noexcept
|
|
992
982
|
{
|
|
993
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Invoked"))
|
|
994
|
-
{
|
|
995
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
996
|
-
return -1;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
983
|
if (arg == nullptr)
|
|
1000
984
|
{
|
|
1001
985
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1004,6 +988,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1004
988
|
|
|
1005
989
|
try
|
|
1006
990
|
{
|
|
991
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Invoked"))
|
|
992
|
+
{
|
|
993
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
994
|
+
return -1;
|
|
995
|
+
}
|
|
996
|
+
|
|
1007
997
|
auto param0 = py::convert_to<winrt::Windows::UI::Popups::UICommandInvokedHandler>(arg);
|
|
1008
998
|
|
|
1009
999
|
self->obj.Invoked(param0);
|
|
@@ -1018,14 +1008,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1018
1008
|
|
|
1019
1009
|
static PyObject* UICommandSeparator_get_Id(py::wrapper::Windows::UI::Popups::UICommandSeparator* self, void* /*unused*/) noexcept
|
|
1020
1010
|
{
|
|
1021
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Id"))
|
|
1022
|
-
{
|
|
1023
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1024
|
-
return nullptr;
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
1011
|
try
|
|
1028
1012
|
{
|
|
1013
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Id"))
|
|
1014
|
+
{
|
|
1015
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1016
|
+
return nullptr;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1029
1019
|
return py::convert(self->obj.Id());
|
|
1030
1020
|
}
|
|
1031
1021
|
catch (...)
|
|
@@ -1037,12 +1027,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1037
1027
|
|
|
1038
1028
|
static int UICommandSeparator_put_Id(py::wrapper::Windows::UI::Popups::UICommandSeparator* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1039
1029
|
{
|
|
1040
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Id"))
|
|
1041
|
-
{
|
|
1042
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1043
|
-
return -1;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
1030
|
if (arg == nullptr)
|
|
1047
1031
|
{
|
|
1048
1032
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1051,6 +1035,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1051
1035
|
|
|
1052
1036
|
try
|
|
1053
1037
|
{
|
|
1038
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.UICommandSeparator", L"Id"))
|
|
1039
|
+
{
|
|
1040
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1041
|
+
return -1;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1054
1044
|
auto param0 = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
1055
1045
|
|
|
1056
1046
|
self->obj.Id(param0);
|
|
@@ -1100,23 +1090,20 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1100
1090
|
{ }
|
|
1101
1091
|
};
|
|
1102
1092
|
|
|
1103
|
-
static PyType_Slot _type_slots_UICommandSeparator[] =
|
|
1104
|
-
{
|
|
1093
|
+
static PyType_Slot _type_slots_UICommandSeparator[] = {
|
|
1105
1094
|
{ Py_tp_new, reinterpret_cast<void*>(_new_UICommandSeparator) },
|
|
1106
1095
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UICommandSeparator) },
|
|
1107
1096
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_UICommandSeparator) },
|
|
1108
1097
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_UICommandSeparator) },
|
|
1109
|
-
{ }
|
|
1098
|
+
{ }
|
|
1110
1099
|
};
|
|
1111
1100
|
|
|
1112
|
-
static PyType_Spec type_spec_UICommandSeparator =
|
|
1113
|
-
{
|
|
1101
|
+
static PyType_Spec type_spec_UICommandSeparator = {
|
|
1114
1102
|
"winrt._winrt_windows_ui_popups.UICommandSeparator",
|
|
1115
1103
|
sizeof(py::wrapper::Windows::UI::Popups::UICommandSeparator),
|
|
1116
1104
|
0,
|
|
1117
1105
|
Py_TPFLAGS_DEFAULT,
|
|
1118
|
-
_type_slots_UICommandSeparator
|
|
1119
|
-
};
|
|
1106
|
+
_type_slots_UICommandSeparator};
|
|
1120
1107
|
|
|
1121
1108
|
// ----- IUICommand interface --------------------
|
|
1122
1109
|
|
|
@@ -1137,14 +1124,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1137
1124
|
|
|
1138
1125
|
static PyObject* IUICommand_get_Id(py::wrapper::Windows::UI::Popups::IUICommand* self, void* /*unused*/) noexcept
|
|
1139
1126
|
{
|
|
1140
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Id"))
|
|
1141
|
-
{
|
|
1142
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1143
|
-
return nullptr;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
1127
|
try
|
|
1147
1128
|
{
|
|
1129
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Id"))
|
|
1130
|
+
{
|
|
1131
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1132
|
+
return nullptr;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1148
1135
|
return py::convert(self->obj.Id());
|
|
1149
1136
|
}
|
|
1150
1137
|
catch (...)
|
|
@@ -1156,12 +1143,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1156
1143
|
|
|
1157
1144
|
static int IUICommand_put_Id(py::wrapper::Windows::UI::Popups::IUICommand* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1158
1145
|
{
|
|
1159
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Id"))
|
|
1160
|
-
{
|
|
1161
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1162
|
-
return -1;
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
1146
|
if (arg == nullptr)
|
|
1166
1147
|
{
|
|
1167
1148
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1170,6 +1151,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1170
1151
|
|
|
1171
1152
|
try
|
|
1172
1153
|
{
|
|
1154
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Id"))
|
|
1155
|
+
{
|
|
1156
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1157
|
+
return -1;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1173
1160
|
auto param0 = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
1174
1161
|
|
|
1175
1162
|
self->obj.Id(param0);
|
|
@@ -1184,14 +1171,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1184
1171
|
|
|
1185
1172
|
static PyObject* IUICommand_get_Invoked(py::wrapper::Windows::UI::Popups::IUICommand* self, void* /*unused*/) noexcept
|
|
1186
1173
|
{
|
|
1187
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Invoked"))
|
|
1188
|
-
{
|
|
1189
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1190
|
-
return nullptr;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
1174
|
try
|
|
1194
1175
|
{
|
|
1176
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Invoked"))
|
|
1177
|
+
{
|
|
1178
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1179
|
+
return nullptr;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1195
1182
|
return py::convert(self->obj.Invoked());
|
|
1196
1183
|
}
|
|
1197
1184
|
catch (...)
|
|
@@ -1203,12 +1190,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1203
1190
|
|
|
1204
1191
|
static int IUICommand_put_Invoked(py::wrapper::Windows::UI::Popups::IUICommand* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1205
1192
|
{
|
|
1206
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Invoked"))
|
|
1207
|
-
{
|
|
1208
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1209
|
-
return -1;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
1193
|
if (arg == nullptr)
|
|
1213
1194
|
{
|
|
1214
1195
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1217,6 +1198,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1217
1198
|
|
|
1218
1199
|
try
|
|
1219
1200
|
{
|
|
1201
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Invoked"))
|
|
1202
|
+
{
|
|
1203
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1204
|
+
return -1;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1220
1207
|
auto param0 = py::convert_to<winrt::Windows::UI::Popups::UICommandInvokedHandler>(arg);
|
|
1221
1208
|
|
|
1222
1209
|
self->obj.Invoked(param0);
|
|
@@ -1231,14 +1218,14 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1231
1218
|
|
|
1232
1219
|
static PyObject* IUICommand_get_Label(py::wrapper::Windows::UI::Popups::IUICommand* self, void* /*unused*/) noexcept
|
|
1233
1220
|
{
|
|
1234
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Label"))
|
|
1235
|
-
{
|
|
1236
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1237
|
-
return nullptr;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
1221
|
try
|
|
1241
1222
|
{
|
|
1223
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Label"))
|
|
1224
|
+
{
|
|
1225
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1226
|
+
return nullptr;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1242
1229
|
return py::convert(self->obj.Label());
|
|
1243
1230
|
}
|
|
1244
1231
|
catch (...)
|
|
@@ -1250,12 +1237,6 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1250
1237
|
|
|
1251
1238
|
static int IUICommand_put_Label(py::wrapper::Windows::UI::Popups::IUICommand* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1252
1239
|
{
|
|
1253
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Label"))
|
|
1254
|
-
{
|
|
1255
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1256
|
-
return -1;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
1240
|
if (arg == nullptr)
|
|
1260
1241
|
{
|
|
1261
1242
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -1264,6 +1245,12 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1264
1245
|
|
|
1265
1246
|
try
|
|
1266
1247
|
{
|
|
1248
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Popups.IUICommand", L"Label"))
|
|
1249
|
+
{
|
|
1250
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1251
|
+
return -1;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1267
1254
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
1268
1255
|
|
|
1269
1256
|
self->obj.Label(param0);
|
|
@@ -1313,39 +1300,35 @@ namespace py::cpp::Windows::UI::Popups
|
|
|
1313
1300
|
{ }
|
|
1314
1301
|
};
|
|
1315
1302
|
|
|
1316
|
-
static PyType_Slot _type_slots_IUICommand[] =
|
|
1317
|
-
{
|
|
1303
|
+
static PyType_Slot _type_slots_IUICommand[] = {
|
|
1318
1304
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IUICommand) },
|
|
1319
1305
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IUICommand) },
|
|
1320
1306
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IUICommand) },
|
|
1321
1307
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IUICommand) },
|
|
1322
|
-
{ }
|
|
1308
|
+
{ }
|
|
1323
1309
|
};
|
|
1324
1310
|
|
|
1325
|
-
static PyType_Spec type_spec_IUICommand =
|
|
1326
|
-
{
|
|
1311
|
+
static PyType_Spec type_spec_IUICommand = {
|
|
1327
1312
|
"winrt._winrt_windows_ui_popups.IUICommand",
|
|
1328
1313
|
sizeof(py::wrapper::Windows::UI::Popups::IUICommand),
|
|
1329
1314
|
0,
|
|
1330
1315
|
Py_TPFLAGS_DEFAULT,
|
|
1331
|
-
_type_slots_IUICommand
|
|
1332
|
-
};
|
|
1316
|
+
_type_slots_IUICommand};
|
|
1333
1317
|
|
|
1334
1318
|
// ----- Windows.UI.Popups Initialization --------------------
|
|
1335
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Popups");
|
|
1336
1319
|
|
|
1320
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Popups");
|
|
1337
1321
|
|
|
1338
|
-
static PyModuleDef module_def
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1322
|
+
static PyModuleDef module_def = {
|
|
1323
|
+
PyModuleDef_HEAD_INIT,
|
|
1324
|
+
"_winrt_windows_ui_popups",
|
|
1325
|
+
module_doc,
|
|
1326
|
+
0,
|
|
1327
|
+
nullptr,
|
|
1328
|
+
nullptr,
|
|
1329
|
+
nullptr,
|
|
1330
|
+
nullptr,
|
|
1331
|
+
nullptr};
|
|
1349
1332
|
} // py::cpp::Windows::UI::Popups
|
|
1350
1333
|
|
|
1351
1334
|
PyMODINIT_FUNC PyInit__winrt_windows_ui_popups(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.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.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_ui_popups",
|
|
26
|
+
sources=["py.Windows.UI.Popups.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
{winrt-Windows.UI.Popups-2.0.0b2 → winrt_windows_ui_popups-2.1.0}/winrt/_winrt_windows_ui_popups.pyi
RENAMED
|
@@ -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.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,8 +9,8 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
14
|
|
|
15
15
|
from winrt.windows.ui.popups import MessageDialogOptions, Placement
|
|
16
16
|
from winrt.windows.ui.popups import UICommandInvokedHandler
|
|
@@ -22,10 +22,10 @@ class MessageDialog(winrt.system.Object):
|
|
|
22
22
|
@staticmethod
|
|
23
23
|
def _from(obj: winrt.system.Object, /) -> MessageDialog: ...
|
|
24
24
|
@typing.overload
|
|
25
|
-
def __new__(cls: typing.Type[MessageDialog], content: str) -> MessageDialog
|
|
25
|
+
def __new__(cls: typing.Type[MessageDialog], content: str) -> MessageDialog: ...
|
|
26
26
|
@typing.overload
|
|
27
|
-
def __new__(cls: typing.Type[MessageDialog], content: str, title: str) -> MessageDialog
|
|
28
|
-
def show_async(self) ->
|
|
27
|
+
def __new__(cls: typing.Type[MessageDialog], content: str, title: str) -> MessageDialog: ...
|
|
28
|
+
def show_async(self) -> windows_foundation.IAsyncOperation[IUICommand]: ...
|
|
29
29
|
@_property
|
|
30
30
|
def title(self) -> str: ...
|
|
31
31
|
@title.setter
|
|
@@ -47,33 +47,33 @@ class MessageDialog(winrt.system.Object):
|
|
|
47
47
|
@cancel_command_index.setter
|
|
48
48
|
def cancel_command_index(self, value: winrt.system.UInt32) -> None: ...
|
|
49
49
|
@_property
|
|
50
|
-
def commands(self) -> typing.Optional[
|
|
50
|
+
def commands(self) -> typing.Optional[windows_foundation_collections.IVector[IUICommand]]: ...
|
|
51
51
|
|
|
52
52
|
@typing.final
|
|
53
53
|
class PopupMenu(winrt.system.Object):
|
|
54
54
|
@staticmethod
|
|
55
55
|
def _from(obj: winrt.system.Object, /) -> PopupMenu: ...
|
|
56
|
-
def __new__(cls: typing.Type[PopupMenu]) -> PopupMenu
|
|
57
|
-
def show_async(self, invocation_point:
|
|
56
|
+
def __new__(cls: typing.Type[PopupMenu]) -> PopupMenu: ...
|
|
57
|
+
def show_async(self, invocation_point: windows_foundation.Point, /) -> windows_foundation.IAsyncOperation[IUICommand]: ...
|
|
58
58
|
@typing.overload
|
|
59
|
-
def show_for_selection_async(self, selection:
|
|
59
|
+
def show_for_selection_async(self, selection: windows_foundation.Rect, /) -> windows_foundation.IAsyncOperation[IUICommand]: ...
|
|
60
60
|
@typing.overload
|
|
61
|
-
def show_for_selection_async(self, selection:
|
|
61
|
+
def show_for_selection_async(self, selection: windows_foundation.Rect, preferred_placement: Placement, /) -> windows_foundation.IAsyncOperation[IUICommand]: ...
|
|
62
62
|
@_property
|
|
63
|
-
def commands(self) -> typing.Optional[
|
|
63
|
+
def commands(self) -> typing.Optional[windows_foundation_collections.IVector[IUICommand]]: ...
|
|
64
64
|
|
|
65
65
|
@typing.final
|
|
66
66
|
class UICommand(winrt.system.Object):
|
|
67
67
|
@staticmethod
|
|
68
68
|
def _from(obj: winrt.system.Object, /) -> UICommand: ...
|
|
69
69
|
@typing.overload
|
|
70
|
-
def __new__(cls: typing.Type[UICommand], label: str) -> UICommand
|
|
70
|
+
def __new__(cls: typing.Type[UICommand], label: str) -> UICommand: ...
|
|
71
71
|
@typing.overload
|
|
72
|
-
def __new__(cls: typing.Type[UICommand], label: str, action: typing.Optional[UICommandInvokedHandler]) -> UICommand
|
|
72
|
+
def __new__(cls: typing.Type[UICommand], label: str, action: typing.Optional[UICommandInvokedHandler]) -> UICommand: ...
|
|
73
73
|
@typing.overload
|
|
74
|
-
def __new__(cls: typing.Type[UICommand], label: str, action: typing.Optional[UICommandInvokedHandler], command_id: typing.Optional[winrt.system.Object]) -> UICommand
|
|
74
|
+
def __new__(cls: typing.Type[UICommand], label: str, action: typing.Optional[UICommandInvokedHandler], command_id: typing.Optional[winrt.system.Object]) -> UICommand: ...
|
|
75
75
|
@typing.overload
|
|
76
|
-
def __new__(cls: typing.Type[UICommand]) -> UICommand
|
|
76
|
+
def __new__(cls: typing.Type[UICommand]) -> UICommand: ...
|
|
77
77
|
@_property
|
|
78
78
|
def label(self) -> str: ...
|
|
79
79
|
@label.setter
|
|
@@ -91,7 +91,7 @@ class UICommand(winrt.system.Object):
|
|
|
91
91
|
class UICommandSeparator(winrt.system.Object):
|
|
92
92
|
@staticmethod
|
|
93
93
|
def _from(obj: winrt.system.Object, /) -> UICommandSeparator: ...
|
|
94
|
-
def __new__(cls: typing.Type[UICommandSeparator]) -> UICommandSeparator
|
|
94
|
+
def __new__(cls: typing.Type[UICommandSeparator]) -> UICommandSeparator: ...
|
|
95
95
|
@_property
|
|
96
96
|
def label(self) -> str: ...
|
|
97
97
|
@label.setter
|
|
@@ -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.1.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
import typing
|
|
@@ -19,7 +19,7 @@ __all__ = [
|
|
|
19
19
|
]
|
|
20
20
|
|
|
21
21
|
class MessageDialogOptions(enum.IntFlag):
|
|
22
|
-
NONE =
|
|
22
|
+
NONE = 0x0
|
|
23
23
|
ACCEPT_USER_INPUT_AFTER_DELAY = 0x1
|
|
24
24
|
|
|
25
25
|
class Placement(enum.IntEnum):
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Popups
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
16
19
|
|
|
17
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
21
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_ui_popups.pyi
|
|
9
9
|
winrt/windows/ui/popups/__init__.py
|
|
10
|
+
winrt/windows/ui/popups/py.typed
|
|
10
11
|
winrt_Windows.UI.Popups.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.UI.Popups.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.UI.Popups.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_ui_popups",
|
|
10
|
-
sources=["py.Windows.UI.Popups.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|