winrt-Windows.System.Display 2.3.0__tar.gz → 3.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_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/PKG-INFO +5 -5
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/py.Windows.System.Display.cpp +25 -14
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/pyproject.toml +4 -4
- winrt_windows_system_display-3.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/requirements.txt +2 -2
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/setup.py +1 -1
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/winrt/_winrt_windows_system_display.pyi +4 -4
- winrt_windows_system_display-3.1.0/winrt/windows/system/display/__init__.py +11 -0
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/winrt_Windows.System.Display.egg-info/PKG-INFO +5 -5
- winrt_windows_system_display-3.1.0/winrt_Windows.System.Display.egg-info/requires.txt +1 -0
- winrt_windows_system_display-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_system_display-2.3.0/winrt/windows/system/display/__init__.py +0 -10
- winrt_windows_system_display-2.3.0/winrt_Windows.System.Display.egg-info/requires.txt +0 -1
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/README.md +0 -0
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/setup.cfg +0 -0
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/winrt/windows/system/display/py.typed +0 -0
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/winrt_Windows.System.Display.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/winrt_Windows.System.Display.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.1.0}/winrt_Windows.System.Display.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.System.Display
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,9 +10,9 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
|
|
17
17
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Display.h"
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::System::Display
|
|
|
8
8
|
|
|
9
9
|
static PyObject* _new_DisplayRequest(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
10
10
|
{
|
|
11
|
-
if (kwds
|
|
11
|
+
if (kwds)
|
|
12
12
|
{
|
|
13
13
|
py::set_invalid_kwd_args_error();
|
|
14
14
|
return nullptr;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
auto arg_count =
|
|
17
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
18
18
|
if (arg_count == 0)
|
|
19
19
|
{
|
|
20
20
|
try
|
|
@@ -45,7 +45,7 @@ namespace py::cpp::Windows::System::Display
|
|
|
45
45
|
|
|
46
46
|
static PyObject* DisplayRequest_RequestActive(py::wrapper::Windows::System::Display::DisplayRequest* self, PyObject* args) noexcept
|
|
47
47
|
{
|
|
48
|
-
auto arg_count =
|
|
48
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
49
49
|
|
|
50
50
|
if (arg_count == 0)
|
|
51
51
|
{
|
|
@@ -64,7 +64,11 @@ namespace py::cpp::Windows::System::Display
|
|
|
64
64
|
return nullptr;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
{
|
|
68
|
+
auto _gil = release_gil();
|
|
69
|
+
self->obj.RequestActive();
|
|
70
|
+
}
|
|
71
|
+
|
|
68
72
|
Py_RETURN_NONE;
|
|
69
73
|
}
|
|
70
74
|
catch (...)
|
|
@@ -82,7 +86,7 @@ namespace py::cpp::Windows::System::Display
|
|
|
82
86
|
|
|
83
87
|
static PyObject* DisplayRequest_RequestRelease(py::wrapper::Windows::System::Display::DisplayRequest* self, PyObject* args) noexcept
|
|
84
88
|
{
|
|
85
|
-
auto arg_count =
|
|
89
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
86
90
|
|
|
87
91
|
if (arg_count == 0)
|
|
88
92
|
{
|
|
@@ -101,7 +105,11 @@ namespace py::cpp::Windows::System::Display
|
|
|
101
105
|
return nullptr;
|
|
102
106
|
}
|
|
103
107
|
|
|
104
|
-
|
|
108
|
+
{
|
|
109
|
+
auto _gil = release_gil();
|
|
110
|
+
self->obj.RequestRelease();
|
|
111
|
+
}
|
|
112
|
+
|
|
105
113
|
Py_RETURN_NONE;
|
|
106
114
|
}
|
|
107
115
|
catch (...)
|
|
@@ -146,20 +154,17 @@ namespace py::cpp::Windows::System::Display
|
|
|
146
154
|
{ "request_release", reinterpret_cast<PyCFunction>(DisplayRequest_RequestRelease), METH_VARARGS, nullptr },
|
|
147
155
|
{ "_assign_array_", _assign_array_DisplayRequest, METH_O | METH_STATIC, nullptr },
|
|
148
156
|
{ "_from", reinterpret_cast<PyCFunction>(_from_DisplayRequest), METH_O | METH_STATIC, nullptr },
|
|
149
|
-
{ }
|
|
150
|
-
};
|
|
157
|
+
{ }};
|
|
151
158
|
|
|
152
159
|
static PyGetSetDef _getset_DisplayRequest[] = {
|
|
153
|
-
{ }
|
|
154
|
-
};
|
|
160
|
+
{ }};
|
|
155
161
|
|
|
156
162
|
static PyType_Slot _type_slots_DisplayRequest[] = {
|
|
157
163
|
{ Py_tp_new, reinterpret_cast<void*>(_new_DisplayRequest) },
|
|
158
164
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DisplayRequest) },
|
|
159
165
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DisplayRequest) },
|
|
160
166
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DisplayRequest) },
|
|
161
|
-
{ }
|
|
162
|
-
};
|
|
167
|
+
{ }};
|
|
163
168
|
|
|
164
169
|
static PyType_Spec type_spec_DisplayRequest = {
|
|
165
170
|
"winrt._winrt_windows_system_display.DisplayRequest",
|
|
@@ -200,6 +205,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_display(void) noexcept
|
|
|
200
205
|
return nullptr;
|
|
201
206
|
}
|
|
202
207
|
|
|
208
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
209
|
+
if (!inspectable_meta_type)
|
|
210
|
+
{
|
|
211
|
+
return nullptr;
|
|
212
|
+
}
|
|
213
|
+
|
|
203
214
|
auto object_type = py::get_object_type();
|
|
204
215
|
if (!object_type)
|
|
205
216
|
{
|
|
@@ -213,7 +224,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_display(void) noexcept
|
|
|
213
224
|
return nullptr;
|
|
214
225
|
}
|
|
215
226
|
|
|
216
|
-
py::pytype_handle DisplayRequest_type{py::register_python_type(module.get(), &type_spec_DisplayRequest, object_bases.get(),
|
|
227
|
+
py::pytype_handle DisplayRequest_type{py::register_python_type(module.get(), &type_spec_DisplayRequest, object_bases.get(), inspectable_meta_type)};
|
|
217
228
|
if (!DisplayRequest_type)
|
|
218
229
|
{
|
|
219
230
|
return nullptr;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "winrt-sdk"]
|
|
4
|
+
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Windows.System.Display"
|
|
9
9
|
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
10
|
readme = "README.md"
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Operating System :: Microsoft :: Windows",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -33,7 +33,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
33
33
|
|
|
34
34
|
[tool.cibuildwheel]
|
|
35
35
|
# use local winrt-sdk build dependency
|
|
36
|
-
environment = { PYTHONPATH="
|
|
36
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
37
37
|
# don't install winrt-sdk from PyPI
|
|
38
38
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
39
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -14,9 +14,9 @@ Self = typing.TypeVar('Self')
|
|
|
14
14
|
|
|
15
15
|
@typing.final
|
|
16
16
|
class DisplayRequest(winrt.system.Object):
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def __new__(cls: typing.Type[DisplayRequest]) -> DisplayRequest: ...
|
|
17
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
18
|
+
# System.Void Windows.System.Display.DisplayRequest::RequestActive()
|
|
20
19
|
def request_active(self) -> None: ...
|
|
20
|
+
# System.Void Windows.System.Display.DisplayRequest::RequestRelease()
|
|
21
21
|
def request_release(self) -> None: ...
|
|
22
22
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.System.Display
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,9 +10,9 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
|
|
17
17
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
18
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt-runtime==3.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.3.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.3.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|