py2docfx 0.1.15rc2025477__py3-none-any.whl → 0.1.16.dev2052678__py3-none-any.whl
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.
- py2docfx/docfx_yaml/process_doctree.py +21 -34
- py2docfx/docfx_yaml/tests/test_method_arguments.py +1 -7
- py2docfx/docfx_yaml/tests/test_process_doctree.py +120 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +7 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_normalization.py +29 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +49 -11
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/dist.py +168 -51
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/msvc.py +12 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +42 -29
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/api_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/compiler/plugin_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_database.py +22 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_pb2.py +82 -35
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/duration_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/empty_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/field_mask_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/builder.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/containers.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/decoder.py +62 -115
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_edition_defaults.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_message.py +15 -18
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/testing_refleaks.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/type_checkers.py +5 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/well_known_types.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/json_format.py +25 -9
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message.py +26 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message_factory.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto.py +38 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto_text.py +129 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/reflection.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/runtime_version.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/source_context_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/struct_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/symbol_database.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/text_format.py +8 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/timestamp_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/type_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/unknown_fields.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/wrappers_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/application.py +51 -17
- py2docfx/venv/venv1/Lib/site-packages/msal/broker.py +18 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/cloudshell.py +5 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py +5 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/sku.py +6 -0
- py2docfx/venv/venv1/Lib/site-packages/msal/token_cache.py +31 -10
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/__init__.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/cache_lock.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/filelock.py +62 -0
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/libsecret.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/token_cache.py +7 -1
- py2docfx/venv/venv1/Lib/site-packages/pyasn1_modules/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +7 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_normalization.py +29 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +49 -11
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/dist.py +168 -51
- py2docfx/venv/venv1/Lib/site-packages/setuptools/msvc.py +12 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +42 -29
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
- py2docfx/venv/venv1/Lib/site-packages/typing_extensions.py +999 -74
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2052678.dist-info}/METADATA +1 -1
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2052678.dist-info}/RECORD +141 -596
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +0 -82
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +0 -283
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +0 -1153
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +0 -723
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_read.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_write.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/is64bit.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/schema_table.py +0 -16
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +0 -1547
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +0 -184
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +0 -879
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/is64bit.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/test_adodbapi_dbapi20.py +0 -195
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/tryconnection.py +0 -30
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/_parameterized.py +0 -420
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/service.py +0 -213
- py2docfx/venv/venv1/Lib/site-packages/isapi/__init__.py +0 -39
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +0 -809
- py2docfx/venv/venv1/Lib/site-packages/isapi/isapicon.py +0 -121
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/advanced.py +0 -218
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +0 -116
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +0 -162
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/test.py +0 -195
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/isapi/test/extension_simple.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +0 -191
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__about__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__init__.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__main__.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/portalocker/constants.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/portalocker/exceptions.py +0 -27
- py2docfx/venv/venv1/Lib/site-packages/portalocker/portalocker.py +0 -154
- py2docfx/venv/venv1/Lib/site-packages/portalocker/redis.py +0 -236
- py2docfx/venv/venv1/Lib/site-packages/portalocker/utils.py +0 -569
- py2docfx/venv/venv1/Lib/site-packages/pythoncom.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +0 -258
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +0 -183
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dlgappdemo.py +0 -51
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dojobapp.py +0 -71
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/helloapp.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/createwin.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/demoutils.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dibdemo.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dlgtest.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dyndlg.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/fontdemo.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/hiertest.py +0 -138
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/menutest.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/msoffice.py +0 -159
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +0 -132
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +0 -243
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +0 -415
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/progressbar.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/sliderdemo.py +0 -76
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/splittst.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/threadedgui.py +0 -189
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/__init__.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/__init__.py +0 -133
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -31
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgpyapp.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +0 -1097
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +0 -136
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +0 -146
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -155
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/status.py +0 -242
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -676
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +0 -411
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/bitmap.py +0 -168
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/cmdline.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +0 -188
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dlgappcore.py +0 -76
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +0 -235
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/coloreditor.py +0 -646
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/configui.py +0 -299
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -379
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +0 -511
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/frame.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/template.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +0 -173
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +0 -995
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +0 -552
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +0 -684
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +0 -749
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +0 -172
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -279
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/window.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/winout.py +0 -589
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoExpand.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +0 -536
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +0 -216
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/FormatParagraph.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/IdleHistory.py +0 -87
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/PyParse.py +0 -585
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/afxres.py +0 -501
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +0 -277
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/docview.py +0 -151
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/object.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/thread.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/window.py +0 -50
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +0 -593
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +0 -180
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +0 -363
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +0 -291
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/control.py +0 -565
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +0 -312
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/find.py +0 -511
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +0 -704
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +0 -190
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +0 -3083
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +0 -841
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/TraceCollector.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browseProjects.py +0 -323
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +0 -494
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +0 -353
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regedit.py +0 -382
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regpy.py +0 -80
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupRead_BackupWrite.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupSeek_streamheaders.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CopyFileEx.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CreateFileTransacted_MiniVersion.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_pull.py +0 -28
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +0 -32
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/FileSecurityTest.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +0 -43
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/NetValidatePasswordPolicy.py +0 -127
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/OpenEncryptedFileRaw.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegCreateKeyTransacted.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegRestoreKey.py +0 -71
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/SystemParametersInfo.py +0 -210
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +0 -42
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/desktopmanager.py +0 -246
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/eventLogDemo.py +0 -143
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +0 -33
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/mmapfile_demo.py +0 -101
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/cat.py +0 -17
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/print_desktop.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +0 -110
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -170
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -39
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsaregevent.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsastore.py +0 -12
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsave_sa.py +0 -61
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsecurity.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sa_inherit.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/security_enums.py +0 -336
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -134
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setnamedsecurityinfo.py +0 -131
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -131
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -102
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +0 -158
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +0 -199
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/validate_password.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/nativePipeTestService.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +0 -158
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/serviceEvents.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/timer_demo.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +0 -155
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboard_bitmapdemo.py +0 -117
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +0 -174
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +0 -132
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32cred_demo.py +0 -82
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32fileDemo.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_demo.py +0 -177
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_dialog.py +0 -445
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +0 -464
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +0 -136
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +0 -272
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32rcparser_demo.py +0 -86
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32servicedemo.py +0 -23
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +0 -123
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/winnetwk.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/winprocess.py +0 -230
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/_win32verstamp_pywin32ctypes.py +0 -164
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/afxres.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +0 -1551
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/mmsystem.py +0 -956
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +0 -293
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/ntsecuritycon.py +0 -731
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +0 -291
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +0 -124
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/rasutil.py +0 -40
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regcheck.py +0 -161
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +0 -395
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +0 -413
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspicon.py +0 -477
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +0 -5064
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +0 -1922
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +0 -225
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +0 -957
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32inetcon.py +0 -1086
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32netcon.py +0 -627
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +0 -570
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +0 -212
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +0 -674
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +0 -1073
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +0 -1201
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32traceutil.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +0 -235
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +0 -7362
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winioctlcon.py +0 -1079
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winnt.py +0 -1347
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winperf.py +0 -236
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/ControlService.py +0 -594
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py +0 -97
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/bulkstamp.py +0 -156
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py +0 -201
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/backupEventLog.py +0 -46
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +0 -194
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/killProcName.py +0 -62
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +0 -733
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +0 -120
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/rasutil.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +0 -607
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +0 -111
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +0 -175
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_exceptions.py +0 -213
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_odbc.py +0 -264
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_pywintypes.py +0 -111
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_security.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +0 -273
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -91
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +0 -144
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32event.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +0 -1096
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -227
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +0 -333
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +0 -108
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -23
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32pipe.py +0 -148
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32print.py +0 -24
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32profile.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32rcparser.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32timezone.py +0 -16
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32trace.py +0 -366
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32wnet.py +0 -174
- py2docfx/venv/venv1/Lib/site-packages/win32/test/testall.py +0 -223
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/win32com/__init__.py +0 -134
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +0 -717
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +0 -771
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +0 -604
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/connect.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +0 -699
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +0 -825
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +0 -1350
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +0 -453
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +0 -182
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/tlbrowse.py +0 -277
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +0 -103
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/connect.py +0 -96
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsApartmentThreaded.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsFreeThreaded.py +0 -92
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +0 -169
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +0 -434
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -214
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +0 -368
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +0 -135
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/trybag.py +0 -78
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +0 -618
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +0 -331
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +0 -1017
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +0 -239
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +0 -99
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/factory.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/localserver.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +0 -803
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +0 -677
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/util.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/PythonTools.py +0 -47
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +0 -133
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/perfmon.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -181
- py2docfx/venv/venv1/Lib/site-packages/win32com/storagecon.py +0 -142
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/daodump.py +0 -88
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +0 -243
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +0 -96
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/policySemantics.py +0 -115
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +0 -44
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAccess.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testArrays.py +0 -99
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testClipboard.py +0 -169
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testCollections.py +0 -159
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testConversionErrors.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDCOM.py +0 -50
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDates.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +0 -101
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +0 -121
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExplorer.py +0 -139
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGIT.py +0 -142
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +0 -149
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +0 -140
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +0 -184
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +0 -138
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMarshal.py +0 -160
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +0 -227
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +0 -80
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +0 -918
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testROT.py +0 -29
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +0 -51
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testShell.py +0 -272
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStorage.py +0 -88
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStreams.py +0 -147
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testWMI.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +0 -320
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +0 -583
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvbscript_regexp.py +0 -40
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testxslt.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +0 -262
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +0 -224
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/__init__.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/adsicon.py +0 -340
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/objectPicker.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +0 -565
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -151
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/test.py +0 -274
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -219
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axcontrol/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +0 -467
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +0 -279
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +0 -58
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +0 -238
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +0 -135
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +0 -212
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/gateways.py +0 -583
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/stackframe.py +0 -178
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/asputil.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +0 -223
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +0 -262
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +0 -1291
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -78
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +0 -438
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript_rexec.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +0 -103
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost.py +0 -240
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/show_all_jobs.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_record.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_test.py +0 -402
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +0 -300
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/ifiltercon.py +0 -110
- py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/inetcon.py +0 -261
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/__init__.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +0 -875
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +0 -1023
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +0 -211
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/pscon.py +0 -838
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +0 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IActiveDesktop.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +0 -179
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IShellLinkDataList.py +0 -67
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +0 -93
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IUniformResourceLocator.py +0 -56
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/browse_for_folder.py +0 -45
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/create_link.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/dump_link.py +0 -58
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/explorer_browser.py +0 -143
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -125
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/context_menu.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +0 -84
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +0 -188
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +0 -866
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +0 -81
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +0 -971
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/shellexecuteex.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/viewstate.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/walk_shell_folders.py +0 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/shellcon.py +0 -1615
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testSHFileOperation.py +0 -75
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellFolder.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellItem.py +0 -69
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_1.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_localsystem.py +0 -3
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +0 -733
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +0 -120
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2052678.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2052678.dist-info}/top_level.txt +0 -0
@@ -1,717 +0,0 @@
|
|
1
|
-
# This module exists to create the "best" dispatch object for a given
|
2
|
-
# object. If "makepy" support for a given object is detected, it is
|
3
|
-
# used, otherwise a dynamic dispatch object.
|
4
|
-
|
5
|
-
# Note that if the unknown dispatch object then returns a known
|
6
|
-
# dispatch object, the known class will be used. This contrasts
|
7
|
-
# with dynamic.Dispatch behaviour, where dynamic objects are always used.
|
8
|
-
from __future__ import annotations
|
9
|
-
|
10
|
-
import sys
|
11
|
-
from itertools import chain
|
12
|
-
|
13
|
-
import pythoncom
|
14
|
-
import pywintypes
|
15
|
-
|
16
|
-
from . import dynamic, gencache
|
17
|
-
|
18
|
-
_PyIDispatchType = pythoncom.TypeIIDs[pythoncom.IID_IDispatch]
|
19
|
-
|
20
|
-
|
21
|
-
def __WrapDispatch(
|
22
|
-
dispatch,
|
23
|
-
userName=None,
|
24
|
-
resultCLSID=None,
|
25
|
-
typeinfo=None,
|
26
|
-
clsctx=pythoncom.CLSCTX_SERVER,
|
27
|
-
WrapperClass=None,
|
28
|
-
):
|
29
|
-
"""
|
30
|
-
Helper function to return a makepy generated class for a CLSID if it exists,
|
31
|
-
otherwise cope by using CDispatch.
|
32
|
-
"""
|
33
|
-
if resultCLSID is None:
|
34
|
-
try:
|
35
|
-
typeinfo = dispatch.GetTypeInfo()
|
36
|
-
if (
|
37
|
-
typeinfo is not None
|
38
|
-
): # Some objects return NULL, some raise exceptions...
|
39
|
-
resultCLSID = str(typeinfo.GetTypeAttr()[0])
|
40
|
-
except (pythoncom.com_error, AttributeError):
|
41
|
-
pass
|
42
|
-
if resultCLSID is not None:
|
43
|
-
from . import gencache
|
44
|
-
|
45
|
-
# Attempt to load generated module support
|
46
|
-
# This may load the module, and make it available
|
47
|
-
klass = gencache.GetClassForCLSID(resultCLSID)
|
48
|
-
if klass is not None:
|
49
|
-
return klass(dispatch)
|
50
|
-
|
51
|
-
# Return a "dynamic" object - best we can do!
|
52
|
-
if WrapperClass is None:
|
53
|
-
WrapperClass = CDispatch
|
54
|
-
return dynamic.Dispatch(dispatch, userName, WrapperClass, typeinfo, clsctx=clsctx)
|
55
|
-
|
56
|
-
|
57
|
-
def GetObject(Pathname=None, Class=None, clsctx=None):
|
58
|
-
r"""
|
59
|
-
Mimic VB's GetObject() function.
|
60
|
-
|
61
|
-
ob = GetObject(Class = "ProgID") or GetObject(Class = clsid) will
|
62
|
-
connect to an already running instance of the COM object.
|
63
|
-
|
64
|
-
ob = GetObject(r"c:\blah\blah\foo.xls") (aka the COM moniker syntax)
|
65
|
-
will return a ready to use Python wrapping of the required COM object.
|
66
|
-
|
67
|
-
Note: You must specifiy one or the other of these arguments. I know
|
68
|
-
this isn't pretty, but it is what VB does. Blech. If you don't
|
69
|
-
I'll throw ValueError at you. :)
|
70
|
-
|
71
|
-
This will most likely throw pythoncom.com_error if anything fails.
|
72
|
-
"""
|
73
|
-
if clsctx is None:
|
74
|
-
clsctx = pythoncom.CLSCTX_ALL
|
75
|
-
|
76
|
-
if (Pathname is None and Class is None) or (
|
77
|
-
Pathname is not None and Class is not None
|
78
|
-
):
|
79
|
-
raise ValueError(
|
80
|
-
"You must specify a value for Pathname or Class, but not both."
|
81
|
-
)
|
82
|
-
|
83
|
-
if Class is not None:
|
84
|
-
return GetActiveObject(Class, clsctx)
|
85
|
-
else:
|
86
|
-
return Moniker(Pathname, clsctx)
|
87
|
-
|
88
|
-
|
89
|
-
def GetActiveObject(Class, clsctx=pythoncom.CLSCTX_ALL):
|
90
|
-
"""
|
91
|
-
Python friendly version of GetObject's ProgID/CLSID functionality.
|
92
|
-
"""
|
93
|
-
resultCLSID = pywintypes.IID(Class)
|
94
|
-
dispatch = pythoncom.GetActiveObject(resultCLSID)
|
95
|
-
dispatch = dispatch.QueryInterface(pythoncom.IID_IDispatch)
|
96
|
-
return __WrapDispatch(dispatch, Class, resultCLSID=resultCLSID, clsctx=clsctx)
|
97
|
-
|
98
|
-
|
99
|
-
def Moniker(Pathname, clsctx=pythoncom.CLSCTX_ALL):
|
100
|
-
"""
|
101
|
-
Python friendly version of GetObject's moniker functionality.
|
102
|
-
"""
|
103
|
-
moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
|
104
|
-
dispatch = moniker.BindToObject(bindCtx, None, pythoncom.IID_IDispatch)
|
105
|
-
return __WrapDispatch(dispatch, Pathname, clsctx=clsctx)
|
106
|
-
|
107
|
-
|
108
|
-
def Dispatch(
|
109
|
-
dispatch,
|
110
|
-
userName=None,
|
111
|
-
resultCLSID=None,
|
112
|
-
typeinfo=None,
|
113
|
-
clsctx=pythoncom.CLSCTX_SERVER,
|
114
|
-
):
|
115
|
-
"""Creates a Dispatch based COM object."""
|
116
|
-
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch, userName, clsctx)
|
117
|
-
return __WrapDispatch(dispatch, userName, resultCLSID, typeinfo, clsctx=clsctx)
|
118
|
-
|
119
|
-
|
120
|
-
def DispatchEx(
|
121
|
-
clsid,
|
122
|
-
machine=None,
|
123
|
-
userName=None,
|
124
|
-
resultCLSID=None,
|
125
|
-
typeinfo=None,
|
126
|
-
clsctx=None,
|
127
|
-
):
|
128
|
-
"""Creates a Dispatch based COM object on a specific machine."""
|
129
|
-
# If InProc is registered, DCOM will use it regardless of the machine name
|
130
|
-
# (and regardless of the DCOM config for the object.) So unless the user
|
131
|
-
# specifies otherwise, we exclude inproc apps when a remote machine is used.
|
132
|
-
if clsctx is None:
|
133
|
-
clsctx = pythoncom.CLSCTX_SERVER
|
134
|
-
if machine is not None:
|
135
|
-
clsctx &= ~pythoncom.CLSCTX_INPROC
|
136
|
-
if machine is None:
|
137
|
-
serverInfo = None
|
138
|
-
else:
|
139
|
-
serverInfo = (machine,)
|
140
|
-
if userName is None:
|
141
|
-
userName = clsid
|
142
|
-
dispatch = pythoncom.CoCreateInstanceEx(
|
143
|
-
clsid, None, clsctx, serverInfo, (pythoncom.IID_IDispatch,)
|
144
|
-
)[0]
|
145
|
-
return Dispatch(dispatch, userName, resultCLSID, typeinfo, clsctx=clsctx)
|
146
|
-
|
147
|
-
|
148
|
-
class CDispatch(dynamic.CDispatch):
|
149
|
-
"""
|
150
|
-
The dynamic class used as a last resort.
|
151
|
-
The purpose of this overriding of dynamic.CDispatch is to perpetuate the policy
|
152
|
-
of using the makepy generated wrapper Python class instead of dynamic.CDispatch
|
153
|
-
if/when possible.
|
154
|
-
"""
|
155
|
-
|
156
|
-
def _wrap_dispatch_(self, ob, userName=None, returnCLSID=None):
|
157
|
-
return Dispatch(ob, userName, returnCLSID)
|
158
|
-
|
159
|
-
def __dir__(self):
|
160
|
-
return dynamic.CDispatch.__dir__(self)
|
161
|
-
|
162
|
-
|
163
|
-
def CastTo(ob, target, typelib=None):
|
164
|
-
"""'Cast' a COM object to another interface"""
|
165
|
-
# todo - should support target being an IID
|
166
|
-
mod = None
|
167
|
-
if (
|
168
|
-
typelib is not None
|
169
|
-
): # caller specified target typelib (TypelibSpec). See e.g. selecttlb.EnumTlbs().
|
170
|
-
mod = gencache.MakeModuleForTypelib(
|
171
|
-
typelib.clsid, typelib.lcid, int(typelib.major, 16), int(typelib.minor, 16)
|
172
|
-
)
|
173
|
-
if not hasattr(mod, target):
|
174
|
-
raise ValueError(
|
175
|
-
f"The interface name '{target}' does not appear in the "
|
176
|
-
f"specified library {typelib.ver_desc!r}"
|
177
|
-
)
|
178
|
-
|
179
|
-
elif hasattr(target, "index"): # string like
|
180
|
-
# for now, we assume makepy for this to work.
|
181
|
-
if "CLSID" not in ob.__class__.__dict__:
|
182
|
-
# Eeek - no makepy support - try and build it.
|
183
|
-
ob = gencache.EnsureDispatch(ob)
|
184
|
-
if "CLSID" not in ob.__class__.__dict__:
|
185
|
-
raise ValueError("Must be a makepy-able object for this to work")
|
186
|
-
clsid = ob.CLSID
|
187
|
-
# Lots of hoops to support "demand-build" - ie, generating
|
188
|
-
# code for an interface first time it is used. We assume the
|
189
|
-
# interface name exists in the same library as the object.
|
190
|
-
# This is generally the case - only referenced typelibs may be
|
191
|
-
# a problem, and we can handle that later. Maybe <wink>
|
192
|
-
# So get the generated module for the library itself, then
|
193
|
-
# find the interface CLSID there.
|
194
|
-
mod = gencache.GetModuleForCLSID(clsid)
|
195
|
-
# Get the 'root' module.
|
196
|
-
mod = gencache.GetModuleForTypelib(
|
197
|
-
mod.CLSID, mod.LCID, mod.MajorVersion, mod.MinorVersion
|
198
|
-
)
|
199
|
-
# Find the CLSID of the target
|
200
|
-
target_clsid = mod.NamesToIIDMap.get(target)
|
201
|
-
if target_clsid is None:
|
202
|
-
raise ValueError(
|
203
|
-
f"The interface name '{target}' does not appear in the "
|
204
|
-
f"same library as object '{ob!r}'"
|
205
|
-
)
|
206
|
-
mod = gencache.GetModuleForCLSID(target_clsid)
|
207
|
-
if mod is not None:
|
208
|
-
target_class = getattr(mod, target)
|
209
|
-
# resolve coclass to interface
|
210
|
-
target_class = getattr(target_class, "default_interface", target_class)
|
211
|
-
return target_class(ob) # auto QI magic happens
|
212
|
-
raise ValueError
|
213
|
-
|
214
|
-
|
215
|
-
class Constants:
|
216
|
-
"""A container for generated COM constants."""
|
217
|
-
|
218
|
-
def __init__(self):
|
219
|
-
self.__dicts__ = [] # A list of dictionaries
|
220
|
-
|
221
|
-
def __getattr__(self, a):
|
222
|
-
for d in self.__dicts__:
|
223
|
-
if a in d:
|
224
|
-
return d[a]
|
225
|
-
raise AttributeError(a)
|
226
|
-
|
227
|
-
|
228
|
-
# And create an instance.
|
229
|
-
constants = Constants()
|
230
|
-
|
231
|
-
|
232
|
-
# A helpers for DispatchWithEvents - this becomes __setattr__ for the
|
233
|
-
# temporary class.
|
234
|
-
def _event_setattr_(self, attr, val):
|
235
|
-
try:
|
236
|
-
# Does the COM object have an attribute of this name?
|
237
|
-
self.__class__.__bases__[0].__setattr__(self, attr, val)
|
238
|
-
except AttributeError:
|
239
|
-
# Otherwise just stash it away in the instance.
|
240
|
-
self.__dict__[attr] = val
|
241
|
-
|
242
|
-
|
243
|
-
# An instance of this "proxy" is created to break the COM circular references
|
244
|
-
# that exist (ie, when we connect to the COM events, COM keeps a reference
|
245
|
-
# to the object. Thus, the Event connection must be manually broken before
|
246
|
-
# our object can die. This solves the problem by manually breaking the connection
|
247
|
-
# to the real object as the proxy dies.
|
248
|
-
class EventsProxy:
|
249
|
-
def __init__(self, ob):
|
250
|
-
self.__dict__["_obj_"] = ob
|
251
|
-
|
252
|
-
def __del__(self):
|
253
|
-
try:
|
254
|
-
# If there is a COM error on disconnection we should
|
255
|
-
# just ignore it - object probably already shut down...
|
256
|
-
self._obj_.close()
|
257
|
-
except pythoncom.com_error:
|
258
|
-
pass
|
259
|
-
|
260
|
-
def __getattr__(self, attr):
|
261
|
-
return getattr(self._obj_, attr)
|
262
|
-
|
263
|
-
def __setattr__(self, attr, val):
|
264
|
-
setattr(self._obj_, attr, val)
|
265
|
-
|
266
|
-
|
267
|
-
def __get_disp_and_event_classes(dispatch):
|
268
|
-
# Create/Get the object.
|
269
|
-
disp = Dispatch(dispatch)
|
270
|
-
|
271
|
-
if disp.__class__.__dict__.get("CLSID"):
|
272
|
-
return disp.__class__
|
273
|
-
|
274
|
-
# Eeek - no makepy support - try and build it.
|
275
|
-
error_msg = "This COM object can not automate the makepy process - please run makepy manually for this object"
|
276
|
-
try:
|
277
|
-
ti = disp._oleobj_.GetTypeInfo()
|
278
|
-
disp_clsid = ti.GetTypeAttr()[0]
|
279
|
-
tlb, index = ti.GetContainingTypeLib()
|
280
|
-
tla = tlb.GetLibAttr()
|
281
|
-
gencache.EnsureModule(tla[0], tla[1], tla[3], tla[4], bValidateFile=0)
|
282
|
-
# Get the class from the module.
|
283
|
-
disp_class = gencache.GetClassForProgID(str(disp_clsid))
|
284
|
-
except pythoncom.com_error as error:
|
285
|
-
raise TypeError(error_msg) from error
|
286
|
-
|
287
|
-
if disp_class is None:
|
288
|
-
raise TypeError(error_msg)
|
289
|
-
# Get the clsid
|
290
|
-
clsid = disp_class.CLSID
|
291
|
-
# Create a new class that derives from 2 classes:
|
292
|
-
# the event sink class and the user class.
|
293
|
-
events_class = getevents(clsid)
|
294
|
-
if events_class is None:
|
295
|
-
raise ValueError("This COM object does not support events.")
|
296
|
-
return disp, disp_class, events_class
|
297
|
-
|
298
|
-
|
299
|
-
def DispatchWithEvents(clsid, user_event_class) -> EventsProxy:
|
300
|
-
"""Create a COM object that can fire events to a user defined class.
|
301
|
-
clsid -- The ProgID or CLSID of the object to create.
|
302
|
-
user_event_class -- A Python class object that responds to the events.
|
303
|
-
|
304
|
-
This requires makepy support for the COM object being created. If
|
305
|
-
this support does not exist it will be automatically generated by
|
306
|
-
this function. If the object does not support makepy, a TypeError
|
307
|
-
exception will be raised.
|
308
|
-
|
309
|
-
The result is a class instance that both represents the COM object
|
310
|
-
and handles events from the COM object.
|
311
|
-
|
312
|
-
It is important to note that the returned instance is not a direct
|
313
|
-
instance of the user_event_class, but an instance of a temporary
|
314
|
-
class object that derives from three classes:
|
315
|
-
* The makepy generated class for the COM object
|
316
|
-
* The makepy generated class for the COM events
|
317
|
-
* The user_event_class as passed to this function.
|
318
|
-
|
319
|
-
If this is not suitable, see the getevents function for an alternative
|
320
|
-
technique of handling events.
|
321
|
-
|
322
|
-
Object Lifetimes: Whenever the object returned from this function is
|
323
|
-
cleaned-up by Python, the events will be disconnected from
|
324
|
-
the COM object. This is almost always what should happen,
|
325
|
-
but see the documentation for getevents() for more details.
|
326
|
-
|
327
|
-
Example:
|
328
|
-
|
329
|
-
>>> class IEEvents:
|
330
|
-
... def OnVisible(self, visible):
|
331
|
-
... print("Visible changed:", visible)
|
332
|
-
...
|
333
|
-
>>> ie = DispatchWithEvents("InternetExplorer.Application", IEEvents)
|
334
|
-
>>> ie.Visible = 1
|
335
|
-
Visible changed: 1
|
336
|
-
>>>
|
337
|
-
"""
|
338
|
-
disp, disp_class, events_class = __get_disp_and_event_classes(clsid)
|
339
|
-
result_class = type(
|
340
|
-
"COMEventClass",
|
341
|
-
(disp_class, events_class, user_event_class),
|
342
|
-
{"__setattr__": _event_setattr_},
|
343
|
-
)
|
344
|
-
# This only calls the first base class __init__.
|
345
|
-
instance = result_class(disp._oleobj_)
|
346
|
-
events_class.__init__(instance, instance)
|
347
|
-
if hasattr(user_event_class, "__init__"):
|
348
|
-
user_event_class.__init__(instance)
|
349
|
-
return EventsProxy(instance)
|
350
|
-
|
351
|
-
|
352
|
-
def WithEvents(disp, user_event_class):
|
353
|
-
"""Similar to DispatchWithEvents - except that the returned
|
354
|
-
object is *not* also usable as the original Dispatch object - that is
|
355
|
-
the returned object is not dispatchable.
|
356
|
-
|
357
|
-
The difference is best summarised by example.
|
358
|
-
|
359
|
-
>>> class IEEvents:
|
360
|
-
... def OnVisible(self, visible):
|
361
|
-
... print("Visible changed:", visible)
|
362
|
-
...
|
363
|
-
>>> ie = Dispatch("InternetExplorer.Application")
|
364
|
-
>>> ie_events = WithEvents(ie, IEEvents)
|
365
|
-
>>> ie.Visible = 1
|
366
|
-
Visible changed: 1
|
367
|
-
|
368
|
-
Compare with the code sample for DispatchWithEvents, where you get a
|
369
|
-
single object that is both the interface and the event handler. Note that
|
370
|
-
the event handler instance will *not* be able to use 'self.' to refer to
|
371
|
-
IE's methods and properties.
|
372
|
-
|
373
|
-
This is mainly useful where using DispatchWithEvents causes
|
374
|
-
circular reference problems that the simple proxy doesn't deal with
|
375
|
-
"""
|
376
|
-
disp, disp_class, events_class = __get_disp_and_event_classes(disp)
|
377
|
-
result_class = type(
|
378
|
-
"COMEventClass",
|
379
|
-
(events_class, user_event_class),
|
380
|
-
{},
|
381
|
-
)
|
382
|
-
# This only calls the first base class __init__.
|
383
|
-
instance = result_class(disp)
|
384
|
-
if hasattr(user_event_class, "__init__"):
|
385
|
-
user_event_class.__init__(instance)
|
386
|
-
return instance
|
387
|
-
|
388
|
-
|
389
|
-
def getevents(clsid):
|
390
|
-
"""Determine the default outgoing interface for a class, given
|
391
|
-
either a clsid or progid. It returns a class - you can
|
392
|
-
conveniently derive your own handler from this class and implement
|
393
|
-
the appropriate methods.
|
394
|
-
|
395
|
-
This method relies on the classes produced by makepy. You must use
|
396
|
-
either makepy or the gencache module to ensure that the
|
397
|
-
appropriate support classes have been generated for the com server
|
398
|
-
that you will be handling events from.
|
399
|
-
|
400
|
-
Beware of COM circular references. When the Events class is connected
|
401
|
-
to the COM object, the COM object itself keeps a reference to the Python
|
402
|
-
events class. Thus, neither the Events instance or the COM object will
|
403
|
-
ever die by themselves. The 'close' method on the events instance
|
404
|
-
must be called to break this chain and allow standard Python collection
|
405
|
-
rules to manage object lifetimes. Note that DispatchWithEvents() does
|
406
|
-
work around this problem by the use of a proxy object, but if you use
|
407
|
-
the getevents() function yourself, you must make your own arrangements
|
408
|
-
to manage this circular reference issue.
|
409
|
-
|
410
|
-
Beware of creating Python circular references: this will happen if your
|
411
|
-
handler has a reference to an object that has a reference back to
|
412
|
-
the event source. Call the 'close' method to break the chain.
|
413
|
-
|
414
|
-
Example:
|
415
|
-
|
416
|
-
>>>win32com.client.gencache.EnsureModule('{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}',0,1,1)
|
417
|
-
<module 'win32com.gen_py.....
|
418
|
-
>>>
|
419
|
-
>>> class InternetExplorerEvents(win32com.client.getevents("InternetExplorer.Application.1")):
|
420
|
-
... def OnVisible(self, Visible):
|
421
|
-
... print("Visibility changed: ", Visible)
|
422
|
-
...
|
423
|
-
>>>
|
424
|
-
>>> ie=win32com.client.Dispatch("InternetExplorer.Application.1")
|
425
|
-
>>> events=InternetExplorerEvents(ie)
|
426
|
-
>>> ie.Visible=1
|
427
|
-
Visibility changed: 1
|
428
|
-
>>>
|
429
|
-
"""
|
430
|
-
|
431
|
-
# find clsid given progid or clsid
|
432
|
-
clsid = str(pywintypes.IID(clsid))
|
433
|
-
# return default outgoing interface for that class
|
434
|
-
klass = gencache.GetClassForCLSID(clsid)
|
435
|
-
try:
|
436
|
-
return klass.default_source
|
437
|
-
except AttributeError:
|
438
|
-
# See if we have a coclass for the interfaces.
|
439
|
-
try:
|
440
|
-
return gencache.GetClassForCLSID(klass.coclass_clsid).default_source
|
441
|
-
except AttributeError:
|
442
|
-
return None
|
443
|
-
|
444
|
-
|
445
|
-
# A Record object, as used by the COM struct support
|
446
|
-
def Record(name, object):
|
447
|
-
"""Creates a new record object, given the name of the record,
|
448
|
-
and an object from the same type library.
|
449
|
-
|
450
|
-
Example usage would be:
|
451
|
-
app = win32com.client.Dispatch("Some.Application")
|
452
|
-
point = win32com.client.Record("SomeAppPoint", app)
|
453
|
-
point.x = 0
|
454
|
-
point.y = 0
|
455
|
-
app.MoveTo(point)
|
456
|
-
"""
|
457
|
-
# XXX - to do - probably should allow "object" to already be a module object.
|
458
|
-
from . import gencache
|
459
|
-
|
460
|
-
object = gencache.EnsureDispatch(object)
|
461
|
-
module = sys.modules[object.__class__.__module__]
|
462
|
-
# to allow us to work correctly with "demand generated" code,
|
463
|
-
# we must use the typelib CLSID to obtain the module
|
464
|
-
# (otherwise we get the sub-module for the object, which
|
465
|
-
# does not hold the records)
|
466
|
-
# thus, package may be module, or may be module's parent if demand generated.
|
467
|
-
package = gencache.GetModuleForTypelib(
|
468
|
-
module.CLSID, module.LCID, module.MajorVersion, module.MinorVersion
|
469
|
-
)
|
470
|
-
try:
|
471
|
-
struct_guid = package.RecordMap[name]
|
472
|
-
except KeyError:
|
473
|
-
raise ValueError(f"The structure '{name}' is not defined in module '{package}'")
|
474
|
-
return pythoncom.GetRecordFromGuids(
|
475
|
-
module.CLSID, module.MajorVersion, module.MinorVersion, module.LCID, struct_guid
|
476
|
-
)
|
477
|
-
|
478
|
-
|
479
|
-
# Registration function for com_record subclasses.
|
480
|
-
def register_record_class(cls):
|
481
|
-
"""
|
482
|
-
Register a subclass of com_record to enable creation of the represented record objects.
|
483
|
-
|
484
|
-
A subclass of com_record requires the following class attributes to be instantiable:
|
485
|
-
|
486
|
-
TLBID : The GUID of the containing TypeLibrary as a string.
|
487
|
-
MJVER : The major version number of the TypeLibrary as an integer.
|
488
|
-
MNVER : The minor version number of the TypeLibrary as an integer.
|
489
|
-
LCID : The LCID of the TypeLibrary as an integer.
|
490
|
-
GUID : The GUID of the COM Record as a string.
|
491
|
-
|
492
|
-
with GUID strings in {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} notation.
|
493
|
-
|
494
|
-
To instantiate such a subclasses it has to be registered via this function.
|
495
|
-
"""
|
496
|
-
if not issubclass(cls, pythoncom.com_record):
|
497
|
-
raise TypeError("Only subclasses of 'com_record' can be registered.")
|
498
|
-
try:
|
499
|
-
TLBID = cls.TLBID
|
500
|
-
MJVER = cls.MJVER
|
501
|
-
MNVER = cls.MNVER
|
502
|
-
LCID = cls.LCID
|
503
|
-
GUID = cls.GUID
|
504
|
-
except AttributeError as e:
|
505
|
-
raise AttributeError(f"Class {cls.__name__} cannot be instantiated.") from e
|
506
|
-
try:
|
507
|
-
_ = pythoncom.GetRecordFromGuids(TLBID, MJVER, MNVER, LCID, GUID)
|
508
|
-
except Exception as e:
|
509
|
-
raise TypeError(f"Class {cls.__name__} cannot be instantiated.") from e
|
510
|
-
# Since the class can be instantiated we know that it represents a valid COM Record
|
511
|
-
# in a properly registered TypeLibrary and that it has a 'GUID' class attribute.
|
512
|
-
if cls.GUID in pythoncom.RecordClasses:
|
513
|
-
raise ValueError(
|
514
|
-
f"Record class with same GUID {cls.GUID} "
|
515
|
-
f"is already registered with name '{pythoncom.RecordClasses[cls.GUID].__name__}'."
|
516
|
-
)
|
517
|
-
pythoncom.RecordClasses[cls.GUID] = cls
|
518
|
-
|
519
|
-
|
520
|
-
############################################
|
521
|
-
# The base of all makepy generated classes
|
522
|
-
############################################
|
523
|
-
class DispatchBaseClass:
|
524
|
-
def __init__(self, oobj=None):
|
525
|
-
if oobj is None:
|
526
|
-
oobj = pythoncom.new(self.CLSID)
|
527
|
-
elif isinstance(oobj, DispatchBaseClass):
|
528
|
-
try:
|
529
|
-
oobj = oobj._oleobj_.QueryInterface(
|
530
|
-
self.CLSID, pythoncom.IID_IDispatch
|
531
|
-
) # Must be a valid COM instance
|
532
|
-
except pythoncom.com_error as details:
|
533
|
-
import winerror
|
534
|
-
|
535
|
-
# Some stupid objects fail here, even tho it is _already_ IDispatch!!??
|
536
|
-
# Eg, Lotus notes.
|
537
|
-
# So just let it use the existing object if E_NOINTERFACE
|
538
|
-
if details.hresult != winerror.E_NOINTERFACE:
|
539
|
-
raise
|
540
|
-
oobj = oobj._oleobj_
|
541
|
-
self.__dict__["_oleobj_"] = oobj # so we don't call __setattr__
|
542
|
-
|
543
|
-
def __dir__(self):
|
544
|
-
attributes = chain(
|
545
|
-
self.__dict__,
|
546
|
-
dir(self.__class__),
|
547
|
-
self._prop_map_get_,
|
548
|
-
self._prop_map_put_,
|
549
|
-
)
|
550
|
-
|
551
|
-
try:
|
552
|
-
attributes = chain(attributes, [p.Name for p in self.Properties_])
|
553
|
-
except AttributeError:
|
554
|
-
pass
|
555
|
-
return list(set(attributes))
|
556
|
-
|
557
|
-
# Provide a prettier name than the CLSID
|
558
|
-
def __repr__(self):
|
559
|
-
# Need to get the docstring for the module for this class.
|
560
|
-
try:
|
561
|
-
mod_doc = sys.modules[self.__class__.__module__].__doc__
|
562
|
-
if mod_doc:
|
563
|
-
mod_name = "win32com.gen_py." + mod_doc
|
564
|
-
else:
|
565
|
-
mod_name = sys.modules[self.__class__.__module__].__name__
|
566
|
-
except KeyError:
|
567
|
-
mod_name = "win32com.gen_py.unknown"
|
568
|
-
return f"<{mod_name}.{self.__class__.__name__} instance at 0x{id(self)}>"
|
569
|
-
|
570
|
-
# Delegate comparison to the oleobjs, as they know how to do identity.
|
571
|
-
def __eq__(self, other):
|
572
|
-
other = getattr(other, "_oleobj_", other)
|
573
|
-
return self._oleobj_ == other
|
574
|
-
|
575
|
-
def __ne__(self, other):
|
576
|
-
other = getattr(other, "_oleobj_", other)
|
577
|
-
return self._oleobj_ != other
|
578
|
-
|
579
|
-
def _ApplyTypes_(self, dispid, wFlags, retType, argTypes, user, resultCLSID, *args):
|
580
|
-
return self._get_good_object_(
|
581
|
-
self._oleobj_.InvokeTypes(dispid, 0, wFlags, retType, argTypes, *args),
|
582
|
-
user,
|
583
|
-
resultCLSID,
|
584
|
-
)
|
585
|
-
|
586
|
-
def __getattr__(self, attr):
|
587
|
-
args = self._prop_map_get_.get(attr)
|
588
|
-
if args is None:
|
589
|
-
raise AttributeError(f"'{self!r}' object has no attribute '{attr}'")
|
590
|
-
return self._ApplyTypes_(*args)
|
591
|
-
|
592
|
-
def __setattr__(self, attr, value):
|
593
|
-
if attr in self.__dict__:
|
594
|
-
self.__dict__[attr] = value
|
595
|
-
return
|
596
|
-
try:
|
597
|
-
args, defArgs = self._prop_map_put_[attr]
|
598
|
-
except KeyError:
|
599
|
-
raise AttributeError(f"'{self!r}' object has no attribute '{attr}'")
|
600
|
-
self._oleobj_.Invoke(*(args + (value,) + defArgs))
|
601
|
-
|
602
|
-
def _get_good_single_object_(self, obj, obUserName=None, resultCLSID=None):
|
603
|
-
return _get_good_single_object_(obj, obUserName, resultCLSID)
|
604
|
-
|
605
|
-
def _get_good_object_(self, obj, obUserName=None, resultCLSID=None):
|
606
|
-
return _get_good_object_(obj, obUserName, resultCLSID)
|
607
|
-
|
608
|
-
|
609
|
-
# XXX - These should be consolidated with dynamic.py versions.
|
610
|
-
def _get_good_single_object_(obj, obUserName=None, resultCLSID=None):
|
611
|
-
if isinstance(obj, _PyIDispatchType):
|
612
|
-
return Dispatch(obj, obUserName, resultCLSID)
|
613
|
-
return obj
|
614
|
-
|
615
|
-
|
616
|
-
def _get_good_object_(obj, obUserName=None, resultCLSID=None):
|
617
|
-
if obj is None:
|
618
|
-
return None
|
619
|
-
elif isinstance(obj, tuple):
|
620
|
-
obUserNameTuple = (obUserName,) * len(obj)
|
621
|
-
resultCLSIDTuple = (resultCLSID,) * len(obj)
|
622
|
-
return tuple(map(_get_good_object_, obj, obUserNameTuple, resultCLSIDTuple))
|
623
|
-
else:
|
624
|
-
return _get_good_single_object_(obj, obUserName, resultCLSID)
|
625
|
-
|
626
|
-
|
627
|
-
class CoClassBaseClass:
|
628
|
-
def __init__(self, oobj=None):
|
629
|
-
if oobj is None:
|
630
|
-
oobj = pythoncom.new(self.CLSID)
|
631
|
-
dispobj = self.__dict__["_dispobj_"] = self.default_interface(oobj)
|
632
|
-
# See comments below re the special methods.
|
633
|
-
for maybe in [
|
634
|
-
"__call__",
|
635
|
-
"__str__",
|
636
|
-
"__int__",
|
637
|
-
"__iter__",
|
638
|
-
"__len__",
|
639
|
-
"__bool__",
|
640
|
-
]:
|
641
|
-
if hasattr(dispobj, maybe):
|
642
|
-
setattr(self, maybe, getattr(self, "__maybe" + maybe))
|
643
|
-
|
644
|
-
def __repr__(self):
|
645
|
-
return f"<win32com.gen_py.{__doc__}.{self.__class__.__name__}>"
|
646
|
-
|
647
|
-
def __getattr__(self, attr):
|
648
|
-
d = self.__dict__["_dispobj_"]
|
649
|
-
if d is not None:
|
650
|
-
return getattr(d, attr)
|
651
|
-
raise AttributeError(attr)
|
652
|
-
|
653
|
-
def __setattr__(self, attr, value):
|
654
|
-
if attr in self.__dict__:
|
655
|
-
self.__dict__[attr] = value
|
656
|
-
return
|
657
|
-
try:
|
658
|
-
d = self.__dict__["_dispobj_"]
|
659
|
-
if d is not None:
|
660
|
-
d.__setattr__(attr, value)
|
661
|
-
return
|
662
|
-
except AttributeError:
|
663
|
-
pass
|
664
|
-
self.__dict__[attr] = value
|
665
|
-
|
666
|
-
# Special methods don't use __getattr__ etc, so explicitly delegate here.
|
667
|
-
# Note however, that not all are safe to let bubble up - things like
|
668
|
-
# `bool(ob)` will break if the object defines __int__ but then raises an
|
669
|
-
# attribute error - eg, see #1753.
|
670
|
-
# It depends on what the wrapped COM object actually defines whether these
|
671
|
-
# will exist on the underlying object, so __init__ explicitly checks if they
|
672
|
-
# do and if so, wires them up.
|
673
|
-
|
674
|
-
def __maybe__call__(self, *args, **kwargs):
|
675
|
-
return self.__dict__["_dispobj_"].__call__(*args, **kwargs)
|
676
|
-
|
677
|
-
def __maybe__str__(self, *args):
|
678
|
-
return self.__dict__["_dispobj_"].__str__(*args)
|
679
|
-
|
680
|
-
def __maybe__int__(self, *args):
|
681
|
-
return self.__dict__["_dispobj_"].__int__(*args)
|
682
|
-
|
683
|
-
def __maybe__iter__(self):
|
684
|
-
return self.__dict__["_dispobj_"].__iter__()
|
685
|
-
|
686
|
-
def __maybe__len__(self):
|
687
|
-
return self.__dict__["_dispobj_"].__len__()
|
688
|
-
|
689
|
-
def __maybe__bool__(self):
|
690
|
-
return self.__dict__["_dispobj_"].__bool__()
|
691
|
-
|
692
|
-
|
693
|
-
# A very simple VARIANT class. Only to be used with poorly-implemented COM
|
694
|
-
# objects. If an object accepts an arg which is a simple "VARIANT", but still
|
695
|
-
# is very pickly about the actual variant type (eg, isn't happy with a VT_I4,
|
696
|
-
# which it would get from a Python integer), you can use this to force a
|
697
|
-
# particular VT.
|
698
|
-
class VARIANT:
|
699
|
-
def __init__(self, vt, value):
|
700
|
-
self.varianttype = vt
|
701
|
-
self._value = value
|
702
|
-
|
703
|
-
# 'value' is a property so when set by pythoncom it gets any magic wrapping
|
704
|
-
# which normally happens for result objects
|
705
|
-
def _get_value(self):
|
706
|
-
return self._value
|
707
|
-
|
708
|
-
def _set_value(self, newval):
|
709
|
-
self._value = _get_good_object_(newval)
|
710
|
-
|
711
|
-
def _del_value(self):
|
712
|
-
del self._value
|
713
|
-
|
714
|
-
value = property(_get_value, _set_value, _del_value)
|
715
|
-
|
716
|
-
def __repr__(self):
|
717
|
-
return f"win32com.client.VARIANT({self.varianttype!r}, {self._value!r})"
|