winrt-Windows.UI.Xaml.Controls.Primitives 2.0.0b2__tar.gz → 2.0.1__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.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/PKG-INFO +12 -1
  2. winrt_windows_ui_xaml_controls_primitives-2.0.1/all-requirements.txt +12 -0
  3. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/py.Windows.UI.Xaml.Controls.Primitives.cpp +1 -258
  4. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/pyproject.toml +2 -2
  5. winrt_windows_ui_xaml_controls_primitives-2.0.1/pywinrt-version.txt +1 -0
  6. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/requirements.txt +2 -2
  7. winrt_windows_ui_xaml_controls_primitives-2.0.1/setup.py +31 -0
  8. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/winrt/_winrt_windows_ui_xaml_controls_primitives.pyi +1 -9
  9. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/winrt/windows/ui/xaml/controls/primitives/__init__.py +1 -1
  10. winrt_windows_ui_xaml_controls_primitives-2.0.1/winrt/windows/ui/xaml/controls/primitives/py.typed +0 -0
  11. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/PKG-INFO +12 -1
  12. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_ui_xaml_controls_primitives-2.0.1/winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/requires.txt +13 -0
  14. winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2/all-requirements.txt +0 -12
  15. winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2/winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/requires.txt +0 -13
  18. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/README.md +0 -0
  19. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/setup.cfg +0 -0
  20. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.UI.Xaml.Controls.Primitives-2.0.0b2 → winrt_windows_ui_xaml_controls_primitives-2.0.1}/winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Xaml.Controls.Primitives
3
- Version: 2.0.0b2
3
+ Version: 2.0.1
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,18 @@ 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.0.1
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.0.1; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI[all]==2.0.1; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Xaml[all]==2.0.1; extra == "all"
22
+ Requires-Dist: winrt-Windows.UI.Xaml.Controls[all]==2.0.1; extra == "all"
23
+ Requires-Dist: winrt-Windows.UI.Xaml.Input[all]==2.0.1; extra == "all"
24
+ Requires-Dist: winrt-Windows.UI.Xaml.Interop[all]==2.0.1; extra == "all"
25
+ Requires-Dist: winrt-Windows.UI.Xaml.Media[all]==2.0.1; extra == "all"
26
+ Requires-Dist: winrt-Windows.UI.Xaml.Media.Animation[all]==2.0.1; extra == "all"
16
27
 
17
28
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
29
 
@@ -0,0 +1,12 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
+
3
+ winrt-Windows.Foundation[all]==2.0.1
4
+ winrt-Windows.Foundation.Collections[all]==2.0.1
5
+ winrt-Windows.Foundation.Numerics[all]==2.0.1
6
+ winrt-Windows.UI[all]==2.0.1
7
+ winrt-Windows.UI.Xaml[all]==2.0.1
8
+ winrt-Windows.UI.Xaml.Controls[all]==2.0.1
9
+ winrt-Windows.UI.Xaml.Input[all]==2.0.1
10
+ winrt-Windows.UI.Xaml.Interop[all]==2.0.1
11
+ winrt-Windows.UI.Xaml.Media[all]==2.0.1
12
+ winrt-Windows.UI.Xaml.Media.Animation[all]==2.0.1
@@ -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.0.1
2
2
 
3
3
  #include "py.Windows.UI.Xaml.Controls.Primitives.h"
4
4
 
@@ -4893,35 +4893,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
4893
4893
  Py_DECREF(tp);
4894
4894
  }
4895
4895
 
4896
- static PyObject* FlyoutBase_CreatePresenter(py::wrapper::Windows::UI::Xaml::Controls::Primitives::FlyoutBase* self, PyObject* args) noexcept
4897
- {
4898
- auto arg_count = PyTuple_Size(args);
4899
-
4900
- if (arg_count == 0)
4901
- {
4902
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Controls.Primitives.FlyoutBase", L"CreatePresenter", 0))
4903
- {
4904
- py::set_arg_count_version_error(0);
4905
- return nullptr;
4906
- }
4907
-
4908
- try
4909
- {
4910
- return py::convert(self->obj.CreatePresenter());
4911
- }
4912
- catch (...)
4913
- {
4914
- py::to_PyErr();
4915
- return nullptr;
4916
- }
4917
- }
4918
- else
4919
- {
4920
- py::set_invalid_arg_count_error(arg_count);
4921
- return nullptr;
4922
- }
4923
- }
4924
-
4925
4896
  static PyObject* FlyoutBase_GetAttachedFlyout(PyObject* /*unused*/, PyObject* args) noexcept
4926
4897
  {
4927
4898
  auto arg_count = PyTuple_Size(args);
@@ -4983,38 +4954,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
4983
4954
  }
4984
4955
  }
4985
4956
 
4986
- static PyObject* FlyoutBase_OnProcessKeyboardAccelerators(py::wrapper::Windows::UI::Xaml::Controls::Primitives::FlyoutBase* self, PyObject* args) noexcept
4987
- {
4988
- auto arg_count = PyTuple_Size(args);
4989
-
4990
- if (arg_count == 1)
4991
- {
4992
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Controls.Primitives.FlyoutBase", L"OnProcessKeyboardAccelerators", 1))
4993
- {
4994
- py::set_arg_count_version_error(1);
4995
- return nullptr;
4996
- }
4997
-
4998
- try
4999
- {
5000
- auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Input::ProcessKeyboardAcceleratorEventArgs>(args, 0);
5001
-
5002
- self->obj.OnProcessKeyboardAccelerators(param0);
5003
- Py_RETURN_NONE;
5004
- }
5005
- catch (...)
5006
- {
5007
- py::to_PyErr();
5008
- return nullptr;
5009
- }
5010
- }
5011
- else
5012
- {
5013
- py::set_invalid_arg_count_error(arg_count);
5014
- return nullptr;
5015
- }
5016
- }
5017
-
5018
4957
  static PyObject* FlyoutBase_SetAttachedFlyout(PyObject* /*unused*/, PyObject* args) noexcept
5019
4958
  {
5020
4959
  auto arg_count = PyTuple_Size(args);
@@ -6156,9 +6095,7 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
6156
6095
  }
6157
6096
 
6158
6097
  static PyMethodDef _methods_FlyoutBase[] = {
6159
- { "create_presenter", reinterpret_cast<PyCFunction>(FlyoutBase_CreatePresenter), METH_VARARGS, nullptr },
6160
6098
  { "hide", reinterpret_cast<PyCFunction>(FlyoutBase_Hide), METH_VARARGS, nullptr },
6161
- { "on_process_keyboard_accelerators", reinterpret_cast<PyCFunction>(FlyoutBase_OnProcessKeyboardAccelerators), METH_VARARGS, nullptr },
6162
6099
  { "show_at", reinterpret_cast<PyCFunction>(FlyoutBase_ShowAt), METH_VARARGS, nullptr },
6163
6100
  { "try_invoke_keyboard_accelerator", reinterpret_cast<PyCFunction>(FlyoutBase_TryInvokeKeyboardAccelerator), METH_VARARGS, nullptr },
6164
6101
  { "add_closed", reinterpret_cast<PyCFunction>(FlyoutBase_add_Closed), METH_O, nullptr },
@@ -16130,36 +16067,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
16130
16067
  }
16131
16068
  }
16132
16069
 
16133
- static PyObject* PickerFlyoutBase_OnConfirmed(py::wrapper::Windows::UI::Xaml::Controls::Primitives::PickerFlyoutBase* self, PyObject* args) noexcept
16134
- {
16135
- auto arg_count = PyTuple_Size(args);
16136
-
16137
- if (arg_count == 0)
16138
- {
16139
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Controls.Primitives.PickerFlyoutBase", L"OnConfirmed", 0))
16140
- {
16141
- py::set_arg_count_version_error(0);
16142
- return nullptr;
16143
- }
16144
-
16145
- try
16146
- {
16147
- self->obj.OnConfirmed();
16148
- Py_RETURN_NONE;
16149
- }
16150
- catch (...)
16151
- {
16152
- py::to_PyErr();
16153
- return nullptr;
16154
- }
16155
- }
16156
- else
16157
- {
16158
- py::set_invalid_arg_count_error(arg_count);
16159
- return nullptr;
16160
- }
16161
- }
16162
-
16163
16070
  static PyObject* PickerFlyoutBase_SetTitle(PyObject* /*unused*/, PyObject* args) noexcept
16164
16071
  {
16165
16072
  auto arg_count = PyTuple_Size(args);
@@ -16193,35 +16100,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
16193
16100
  }
16194
16101
  }
16195
16102
 
16196
- static PyObject* PickerFlyoutBase_ShouldShowConfirmationButtons(py::wrapper::Windows::UI::Xaml::Controls::Primitives::PickerFlyoutBase* self, PyObject* args) noexcept
16197
- {
16198
- auto arg_count = PyTuple_Size(args);
16199
-
16200
- if (arg_count == 0)
16201
- {
16202
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Controls.Primitives.PickerFlyoutBase", L"ShouldShowConfirmationButtons", 0))
16203
- {
16204
- py::set_arg_count_version_error(0);
16205
- return nullptr;
16206
- }
16207
-
16208
- try
16209
- {
16210
- return py::convert(self->obj.ShouldShowConfirmationButtons());
16211
- }
16212
- catch (...)
16213
- {
16214
- py::to_PyErr();
16215
- return nullptr;
16216
- }
16217
- }
16218
- else
16219
- {
16220
- py::set_invalid_arg_count_error(arg_count);
16221
- return nullptr;
16222
- }
16223
- }
16224
-
16225
16103
  static PyObject* PickerFlyoutBase_get_TitleProperty(PyObject* /*unused*/, void* /*unused*/) noexcept
16226
16104
  {
16227
16105
  if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Controls.Primitives.PickerFlyoutBase", L"TitleProperty"))
@@ -16266,8 +16144,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
16266
16144
  }
16267
16145
 
16268
16146
  static PyMethodDef _methods_PickerFlyoutBase[] = {
16269
- { "on_confirmed", reinterpret_cast<PyCFunction>(PickerFlyoutBase_OnConfirmed), METH_VARARGS, nullptr },
16270
- { "should_show_confirmation_buttons", reinterpret_cast<PyCFunction>(PickerFlyoutBase_ShouldShowConfirmationButtons), METH_VARARGS, nullptr },
16271
16147
  { "_assign_array_", _assign_array_PickerFlyoutBase, METH_O | METH_STATIC, nullptr },
16272
16148
  { "_from", reinterpret_cast<PyCFunction>(_from_PickerFlyoutBase), METH_O | METH_STATIC, nullptr },
16273
16149
  { }
@@ -18131,105 +18007,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
18131
18007
  Py_DECREF(tp);
18132
18008
  }
18133
18009
 
18134
- static PyObject* RangeBase_OnMaximumChanged(py::wrapper::Windows::UI::Xaml::Controls::Primitives::RangeBase* self, PyObject* args) noexcept
18135
- {
18136
- auto arg_count = PyTuple_Size(args);
18137
-
18138
- if (arg_count == 2)
18139
- {
18140
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Controls.Primitives.RangeBase", L"OnMaximumChanged", 2))
18141
- {
18142
- py::set_arg_count_version_error(2);
18143
- return nullptr;
18144
- }
18145
-
18146
- try
18147
- {
18148
- auto param0 = py::convert_to<double>(args, 0);
18149
- auto param1 = py::convert_to<double>(args, 1);
18150
-
18151
- self->obj.OnMaximumChanged(param0, param1);
18152
- Py_RETURN_NONE;
18153
- }
18154
- catch (...)
18155
- {
18156
- py::to_PyErr();
18157
- return nullptr;
18158
- }
18159
- }
18160
- else
18161
- {
18162
- py::set_invalid_arg_count_error(arg_count);
18163
- return nullptr;
18164
- }
18165
- }
18166
-
18167
- static PyObject* RangeBase_OnMinimumChanged(py::wrapper::Windows::UI::Xaml::Controls::Primitives::RangeBase* self, PyObject* args) noexcept
18168
- {
18169
- auto arg_count = PyTuple_Size(args);
18170
-
18171
- if (arg_count == 2)
18172
- {
18173
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Controls.Primitives.RangeBase", L"OnMinimumChanged", 2))
18174
- {
18175
- py::set_arg_count_version_error(2);
18176
- return nullptr;
18177
- }
18178
-
18179
- try
18180
- {
18181
- auto param0 = py::convert_to<double>(args, 0);
18182
- auto param1 = py::convert_to<double>(args, 1);
18183
-
18184
- self->obj.OnMinimumChanged(param0, param1);
18185
- Py_RETURN_NONE;
18186
- }
18187
- catch (...)
18188
- {
18189
- py::to_PyErr();
18190
- return nullptr;
18191
- }
18192
- }
18193
- else
18194
- {
18195
- py::set_invalid_arg_count_error(arg_count);
18196
- return nullptr;
18197
- }
18198
- }
18199
-
18200
- static PyObject* RangeBase_OnValueChanged(py::wrapper::Windows::UI::Xaml::Controls::Primitives::RangeBase* self, PyObject* args) noexcept
18201
- {
18202
- auto arg_count = PyTuple_Size(args);
18203
-
18204
- if (arg_count == 2)
18205
- {
18206
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Controls.Primitives.RangeBase", L"OnValueChanged", 2))
18207
- {
18208
- py::set_arg_count_version_error(2);
18209
- return nullptr;
18210
- }
18211
-
18212
- try
18213
- {
18214
- auto param0 = py::convert_to<double>(args, 0);
18215
- auto param1 = py::convert_to<double>(args, 1);
18216
-
18217
- self->obj.OnValueChanged(param0, param1);
18218
- Py_RETURN_NONE;
18219
- }
18220
- catch (...)
18221
- {
18222
- py::to_PyErr();
18223
- return nullptr;
18224
- }
18225
- }
18226
- else
18227
- {
18228
- py::set_invalid_arg_count_error(arg_count);
18229
- return nullptr;
18230
- }
18231
- }
18232
-
18233
18010
  static PyObject* RangeBase_get_Value(py::wrapper::Windows::UI::Xaml::Controls::Primitives::RangeBase* self, void* /*unused*/) noexcept
18234
18011
  {
18235
18012
  if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Controls.Primitives.RangeBase", L"Value"))
@@ -18628,9 +18405,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
18628
18405
  }
18629
18406
 
18630
18407
  static PyMethodDef _methods_RangeBase[] = {
18631
- { "on_maximum_changed", reinterpret_cast<PyCFunction>(RangeBase_OnMaximumChanged), METH_VARARGS, nullptr },
18632
- { "on_minimum_changed", reinterpret_cast<PyCFunction>(RangeBase_OnMinimumChanged), METH_VARARGS, nullptr },
18633
- { "on_value_changed", reinterpret_cast<PyCFunction>(RangeBase_OnValueChanged), METH_VARARGS, nullptr },
18634
18408
  { "add_value_changed", reinterpret_cast<PyCFunction>(RangeBase_add_ValueChanged), METH_O, nullptr },
18635
18409
  { "remove_value_changed", reinterpret_cast<PyCFunction>(RangeBase_remove_ValueChanged), METH_O, nullptr },
18636
18410
  { "_assign_array_", _assign_array_RangeBase, METH_O | METH_STATIC, nullptr },
@@ -21148,36 +20922,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
21148
20922
  Py_DECREF(tp);
21149
20923
  }
21150
20924
 
21151
- static PyObject* ToggleButton_OnToggle(py::wrapper::Windows::UI::Xaml::Controls::Primitives::ToggleButton* self, PyObject* args) noexcept
21152
- {
21153
- auto arg_count = PyTuple_Size(args);
21154
-
21155
- if (arg_count == 0)
21156
- {
21157
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Controls.Primitives.ToggleButton", L"OnToggle", 0))
21158
- {
21159
- py::set_arg_count_version_error(0);
21160
- return nullptr;
21161
- }
21162
-
21163
- try
21164
- {
21165
- self->obj.OnToggle();
21166
- Py_RETURN_NONE;
21167
- }
21168
- catch (...)
21169
- {
21170
- py::to_PyErr();
21171
- return nullptr;
21172
- }
21173
- }
21174
- else
21175
- {
21176
- py::set_invalid_arg_count_error(arg_count);
21177
- return nullptr;
21178
- }
21179
- }
21180
-
21181
20925
  static PyObject* ToggleButton_get_IsThreeState(py::wrapper::Windows::UI::Xaml::Controls::Primitives::ToggleButton* self, void* /*unused*/) noexcept
21182
20926
  {
21183
20927
  if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Controls.Primitives.ToggleButton", L"IsThreeState"))
@@ -21464,7 +21208,6 @@ namespace py::cpp::Windows::UI::Xaml::Controls::Primitives
21464
21208
  }
21465
21209
 
21466
21210
  static PyMethodDef _methods_ToggleButton[] = {
21467
- { "on_toggle", reinterpret_cast<PyCFunction>(ToggleButton_OnToggle), METH_VARARGS, nullptr },
21468
21211
  { "add_checked", reinterpret_cast<PyCFunction>(ToggleButton_add_Checked), METH_O, nullptr },
21469
21212
  { "remove_checked", reinterpret_cast<PyCFunction>(ToggleButton_remove_Checked), METH_O, nullptr },
21470
21213
  { "add_indeterminate", reinterpret_cast<PyCFunction>(ToggleButton_add_Indeterminate), METH_O, nullptr },
@@ -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.0.1
2
2
 
3
- winrt-runtime==2.0.0-beta.2
3
+ winrt-runtime==2.0.1
@@ -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_xaml_controls_primitives",
26
+ sources=["py.Windows.UI.Xaml.Controls.Primitives.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.0.1
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -453,9 +453,7 @@ class FlyoutBase_Static(type):
453
453
  class FlyoutBase(winrt.system.Object, metaclass=FlyoutBase_Static):
454
454
  @staticmethod
455
455
  def _from(obj: winrt.system.Object, /) -> FlyoutBase: ...
456
- def create_presenter(self) -> typing.Optional[winrt.windows.ui.xaml.controls.Control]: ...
457
456
  def hide(self) -> None: ...
458
- def on_process_keyboard_accelerators(self, args: typing.Optional[winrt.windows.ui.xaml.input.ProcessKeyboardAcceleratorEventArgs], /) -> None: ...
459
457
  @typing.overload
460
458
  def show_at(self, placement_target: typing.Optional[winrt.windows.ui.xaml.FrameworkElement], /) -> None: ...
461
459
  @typing.overload
@@ -1315,8 +1313,6 @@ class PickerFlyoutBase_Static(type):
1315
1313
  class PickerFlyoutBase(winrt.system.Object, metaclass=PickerFlyoutBase_Static):
1316
1314
  @staticmethod
1317
1315
  def _from(obj: winrt.system.Object, /) -> PickerFlyoutBase: ...
1318
- def on_confirmed(self) -> None: ...
1319
- def should_show_confirmation_buttons(self) -> bool: ...
1320
1316
 
1321
1317
  @typing.final
1322
1318
  class PivotHeaderItem(winrt.system.Object):
@@ -1472,9 +1468,6 @@ class RangeBase_Static(type):
1472
1468
  class RangeBase(winrt.system.Object, metaclass=RangeBase_Static):
1473
1469
  @staticmethod
1474
1470
  def _from(obj: winrt.system.Object, /) -> RangeBase: ...
1475
- def on_maximum_changed(self, old_maximum: winrt.system.Double, new_maximum: winrt.system.Double, /) -> None: ...
1476
- def on_minimum_changed(self, old_minimum: winrt.system.Double, new_minimum: winrt.system.Double, /) -> None: ...
1477
- def on_value_changed(self, old_value: winrt.system.Double, new_value: winrt.system.Double, /) -> None: ...
1478
1471
  def add_value_changed(self, handler: typing.Optional[RangeBaseValueChangedEventHandler], /) -> winrt.windows.foundation.EventRegistrationToken: ...
1479
1472
  def remove_value_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
1480
1473
  @_property
@@ -1703,7 +1696,6 @@ class ToggleButton(winrt.system.Object, metaclass=ToggleButton_Static):
1703
1696
  @staticmethod
1704
1697
  def _from(obj: winrt.system.Object, /) -> ToggleButton: ...
1705
1698
  def __new__(cls: typing.Type[ToggleButton]) -> ToggleButton:...
1706
- def on_toggle(self) -> None: ...
1707
1699
  def add_checked(self, handler: typing.Optional[winrt.windows.ui.xaml.RoutedEventHandler], /) -> winrt.windows.foundation.EventRegistrationToken: ...
1708
1700
  def remove_checked(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
1709
1701
  def add_indeterminate(self, handler: typing.Optional[winrt.windows.ui.xaml.RoutedEventHandler], /) -> winrt.windows.foundation.EventRegistrationToken: ...
@@ -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.0.1
2
2
 
3
3
  import enum
4
4
  import typing
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Xaml.Controls.Primitives
3
- Version: 2.0.0b2
3
+ Version: 2.0.1
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,18 @@ 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.0.1
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.0.1; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI[all]==2.0.1; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Xaml[all]==2.0.1; extra == "all"
22
+ Requires-Dist: winrt-Windows.UI.Xaml.Controls[all]==2.0.1; extra == "all"
23
+ Requires-Dist: winrt-Windows.UI.Xaml.Input[all]==2.0.1; extra == "all"
24
+ Requires-Dist: winrt-Windows.UI.Xaml.Interop[all]==2.0.1; extra == "all"
25
+ Requires-Dist: winrt-Windows.UI.Xaml.Media[all]==2.0.1; extra == "all"
26
+ Requires-Dist: winrt-Windows.UI.Xaml.Media.Animation[all]==2.0.1; extra == "all"
16
27
 
17
28
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
29
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_ui_xaml_controls_primitives.pyi
9
9
  winrt/windows/ui/xaml/controls/primitives/__init__.py
10
+ winrt/windows/ui/xaml/controls/primitives/py.typed
10
11
  winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/PKG-INFO
11
12
  winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/SOURCES.txt
12
13
  winrt_Windows.UI.Xaml.Controls.Primitives.egg-info/dependency_links.txt
@@ -0,0 +1,13 @@
1
+ winrt-runtime==2.0.1
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.0.1
5
+ winrt-Windows.Foundation.Collections[all]==2.0.1
6
+ winrt-Windows.Foundation.Numerics[all]==2.0.1
7
+ winrt-Windows.UI[all]==2.0.1
8
+ winrt-Windows.UI.Xaml[all]==2.0.1
9
+ winrt-Windows.UI.Xaml.Controls[all]==2.0.1
10
+ winrt-Windows.UI.Xaml.Input[all]==2.0.1
11
+ winrt-Windows.UI.Xaml.Interop[all]==2.0.1
12
+ winrt-Windows.UI.Xaml.Media[all]==2.0.1
13
+ winrt-Windows.UI.Xaml.Media.Animation[all]==2.0.1
@@ -1,12 +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.Foundation.Collections[all]==2.0.0-beta.2
5
- winrt-Windows.Foundation.Numerics[all]==2.0.0-beta.2
6
- winrt-Windows.UI[all]==2.0.0-beta.2
7
- winrt-Windows.UI.Xaml[all]==2.0.0-beta.2
8
- winrt-Windows.UI.Xaml.Controls[all]==2.0.0-beta.2
9
- winrt-Windows.UI.Xaml.Input[all]==2.0.0-beta.2
10
- winrt-Windows.UI.Xaml.Interop[all]==2.0.0-beta.2
11
- winrt-Windows.UI.Xaml.Media[all]==2.0.0-beta.2
12
- winrt-Windows.UI.Xaml.Media.Animation[all]==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_xaml_controls_primitives",
10
- sources=["py.Windows.UI.Xaml.Controls.Primitives.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,13 +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.Foundation.Collections[all]==2.0.0-beta.2
6
- winrt-Windows.Foundation.Numerics[all]==2.0.0-beta.2
7
- winrt-Windows.UI[all]==2.0.0-beta.2
8
- winrt-Windows.UI.Xaml[all]==2.0.0-beta.2
9
- winrt-Windows.UI.Xaml.Controls[all]==2.0.0-beta.2
10
- winrt-Windows.UI.Xaml.Input[all]==2.0.0-beta.2
11
- winrt-Windows.UI.Xaml.Interop[all]==2.0.0-beta.2
12
- winrt-Windows.UI.Xaml.Media[all]==2.0.0-beta.2
13
- winrt-Windows.UI.Xaml.Media.Animation[all]==2.0.0-beta.2