winrt-Windows.ApplicationModel.Resources 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.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/PKG-INFO +4 -1
- winrt_windows_applicationmodel_resources-2.1.0/all-requirements.txt +4 -0
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/py.Windows.ApplicationModel.Resources.cpp +70 -75
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_resources-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/requirements.txt +2 -2
- winrt_windows_applicationmodel_resources-2.1.0/setup.py +31 -0
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/winrt/_winrt_windows_applicationmodel_resources.pyi +8 -8
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/winrt/windows/applicationmodel/resources/__init__.py +1 -1
- winrt_windows_applicationmodel_resources-2.1.0/winrt/windows/applicationmodel/resources/py.typed +0 -0
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/winrt_Windows.ApplicationModel.Resources.egg-info/PKG-INFO +4 -1
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/winrt_Windows.ApplicationModel.Resources.egg-info/SOURCES.txt +1 -0
- winrt_windows_applicationmodel_resources-2.1.0/winrt_Windows.ApplicationModel.Resources.egg-info/requires.txt +5 -0
- winrt-Windows.ApplicationModel.Resources-2.0.0b2/all-requirements.txt +0 -4
- winrt-Windows.ApplicationModel.Resources-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.ApplicationModel.Resources-2.0.0b2/setup.py +0 -16
- winrt-Windows.ApplicationModel.Resources-2.0.0b2/winrt_Windows.ApplicationModel.Resources.egg-info/requires.txt +0 -5
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/README.md +0 -0
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/winrt_Windows.ApplicationModel.Resources.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.ApplicationModel.Resources-2.0.0b2 → winrt_windows_applicationmodel_resources-2.1.0}/winrt_Windows.ApplicationModel.Resources.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Resources
|
|
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.UI[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.ApplicationModel.Resources.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Resources
|
|
7
6
|
{
|
|
8
7
|
// ----- ResourceLoader class --------------------
|
|
@@ -65,14 +64,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
65
64
|
|
|
66
65
|
if (arg_count == 1)
|
|
67
66
|
{
|
|
68
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetDefaultPriPath", 1))
|
|
69
|
-
{
|
|
70
|
-
py::set_arg_count_version_error(1);
|
|
71
|
-
return nullptr;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
67
|
try
|
|
75
68
|
{
|
|
69
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetDefaultPriPath", 1))
|
|
70
|
+
{
|
|
71
|
+
py::set_arg_count_version_error(1);
|
|
72
|
+
return nullptr;
|
|
73
|
+
}
|
|
74
|
+
|
|
76
75
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
77
76
|
|
|
78
77
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetDefaultPriPath(param0));
|
|
@@ -96,14 +95,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
96
95
|
|
|
97
96
|
if (arg_count == 0)
|
|
98
97
|
{
|
|
99
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForCurrentView", 0))
|
|
100
|
-
{
|
|
101
|
-
py::set_arg_count_version_error(0);
|
|
102
|
-
return nullptr;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
98
|
try
|
|
106
99
|
{
|
|
100
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForCurrentView", 0))
|
|
101
|
+
{
|
|
102
|
+
py::set_arg_count_version_error(0);
|
|
103
|
+
return nullptr;
|
|
104
|
+
}
|
|
105
|
+
|
|
107
106
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForCurrentView());
|
|
108
107
|
}
|
|
109
108
|
catch (...)
|
|
@@ -114,14 +113,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
114
113
|
}
|
|
115
114
|
else if (arg_count == 1)
|
|
116
115
|
{
|
|
117
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForCurrentView", 1))
|
|
118
|
-
{
|
|
119
|
-
py::set_arg_count_version_error(1);
|
|
120
|
-
return nullptr;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
116
|
try
|
|
124
117
|
{
|
|
118
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForCurrentView", 1))
|
|
119
|
+
{
|
|
120
|
+
py::set_arg_count_version_error(1);
|
|
121
|
+
return nullptr;
|
|
122
|
+
}
|
|
123
|
+
|
|
125
124
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
126
125
|
|
|
127
126
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForCurrentView(param0));
|
|
@@ -145,14 +144,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
145
144
|
|
|
146
145
|
if (arg_count == 1)
|
|
147
146
|
{
|
|
148
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForUIContext", 1))
|
|
149
|
-
{
|
|
150
|
-
py::set_arg_count_version_error(1);
|
|
151
|
-
return nullptr;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
147
|
try
|
|
155
148
|
{
|
|
149
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForUIContext", 1))
|
|
150
|
+
{
|
|
151
|
+
py::set_arg_count_version_error(1);
|
|
152
|
+
return nullptr;
|
|
153
|
+
}
|
|
154
|
+
|
|
156
155
|
auto param0 = py::convert_to<winrt::Windows::UI::UIContext>(args, 0);
|
|
157
156
|
|
|
158
157
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForUIContext(param0));
|
|
@@ -176,14 +175,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
176
175
|
|
|
177
176
|
if (arg_count == 0)
|
|
178
177
|
{
|
|
179
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForViewIndependentUse", 0))
|
|
180
|
-
{
|
|
181
|
-
py::set_arg_count_version_error(0);
|
|
182
|
-
return nullptr;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
178
|
try
|
|
186
179
|
{
|
|
180
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForViewIndependentUse", 0))
|
|
181
|
+
{
|
|
182
|
+
py::set_arg_count_version_error(0);
|
|
183
|
+
return nullptr;
|
|
184
|
+
}
|
|
185
|
+
|
|
187
186
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForViewIndependentUse());
|
|
188
187
|
}
|
|
189
188
|
catch (...)
|
|
@@ -194,14 +193,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
194
193
|
}
|
|
195
194
|
else if (arg_count == 1)
|
|
196
195
|
{
|
|
197
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForViewIndependentUse", 1))
|
|
198
|
-
{
|
|
199
|
-
py::set_arg_count_version_error(1);
|
|
200
|
-
return nullptr;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
196
|
try
|
|
204
197
|
{
|
|
198
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForViewIndependentUse", 1))
|
|
199
|
+
{
|
|
200
|
+
py::set_arg_count_version_error(1);
|
|
201
|
+
return nullptr;
|
|
202
|
+
}
|
|
203
|
+
|
|
205
204
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
206
205
|
|
|
207
206
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForViewIndependentUse(param0));
|
|
@@ -225,14 +224,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
225
224
|
|
|
226
225
|
if (arg_count == 1)
|
|
227
226
|
{
|
|
228
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetString", 1))
|
|
229
|
-
{
|
|
230
|
-
py::set_arg_count_version_error(1);
|
|
231
|
-
return nullptr;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
227
|
try
|
|
235
228
|
{
|
|
229
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetString", 1))
|
|
230
|
+
{
|
|
231
|
+
py::set_arg_count_version_error(1);
|
|
232
|
+
return nullptr;
|
|
233
|
+
}
|
|
234
|
+
|
|
236
235
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
237
236
|
|
|
238
237
|
return py::convert(self->obj.GetString(param0));
|
|
@@ -256,14 +255,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
256
255
|
|
|
257
256
|
if (arg_count == 1)
|
|
258
257
|
{
|
|
259
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetStringForReference", 1))
|
|
260
|
-
{
|
|
261
|
-
py::set_arg_count_version_error(1);
|
|
262
|
-
return nullptr;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
258
|
try
|
|
266
259
|
{
|
|
260
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetStringForReference", 1))
|
|
261
|
+
{
|
|
262
|
+
py::set_arg_count_version_error(1);
|
|
263
|
+
return nullptr;
|
|
264
|
+
}
|
|
265
|
+
|
|
267
266
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
268
267
|
|
|
269
268
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetStringForReference(param0));
|
|
@@ -287,14 +286,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
287
286
|
|
|
288
287
|
if (arg_count == 1)
|
|
289
288
|
{
|
|
290
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetStringForUri", 1))
|
|
291
|
-
{
|
|
292
|
-
py::set_arg_count_version_error(1);
|
|
293
|
-
return nullptr;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
289
|
try
|
|
297
290
|
{
|
|
291
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetStringForUri", 1))
|
|
292
|
+
{
|
|
293
|
+
py::set_arg_count_version_error(1);
|
|
294
|
+
return nullptr;
|
|
295
|
+
}
|
|
296
|
+
|
|
298
297
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
299
298
|
|
|
300
299
|
return py::convert(self->obj.GetStringForUri(param0));
|
|
@@ -348,23 +347,20 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
348
347
|
{ }
|
|
349
348
|
};
|
|
350
349
|
|
|
351
|
-
static PyType_Slot _type_slots_ResourceLoader[] =
|
|
352
|
-
{
|
|
350
|
+
static PyType_Slot _type_slots_ResourceLoader[] = {
|
|
353
351
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ResourceLoader) },
|
|
354
352
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ResourceLoader) },
|
|
355
353
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ResourceLoader) },
|
|
356
354
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ResourceLoader) },
|
|
357
|
-
{ }
|
|
355
|
+
{ }
|
|
358
356
|
};
|
|
359
357
|
|
|
360
|
-
static PyType_Spec type_spec_ResourceLoader =
|
|
361
|
-
{
|
|
358
|
+
static PyType_Spec type_spec_ResourceLoader = {
|
|
362
359
|
"winrt._winrt_windows_applicationmodel_resources.ResourceLoader",
|
|
363
360
|
sizeof(py::wrapper::Windows::ApplicationModel::Resources::ResourceLoader),
|
|
364
361
|
0,
|
|
365
362
|
Py_TPFLAGS_DEFAULT,
|
|
366
|
-
_type_slots_ResourceLoader
|
|
367
|
-
};
|
|
363
|
+
_type_slots_ResourceLoader};
|
|
368
364
|
|
|
369
365
|
static PyGetSetDef getset_ResourceLoader_Static[] = {
|
|
370
366
|
{ }
|
|
@@ -397,20 +393,19 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
397
393
|
};
|
|
398
394
|
|
|
399
395
|
// ----- Windows.ApplicationModel.Resources Initialization --------------------
|
|
400
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Resources");
|
|
401
|
-
|
|
402
396
|
|
|
403
|
-
|
|
404
|
-
= {PyModuleDef_HEAD_INIT,
|
|
405
|
-
"_winrt_windows_applicationmodel_resources",
|
|
406
|
-
module_doc,
|
|
407
|
-
0,
|
|
408
|
-
nullptr,
|
|
409
|
-
nullptr,
|
|
410
|
-
nullptr,
|
|
411
|
-
nullptr,
|
|
412
|
-
nullptr};
|
|
397
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Resources");
|
|
413
398
|
|
|
399
|
+
static PyModuleDef module_def = {
|
|
400
|
+
PyModuleDef_HEAD_INIT,
|
|
401
|
+
"_winrt_windows_applicationmodel_resources",
|
|
402
|
+
module_doc,
|
|
403
|
+
0,
|
|
404
|
+
nullptr,
|
|
405
|
+
nullptr,
|
|
406
|
+
nullptr,
|
|
407
|
+
nullptr,
|
|
408
|
+
nullptr};
|
|
414
409
|
} // py::cpp::Windows::ApplicationModel::Resources
|
|
415
410
|
|
|
416
411
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources(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_applicationmodel_resources",
|
|
26
|
+
sources=["py.Windows.ApplicationModel.Resources.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.
|
|
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.ui
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.ui as windows_ui
|
|
14
14
|
|
|
15
15
|
Self = typing.TypeVar('Self')
|
|
16
16
|
|
|
@@ -21,21 +21,21 @@ class ResourceLoader_Static(type):
|
|
|
21
21
|
def get_for_current_view(cls) -> typing.Optional[ResourceLoader]: ...
|
|
22
22
|
@typing.overload
|
|
23
23
|
def get_for_current_view(cls, name: str, /) -> typing.Optional[ResourceLoader]: ...
|
|
24
|
-
def get_for_u_i_context(cls, context: typing.Optional[
|
|
24
|
+
def get_for_u_i_context(cls, context: typing.Optional[windows_ui.UIContext], /) -> typing.Optional[ResourceLoader]: ...
|
|
25
25
|
@typing.overload
|
|
26
26
|
def get_for_view_independent_use(cls) -> typing.Optional[ResourceLoader]: ...
|
|
27
27
|
@typing.overload
|
|
28
28
|
def get_for_view_independent_use(cls, name: str, /) -> typing.Optional[ResourceLoader]: ...
|
|
29
|
-
def get_string_for_reference(cls, uri: typing.Optional[
|
|
29
|
+
def get_string_for_reference(cls, uri: typing.Optional[windows_foundation.Uri], /) -> str: ...
|
|
30
30
|
|
|
31
31
|
@typing.final
|
|
32
32
|
class ResourceLoader(winrt.system.Object, metaclass=ResourceLoader_Static):
|
|
33
33
|
@staticmethod
|
|
34
34
|
def _from(obj: winrt.system.Object, /) -> ResourceLoader: ...
|
|
35
35
|
@typing.overload
|
|
36
|
-
def __new__(cls: typing.Type[ResourceLoader], name: str) -> ResourceLoader
|
|
36
|
+
def __new__(cls: typing.Type[ResourceLoader], name: str) -> ResourceLoader: ...
|
|
37
37
|
@typing.overload
|
|
38
|
-
def __new__(cls: typing.Type[ResourceLoader]) -> ResourceLoader
|
|
38
|
+
def __new__(cls: typing.Type[ResourceLoader]) -> ResourceLoader: ...
|
|
39
39
|
def get_string(self, resource: str, /) -> str: ...
|
|
40
|
-
def get_string_for_uri(self, uri: typing.Optional[
|
|
40
|
+
def get_string_for_uri(self, uri: typing.Optional[windows_foundation.Uri], /) -> str: ...
|
|
41
41
|
|
winrt_windows_applicationmodel_resources-2.1.0/winrt/windows/applicationmodel/resources/py.typed
ADDED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Resources
|
|
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.UI[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_applicationmodel_resources.pyi
|
|
9
9
|
winrt/windows/applicationmodel/resources/__init__.py
|
|
10
|
+
winrt/windows/applicationmodel/resources/py.typed
|
|
10
11
|
winrt_Windows.ApplicationModel.Resources.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.ApplicationModel.Resources.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.ApplicationModel.Resources.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_applicationmodel_resources",
|
|
10
|
-
sources=["py.Windows.ApplicationModel.Resources.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
|