winrt-Windows.UI.Core.Preview 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.
Files changed (21) hide show
  1. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/PKG-INFO +4 -1
  2. winrt_windows_ui_core_preview-2.1.0/all-requirements.txt +4 -0
  3. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/py.Windows.UI.Core.Preview.cpp +66 -77
  4. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_ui_core_preview-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_ui_core_preview-2.1.0/setup.py +31 -0
  8. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/winrt/_winrt_windows_ui_core_preview.pyi +7 -7
  9. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/winrt/windows/ui/core/preview/__init__.py +1 -1
  10. winrt_windows_ui_core_preview-2.1.0/winrt/windows/ui/core/preview/py.typed +0 -0
  11. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/winrt_Windows.UI.Core.Preview.egg-info/PKG-INFO +4 -1
  12. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/winrt_Windows.UI.Core.Preview.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_ui_core_preview-2.1.0/winrt_Windows.UI.Core.Preview.egg-info/requires.txt +5 -0
  14. winrt-Windows.UI.Core.Preview-2.0.0b2/all-requirements.txt +0 -4
  15. winrt-Windows.UI.Core.Preview-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.UI.Core.Preview-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.UI.Core.Preview-2.0.0b2/winrt_Windows.UI.Core.Preview.egg-info/requires.txt +0 -5
  18. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/README.md +0 -0
  19. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/setup.cfg +0 -0
  20. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/winrt_Windows.UI.Core.Preview.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.UI.Core.Preview-2.0.0b2 → winrt_windows_ui_core_preview-2.1.0}/winrt_Windows.UI.Core.Preview.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Core.Preview
3
- Version: 2.0.0b2
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.UI.WindowManagement[all]==2.1.0; extra == "all"
16
19
 
17
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
+
3
+ winrt-Windows.Foundation[all]==2.1.0
4
+ winrt-Windows.UI.WindowManagement[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
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.Core.Preview.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::UI::Core::Preview
7
6
  {
8
7
  // ----- CoreAppWindowPreview class --------------------
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::UI::Core::Preview
28
27
 
29
28
  if (arg_count == 1)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.CoreAppWindowPreview", L"GetIdFromWindow", 1))
32
- {
33
- py::set_arg_count_version_error(1);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
32
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.CoreAppWindowPreview", L"GetIdFromWindow", 1))
33
+ {
34
+ py::set_arg_count_version_error(1);
35
+ return nullptr;
36
+ }
37
+
39
38
  auto param0 = py::convert_to<winrt::Windows::UI::WindowManagement::AppWindow>(args, 0);
40
39
 
41
40
  return py::convert(winrt::Windows::UI::Core::Preview::CoreAppWindowPreview::GetIdFromWindow(param0));
@@ -87,23 +86,20 @@ namespace py::cpp::Windows::UI::Core::Preview
87
86
  { }
88
87
  };
89
88
 
90
- static PyType_Slot _type_slots_CoreAppWindowPreview[] =
91
- {
89
+ static PyType_Slot _type_slots_CoreAppWindowPreview[] = {
92
90
  { Py_tp_new, reinterpret_cast<void*>(_new_CoreAppWindowPreview) },
93
91
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CoreAppWindowPreview) },
94
92
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CoreAppWindowPreview) },
95
93
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CoreAppWindowPreview) },
96
- { },
94
+ { }
97
95
  };
98
96
 
99
- static PyType_Spec type_spec_CoreAppWindowPreview =
100
- {
97
+ static PyType_Spec type_spec_CoreAppWindowPreview = {
101
98
  "winrt._winrt_windows_ui_core_preview.CoreAppWindowPreview",
102
99
  sizeof(py::wrapper::Windows::UI::Core::Preview::CoreAppWindowPreview),
103
100
  0,
104
101
  Py_TPFLAGS_DEFAULT,
105
- _type_slots_CoreAppWindowPreview
106
- };
102
+ _type_slots_CoreAppWindowPreview};
107
103
 
108
104
  static PyGetSetDef getset_CoreAppWindowPreview_Static[] = {
109
105
  { }
@@ -154,14 +150,14 @@ namespace py::cpp::Windows::UI::Core::Preview
154
150
 
155
151
  if (arg_count == 0)
156
152
  {
157
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"GetDeferral", 0))
158
- {
159
- py::set_arg_count_version_error(0);
160
- return nullptr;
161
- }
162
-
163
153
  try
164
154
  {
155
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"GetDeferral", 0))
156
+ {
157
+ py::set_arg_count_version_error(0);
158
+ return nullptr;
159
+ }
160
+
165
161
  return py::convert(self->obj.GetDeferral());
166
162
  }
167
163
  catch (...)
@@ -179,14 +175,14 @@ namespace py::cpp::Windows::UI::Core::Preview
179
175
 
180
176
  static PyObject* SystemNavigationCloseRequestedPreviewEventArgs_get_Handled(py::wrapper::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs* self, void* /*unused*/) noexcept
181
177
  {
182
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled"))
183
- {
184
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
185
- return nullptr;
186
- }
187
-
188
178
  try
189
179
  {
180
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled"))
181
+ {
182
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
183
+ return nullptr;
184
+ }
185
+
190
186
  return py::convert(self->obj.Handled());
191
187
  }
192
188
  catch (...)
@@ -198,12 +194,6 @@ namespace py::cpp::Windows::UI::Core::Preview
198
194
 
199
195
  static int SystemNavigationCloseRequestedPreviewEventArgs_put_Handled(py::wrapper::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs* self, PyObject* arg, void* /*unused*/) noexcept
200
196
  {
201
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled"))
202
- {
203
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
204
- return -1;
205
- }
206
-
207
197
  if (arg == nullptr)
208
198
  {
209
199
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -212,6 +202,12 @@ namespace py::cpp::Windows::UI::Core::Preview
212
202
 
213
203
  try
214
204
  {
205
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled"))
206
+ {
207
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
208
+ return -1;
209
+ }
210
+
215
211
  auto param0 = py::convert_to<bool>(arg);
216
212
 
217
213
  self->obj.Handled(param0);
@@ -260,23 +256,20 @@ namespace py::cpp::Windows::UI::Core::Preview
260
256
  { }
261
257
  };
262
258
 
263
- static PyType_Slot _type_slots_SystemNavigationCloseRequestedPreviewEventArgs[] =
264
- {
259
+ static PyType_Slot _type_slots_SystemNavigationCloseRequestedPreviewEventArgs[] = {
265
260
  { Py_tp_new, reinterpret_cast<void*>(_new_SystemNavigationCloseRequestedPreviewEventArgs) },
266
261
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemNavigationCloseRequestedPreviewEventArgs) },
267
262
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SystemNavigationCloseRequestedPreviewEventArgs) },
268
263
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SystemNavigationCloseRequestedPreviewEventArgs) },
269
- { },
264
+ { }
270
265
  };
271
266
 
272
- static PyType_Spec type_spec_SystemNavigationCloseRequestedPreviewEventArgs =
273
- {
267
+ static PyType_Spec type_spec_SystemNavigationCloseRequestedPreviewEventArgs = {
274
268
  "winrt._winrt_windows_ui_core_preview.SystemNavigationCloseRequestedPreviewEventArgs",
275
269
  sizeof(py::wrapper::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs),
276
270
  0,
277
271
  Py_TPFLAGS_DEFAULT,
278
- _type_slots_SystemNavigationCloseRequestedPreviewEventArgs
279
- };
272
+ _type_slots_SystemNavigationCloseRequestedPreviewEventArgs};
280
273
 
281
274
  // ----- SystemNavigationManagerPreview class --------------------
282
275
 
@@ -301,14 +294,14 @@ namespace py::cpp::Windows::UI::Core::Preview
301
294
 
302
295
  if (arg_count == 0)
303
296
  {
304
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"GetForCurrentView", 0))
305
- {
306
- py::set_arg_count_version_error(0);
307
- return nullptr;
308
- }
309
-
310
297
  try
311
298
  {
299
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"GetForCurrentView", 0))
300
+ {
301
+ py::set_arg_count_version_error(0);
302
+ return nullptr;
303
+ }
304
+
312
305
  return py::convert(winrt::Windows::UI::Core::Preview::SystemNavigationManagerPreview::GetForCurrentView());
313
306
  }
314
307
  catch (...)
@@ -326,14 +319,14 @@ namespace py::cpp::Windows::UI::Core::Preview
326
319
 
327
320
  static PyObject* SystemNavigationManagerPreview_add_CloseRequested(py::wrapper::Windows::UI::Core::Preview::SystemNavigationManagerPreview* self, PyObject* arg) noexcept
328
321
  {
329
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested"))
330
- {
331
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
332
- return nullptr;
333
- }
334
-
335
322
  try
336
323
  {
324
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested"))
325
+ {
326
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
327
+ return nullptr;
328
+ }
329
+
337
330
  auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::UI::Core::Preview::SystemNavigationCloseRequestedPreviewEventArgs>>(arg);
338
331
 
339
332
  return py::convert(self->obj.CloseRequested(param0));
@@ -347,14 +340,14 @@ namespace py::cpp::Windows::UI::Core::Preview
347
340
 
348
341
  static PyObject* SystemNavigationManagerPreview_remove_CloseRequested(py::wrapper::Windows::UI::Core::Preview::SystemNavigationManagerPreview* self, PyObject* arg) noexcept
349
342
  {
350
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested"))
351
- {
352
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
353
- return nullptr;
354
- }
355
-
356
343
  try
357
344
  {
345
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested"))
346
+ {
347
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
348
+ return nullptr;
349
+ }
350
+
358
351
  auto param0 = py::convert_to<winrt::event_token>(arg);
359
352
 
360
353
  self->obj.CloseRequested(param0);
@@ -403,23 +396,20 @@ namespace py::cpp::Windows::UI::Core::Preview
403
396
  { }
404
397
  };
405
398
 
406
- static PyType_Slot _type_slots_SystemNavigationManagerPreview[] =
407
- {
399
+ static PyType_Slot _type_slots_SystemNavigationManagerPreview[] = {
408
400
  { Py_tp_new, reinterpret_cast<void*>(_new_SystemNavigationManagerPreview) },
409
401
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemNavigationManagerPreview) },
410
402
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SystemNavigationManagerPreview) },
411
403
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SystemNavigationManagerPreview) },
412
- { },
404
+ { }
413
405
  };
414
406
 
415
- static PyType_Spec type_spec_SystemNavigationManagerPreview =
416
- {
407
+ static PyType_Spec type_spec_SystemNavigationManagerPreview = {
417
408
  "winrt._winrt_windows_ui_core_preview.SystemNavigationManagerPreview",
418
409
  sizeof(py::wrapper::Windows::UI::Core::Preview::SystemNavigationManagerPreview),
419
410
  0,
420
411
  Py_TPFLAGS_DEFAULT,
421
- _type_slots_SystemNavigationManagerPreview
422
- };
412
+ _type_slots_SystemNavigationManagerPreview};
423
413
 
424
414
  static PyGetSetDef getset_SystemNavigationManagerPreview_Static[] = {
425
415
  { }
@@ -448,20 +438,19 @@ namespace py::cpp::Windows::UI::Core::Preview
448
438
  };
449
439
 
450
440
  // ----- Windows.UI.Core.Preview Initialization --------------------
451
- PyDoc_STRVAR(module_doc, "Windows::UI::Core::Preview");
452
-
453
441
 
454
- static PyModuleDef module_def
455
- = {PyModuleDef_HEAD_INIT,
456
- "_winrt_windows_ui_core_preview",
457
- module_doc,
458
- 0,
459
- nullptr,
460
- nullptr,
461
- nullptr,
462
- nullptr,
463
- nullptr};
442
+ PyDoc_STRVAR(module_doc, "Windows.UI.Core.Preview");
464
443
 
444
+ static PyModuleDef module_def = {
445
+ PyModuleDef_HEAD_INIT,
446
+ "_winrt_windows_ui_core_preview",
447
+ module_doc,
448
+ 0,
449
+ nullptr,
450
+ nullptr,
451
+ nullptr,
452
+ nullptr,
453
+ nullptr};
465
454
  } // py::cpp::Windows::UI::Core::Preview
466
455
 
467
456
  PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(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", "setuptools-scm", "winrt-sdk"]
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
- winrt = ["*.pyi"]
33
+ "*" = ["*.pyi", "py.typed"]
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.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_core_preview",
26
+ sources=["py.Windows.UI.Core.Preview.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
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,14 +9,14 @@ 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.ui.windowmanagement
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.ui.windowmanagement as windows_ui_windowmanagement
14
14
 
15
15
  Self = typing.TypeVar('Self')
16
16
 
17
17
  @typing.final
18
18
  class CoreAppWindowPreview_Static(type):
19
- def get_id_from_window(cls, window: typing.Optional[winrt.windows.ui.windowmanagement.AppWindow], /) -> winrt.system.Int32: ...
19
+ def get_id_from_window(cls, window: typing.Optional[windows_ui_windowmanagement.AppWindow], /) -> winrt.system.Int32: ...
20
20
 
21
21
  @typing.final
22
22
  class CoreAppWindowPreview(winrt.system.Object, metaclass=CoreAppWindowPreview_Static):
@@ -27,7 +27,7 @@ class CoreAppWindowPreview(winrt.system.Object, metaclass=CoreAppWindowPreview_S
27
27
  class SystemNavigationCloseRequestedPreviewEventArgs(winrt.system.Object):
28
28
  @staticmethod
29
29
  def _from(obj: winrt.system.Object, /) -> SystemNavigationCloseRequestedPreviewEventArgs: ...
30
- def get_deferral(self) -> typing.Optional[winrt.windows.foundation.Deferral]: ...
30
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
31
31
  @_property
32
32
  def handled(self) -> bool: ...
33
33
  @handled.setter
@@ -41,6 +41,6 @@ class SystemNavigationManagerPreview_Static(type):
41
41
  class SystemNavigationManagerPreview(winrt.system.Object, metaclass=SystemNavigationManagerPreview_Static):
42
42
  @staticmethod
43
43
  def _from(obj: winrt.system.Object, /) -> SystemNavigationManagerPreview: ...
44
- def add_close_requested(self, handler: winrt.windows.foundation.EventHandler[SystemNavigationCloseRequestedPreviewEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
45
- def remove_close_requested(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
44
+ def add_close_requested(self, handler: windows_foundation.EventHandler[SystemNavigationCloseRequestedPreviewEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
45
+ def remove_close_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
46
46
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_ui_core_preview
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Core.Preview
3
- Version: 2.0.0b2
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.UI.WindowManagement[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_core_preview.pyi
9
9
  winrt/windows/ui/core/preview/__init__.py
10
+ winrt/windows/ui/core/preview/py.typed
10
11
  winrt_Windows.UI.Core.Preview.egg-info/PKG-INFO
11
12
  winrt_Windows.UI.Core.Preview.egg-info/SOURCES.txt
12
13
  winrt_Windows.UI.Core.Preview.egg-info/dependency_links.txt
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.1.0
5
+ winrt-Windows.UI.WindowManagement[all]==2.1.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
-
3
- winrt-Windows.Foundation[all]==2.0.0-beta.2
4
- winrt-Windows.UI.WindowManagement[all]==2.0.0-beta.2
@@ -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_core_preview",
10
- sources=["py.Windows.UI.Core.Preview.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.0.0-beta.2
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.0-beta.2
5
- winrt-Windows.UI.WindowManagement[all]==2.0.0-beta.2