py2docfx 0.1.15rc2025477__py3-none-any.whl → 0.1.16__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.dist-info}/METADATA +1 -1
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.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.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dist-info}/top_level.txt +0 -0
@@ -1,299 +0,0 @@
|
|
1
|
-
import pywin.scintilla.config
|
2
|
-
import win32api
|
3
|
-
import win32con
|
4
|
-
import win32ui
|
5
|
-
from pywin.framework.editor import DeleteEditorOption, GetEditorOption, SetEditorOption
|
6
|
-
from pywin.mfc import dialog
|
7
|
-
|
8
|
-
from . import document
|
9
|
-
|
10
|
-
# The standard 16 color VGA palette should always be possible
|
11
|
-
paletteVGA = (
|
12
|
-
("Black", 0, 0, 0),
|
13
|
-
("Navy", 0, 0, 128),
|
14
|
-
("Green", 0, 128, 0),
|
15
|
-
("Cyan", 0, 128, 128),
|
16
|
-
("Maroon", 128, 0, 0),
|
17
|
-
("Purple", 128, 0, 128),
|
18
|
-
("Olive", 128, 128, 0),
|
19
|
-
("Gray", 128, 128, 128),
|
20
|
-
("Silver", 192, 192, 192),
|
21
|
-
("Blue", 0, 0, 255),
|
22
|
-
("Lime", 0, 255, 0),
|
23
|
-
("Aqua", 0, 255, 255),
|
24
|
-
("Red", 255, 0, 0),
|
25
|
-
("Fuchsia", 255, 0, 255),
|
26
|
-
("Yellow", 255, 255, 0),
|
27
|
-
("White", 255, 255, 255),
|
28
|
-
)
|
29
|
-
|
30
|
-
|
31
|
-
######################################################
|
32
|
-
#
|
33
|
-
# Property Page for editor options
|
34
|
-
#
|
35
|
-
class EditorPropertyPage(dialog.PropertyPage):
|
36
|
-
def __init__(self):
|
37
|
-
dialog.PropertyPage.__init__(self, win32ui.IDD_PP_EDITOR)
|
38
|
-
self.autooptions = []
|
39
|
-
self._AddEditorOption(win32ui.IDC_AUTO_RELOAD, "i", "Auto Reload", 1)
|
40
|
-
self._AddEditorOption(
|
41
|
-
win32ui.IDC_COMBO1, "i", "Backup Type", document.BAK_DOT_BAK_BAK_DIR
|
42
|
-
)
|
43
|
-
self._AddEditorOption(
|
44
|
-
win32ui.IDC_AUTOCOMPLETE, "i", "Autocomplete Attributes", 1
|
45
|
-
)
|
46
|
-
self._AddEditorOption(win32ui.IDC_CALLTIPS, "i", "Show Call Tips", 1)
|
47
|
-
self._AddEditorOption(
|
48
|
-
win32ui.IDC_MARGIN_LINENUMBER, "i", "Line Number Margin Width", 0
|
49
|
-
)
|
50
|
-
self._AddEditorOption(win32ui.IDC_RADIO1, "i", "MarkersInMargin", None)
|
51
|
-
self._AddEditorOption(
|
52
|
-
win32ui.IDC_MARGIN_MARKER, "i", "Marker Margin Width", None
|
53
|
-
)
|
54
|
-
self["Marker Margin Width"] = GetEditorOption("Marker Margin Width", 16)
|
55
|
-
|
56
|
-
# Folding
|
57
|
-
self._AddEditorOption(win32ui.IDC_MARGIN_FOLD, "i", "Fold Margin Width", 12)
|
58
|
-
self._AddEditorOption(win32ui.IDC_FOLD_ENABLE, "i", "Enable Folding", 1)
|
59
|
-
self._AddEditorOption(win32ui.IDC_FOLD_ON_OPEN, "i", "Fold On Open", 0)
|
60
|
-
self._AddEditorOption(win32ui.IDC_FOLD_SHOW_LINES, "i", "Fold Lines", 1)
|
61
|
-
|
62
|
-
# Right edge.
|
63
|
-
self._AddEditorOption(
|
64
|
-
win32ui.IDC_RIGHTEDGE_ENABLE, "i", "Right Edge Enabled", 0
|
65
|
-
)
|
66
|
-
self._AddEditorOption(
|
67
|
-
win32ui.IDC_RIGHTEDGE_COLUMN, "i", "Right Edge Column", 75
|
68
|
-
)
|
69
|
-
|
70
|
-
# Source control, etc
|
71
|
-
self.AddDDX(win32ui.IDC_VSS_INTEGRATE, "bVSS")
|
72
|
-
self.AddDDX(win32ui.IDC_KEYBOARD_CONFIG, "Configs", "l")
|
73
|
-
self["Configs"] = pywin.scintilla.config.find_config_files()
|
74
|
-
|
75
|
-
def _AddEditorOption(self, idd, typ, optionName, defaultVal):
|
76
|
-
self.AddDDX(idd, optionName, typ)
|
77
|
-
# some options are "derived" - ie, can be implied from others
|
78
|
-
# (eg, "view markers in background" is implied from "markerMarginWidth==0"
|
79
|
-
# So we don't actually store these values, but they do still get DDX support.
|
80
|
-
if defaultVal is not None:
|
81
|
-
self[optionName] = GetEditorOption(optionName, defaultVal)
|
82
|
-
self.autooptions.append((optionName, defaultVal))
|
83
|
-
|
84
|
-
def OnInitDialog(self):
|
85
|
-
for name, val in self.autooptions:
|
86
|
-
self[name] = GetEditorOption(name, val)
|
87
|
-
|
88
|
-
# Note that these MUST be in the same order as the BAK constants.
|
89
|
-
cbo = self.GetDlgItem(win32ui.IDC_COMBO1)
|
90
|
-
cbo.AddString("None")
|
91
|
-
cbo.AddString(".BAK File")
|
92
|
-
cbo.AddString("TEMP dir")
|
93
|
-
cbo.AddString("Own dir")
|
94
|
-
|
95
|
-
# Source Safe
|
96
|
-
bVSS = (
|
97
|
-
GetEditorOption("Source Control Module", "") == "pywin.framework.editor.vss"
|
98
|
-
)
|
99
|
-
self["bVSS"] = bVSS
|
100
|
-
|
101
|
-
edit = self.GetDlgItem(win32ui.IDC_RIGHTEDGE_SAMPLE)
|
102
|
-
edit.SetWindowText("Sample Color")
|
103
|
-
|
104
|
-
rc = dialog.PropertyPage.OnInitDialog(self)
|
105
|
-
|
106
|
-
try:
|
107
|
-
self.GetDlgItem(win32ui.IDC_KEYBOARD_CONFIG).SelectString(
|
108
|
-
-1, GetEditorOption("Keyboard Config", "default")
|
109
|
-
)
|
110
|
-
except win32ui.error:
|
111
|
-
import traceback
|
112
|
-
|
113
|
-
traceback.print_exc()
|
114
|
-
|
115
|
-
self.HookCommand(self.OnButSimple, win32ui.IDC_FOLD_ENABLE)
|
116
|
-
self.HookCommand(self.OnButSimple, win32ui.IDC_RADIO1)
|
117
|
-
self.HookCommand(self.OnButSimple, win32ui.IDC_RADIO2)
|
118
|
-
self.HookCommand(self.OnButSimple, win32ui.IDC_RIGHTEDGE_ENABLE)
|
119
|
-
self.HookCommand(self.OnButEdgeColor, win32ui.IDC_RIGHTEDGE_DEFINE)
|
120
|
-
|
121
|
-
butMarginEnabled = self["Marker Margin Width"] > 0
|
122
|
-
self.GetDlgItem(win32ui.IDC_RADIO1).SetCheck(butMarginEnabled)
|
123
|
-
self.GetDlgItem(win32ui.IDC_RADIO2).SetCheck(not butMarginEnabled)
|
124
|
-
|
125
|
-
self.edgeColor = self.initialEdgeColor = GetEditorOption(
|
126
|
-
"Right Edge Color", win32api.RGB(0xEF, 0xEF, 0xEF)
|
127
|
-
)
|
128
|
-
for spinner_id in (win32ui.IDC_SPIN1, win32ui.IDC_SPIN2, win32ui.IDC_SPIN3):
|
129
|
-
spinner = self.GetDlgItem(spinner_id)
|
130
|
-
spinner.SetRange(0, 100)
|
131
|
-
self.UpdateUIForState()
|
132
|
-
|
133
|
-
return rc
|
134
|
-
|
135
|
-
def OnButSimple(self, id, code):
|
136
|
-
if code == win32con.BN_CLICKED:
|
137
|
-
self.UpdateUIForState()
|
138
|
-
|
139
|
-
def OnButEdgeColor(self, id, code):
|
140
|
-
if code == win32con.BN_CLICKED:
|
141
|
-
d = win32ui.CreateColorDialog(self.edgeColor, 0, self)
|
142
|
-
# Ensure the current color is a custom color (as it may not be in the swatch)
|
143
|
-
# plus some other nice gray scales.
|
144
|
-
ccs = [self.edgeColor]
|
145
|
-
for c in range(0xEF, 0x4F, -0x10):
|
146
|
-
ccs.append(win32api.RGB(c, c, c))
|
147
|
-
d.SetCustomColors(ccs)
|
148
|
-
if d.DoModal() == win32con.IDOK:
|
149
|
-
self.edgeColor = d.GetColor()
|
150
|
-
self.UpdateUIForState()
|
151
|
-
|
152
|
-
def UpdateUIForState(self):
|
153
|
-
folding = self.GetDlgItem(win32ui.IDC_FOLD_ENABLE).GetCheck()
|
154
|
-
self.GetDlgItem(win32ui.IDC_FOLD_ON_OPEN).EnableWindow(folding)
|
155
|
-
self.GetDlgItem(win32ui.IDC_FOLD_SHOW_LINES).EnableWindow(folding)
|
156
|
-
|
157
|
-
widthEnabled = self.GetDlgItem(win32ui.IDC_RADIO1).GetCheck()
|
158
|
-
self.GetDlgItem(win32ui.IDC_MARGIN_MARKER).EnableWindow(widthEnabled)
|
159
|
-
self.UpdateData() # Ensure self[] is up to date with the control data.
|
160
|
-
if widthEnabled and self["Marker Margin Width"] == 0:
|
161
|
-
self["Marker Margin Width"] = 16
|
162
|
-
self.UpdateData(0) # Ensure control up to date with self[]
|
163
|
-
|
164
|
-
# Right edge
|
165
|
-
edgeEnabled = self.GetDlgItem(win32ui.IDC_RIGHTEDGE_ENABLE).GetCheck()
|
166
|
-
self.GetDlgItem(win32ui.IDC_RIGHTEDGE_COLUMN).EnableWindow(edgeEnabled)
|
167
|
-
self.GetDlgItem(win32ui.IDC_RIGHTEDGE_SAMPLE).EnableWindow(edgeEnabled)
|
168
|
-
self.GetDlgItem(win32ui.IDC_RIGHTEDGE_DEFINE).EnableWindow(edgeEnabled)
|
169
|
-
|
170
|
-
edit = self.GetDlgItem(win32ui.IDC_RIGHTEDGE_SAMPLE)
|
171
|
-
edit.SetBackgroundColor(0, self.edgeColor)
|
172
|
-
|
173
|
-
def OnOK(self):
|
174
|
-
for name, defVal in self.autooptions:
|
175
|
-
SetEditorOption(name, self[name])
|
176
|
-
# Margin width gets handled differently.
|
177
|
-
if self["MarkersInMargin"] == 0:
|
178
|
-
SetEditorOption("Marker Margin Width", self["Marker Margin Width"])
|
179
|
-
else:
|
180
|
-
SetEditorOption("Marker Margin Width", 0)
|
181
|
-
if self.edgeColor != self.initialEdgeColor:
|
182
|
-
SetEditorOption("Right Edge Color", self.edgeColor)
|
183
|
-
if self["bVSS"]:
|
184
|
-
SetEditorOption("Source Control Module", "pywin.framework.editor.vss")
|
185
|
-
else:
|
186
|
-
if (
|
187
|
-
GetEditorOption("Source Control Module", "")
|
188
|
-
== "pywin.framework.editor.vss"
|
189
|
-
):
|
190
|
-
SetEditorOption("Source Control Module", "")
|
191
|
-
# Keyboard config
|
192
|
-
configname = self.GetDlgItem(win32ui.IDC_KEYBOARD_CONFIG).GetWindowText()
|
193
|
-
if configname:
|
194
|
-
if configname == "default":
|
195
|
-
DeleteEditorOption("Keyboard Config")
|
196
|
-
else:
|
197
|
-
SetEditorOption("Keyboard Config", configname)
|
198
|
-
|
199
|
-
import pywin.scintilla.view
|
200
|
-
|
201
|
-
pywin.scintilla.view.LoadConfiguration()
|
202
|
-
|
203
|
-
# Now tell all views we have changed.
|
204
|
-
## for doc in editorTemplate.GetDocumentList():
|
205
|
-
## for view in doc.GetAllViews():
|
206
|
-
## try:
|
207
|
-
## fn = view.OnConfigChange
|
208
|
-
## except AttributeError:
|
209
|
-
## continue
|
210
|
-
## fn()
|
211
|
-
return 1
|
212
|
-
|
213
|
-
|
214
|
-
class EditorWhitespacePropertyPage(dialog.PropertyPage):
|
215
|
-
def __init__(self):
|
216
|
-
dialog.PropertyPage.__init__(self, win32ui.IDD_PP_TABS)
|
217
|
-
self.autooptions = []
|
218
|
-
self._AddEditorOption(win32ui.IDC_TAB_SIZE, "i", "Tab Size", 4)
|
219
|
-
self._AddEditorOption(win32ui.IDC_INDENT_SIZE, "i", "Indent Size", 4)
|
220
|
-
self._AddEditorOption(win32ui.IDC_USE_SMART_TABS, "i", "Smart Tabs", 1)
|
221
|
-
self._AddEditorOption(win32ui.IDC_VIEW_WHITESPACE, "i", "View Whitespace", 0)
|
222
|
-
self._AddEditorOption(win32ui.IDC_VIEW_EOL, "i", "View EOL", 0)
|
223
|
-
self._AddEditorOption(
|
224
|
-
win32ui.IDC_VIEW_INDENTATIONGUIDES, "i", "View Indentation Guides", 0
|
225
|
-
)
|
226
|
-
|
227
|
-
def _AddEditorOption(self, idd, typ, optionName, defaultVal):
|
228
|
-
self.AddDDX(idd, optionName, typ)
|
229
|
-
self[optionName] = GetEditorOption(optionName, defaultVal)
|
230
|
-
self.autooptions.append((optionName, defaultVal))
|
231
|
-
|
232
|
-
def OnInitDialog(self):
|
233
|
-
for name, val in self.autooptions:
|
234
|
-
self[name] = GetEditorOption(name, val)
|
235
|
-
|
236
|
-
rc = dialog.PropertyPage.OnInitDialog(self)
|
237
|
-
|
238
|
-
idc = win32ui.IDC_TABTIMMY_NONE
|
239
|
-
if GetEditorOption("Use Tab Timmy", 1):
|
240
|
-
idc = win32ui.IDC_TABTIMMY_IND
|
241
|
-
self.GetDlgItem(idc).SetCheck(1)
|
242
|
-
|
243
|
-
idc = win32ui.IDC_RADIO1
|
244
|
-
if GetEditorOption("Use Tabs", 0):
|
245
|
-
idc = win32ui.IDC_USE_TABS
|
246
|
-
self.GetDlgItem(idc).SetCheck(1)
|
247
|
-
|
248
|
-
tt_color = GetEditorOption("Tab Timmy Color", win32api.RGB(0xFF, 0, 0))
|
249
|
-
self.cbo = self.GetDlgItem(win32ui.IDC_COMBO1)
|
250
|
-
for c in paletteVGA:
|
251
|
-
self.cbo.AddString(c[0])
|
252
|
-
sel = 0
|
253
|
-
for c in paletteVGA:
|
254
|
-
if tt_color == win32api.RGB(c[1], c[2], c[3]):
|
255
|
-
break
|
256
|
-
sel += 1
|
257
|
-
else:
|
258
|
-
sel = -1
|
259
|
-
self.cbo.SetCurSel(sel)
|
260
|
-
self.HookCommand(self.OnButSimple, win32ui.IDC_TABTIMMY_NONE)
|
261
|
-
self.HookCommand(self.OnButSimple, win32ui.IDC_TABTIMMY_IND)
|
262
|
-
self.HookCommand(self.OnButSimple, win32ui.IDC_TABTIMMY_BG)
|
263
|
-
# Set ranges for the spinners.
|
264
|
-
for spinner_id in [win32ui.IDC_SPIN1, win32ui.IDC_SPIN2]:
|
265
|
-
spinner = self.GetDlgItem(spinner_id)
|
266
|
-
spinner.SetRange(1, 16)
|
267
|
-
return rc
|
268
|
-
|
269
|
-
def OnButSimple(self, id, code):
|
270
|
-
if code == win32con.BN_CLICKED:
|
271
|
-
self.UpdateUIForState()
|
272
|
-
|
273
|
-
def UpdateUIForState(self):
|
274
|
-
timmy = self.GetDlgItem(win32ui.IDC_TABTIMMY_NONE).GetCheck()
|
275
|
-
self.GetDlgItem(win32ui.IDC_COMBO1).EnableWindow(not timmy)
|
276
|
-
|
277
|
-
def OnOK(self):
|
278
|
-
for name, defVal in self.autooptions:
|
279
|
-
SetEditorOption(name, self[name])
|
280
|
-
|
281
|
-
SetEditorOption("Use Tabs", self.GetDlgItem(win32ui.IDC_USE_TABS).GetCheck())
|
282
|
-
|
283
|
-
SetEditorOption(
|
284
|
-
"Use Tab Timmy", self.GetDlgItem(win32ui.IDC_TABTIMMY_IND).GetCheck()
|
285
|
-
)
|
286
|
-
c = paletteVGA[self.cbo.GetCurSel()]
|
287
|
-
SetEditorOption("Tab Timmy Color", win32api.RGB(c[1], c[2], c[3]))
|
288
|
-
|
289
|
-
return 1
|
290
|
-
|
291
|
-
|
292
|
-
def testpp():
|
293
|
-
ps = dialog.PropertySheet("Editor Options")
|
294
|
-
ps.AddPage(EditorWhitespacePropertyPage())
|
295
|
-
ps.DoModal()
|
296
|
-
|
297
|
-
|
298
|
-
if __name__ == "__main__":
|
299
|
-
testpp()
|
@@ -1,379 +0,0 @@
|
|
1
|
-
# We no longer support the old, non-colour editor!
|
2
|
-
|
3
|
-
import os
|
4
|
-
import shutil
|
5
|
-
import traceback
|
6
|
-
|
7
|
-
import win32api
|
8
|
-
import win32con
|
9
|
-
import win32ui
|
10
|
-
from pywin.framework.editor import GetEditorOption
|
11
|
-
|
12
|
-
BAK_NONE = 0
|
13
|
-
BAK_DOT_BAK = 1
|
14
|
-
BAK_DOT_BAK_TEMP_DIR = 2
|
15
|
-
BAK_DOT_BAK_BAK_DIR = 3
|
16
|
-
|
17
|
-
MSG_CHECK_EXTERNAL_FILE = (
|
18
|
-
win32con.WM_USER + 1999
|
19
|
-
) ## WARNING: Duplicated in editor.py and coloreditor.py
|
20
|
-
|
21
|
-
import pywin.scintilla.document
|
22
|
-
|
23
|
-
ParentEditorDocument = pywin.scintilla.document.CScintillaDocument
|
24
|
-
|
25
|
-
|
26
|
-
class EditorDocumentBase(ParentEditorDocument):
|
27
|
-
def __init__(self, template):
|
28
|
-
self.bAutoReload = GetEditorOption("Auto Reload", 1)
|
29
|
-
self.bDeclinedReload = 0 # Has the user declined to reload.
|
30
|
-
self.fileStat = None
|
31
|
-
self.bReportedFileNotFound = 0
|
32
|
-
|
33
|
-
# what sort of bak file should I create.
|
34
|
-
# default to write to %temp%/bak/filename.ext
|
35
|
-
self.bakFileType = GetEditorOption("Backup Type", BAK_DOT_BAK_BAK_DIR)
|
36
|
-
|
37
|
-
self.watcherThread = FileWatchingThread(self)
|
38
|
-
self.watcherThread.CreateThread()
|
39
|
-
# Should I try and use VSS integration?
|
40
|
-
self.scModuleName = GetEditorOption("Source Control Module", "")
|
41
|
-
self.scModule = None # Loaded when first used.
|
42
|
-
ParentEditorDocument.__init__(self, template, template.CreateWin32uiDocument())
|
43
|
-
|
44
|
-
def OnCloseDocument(self):
|
45
|
-
self.watcherThread.SignalStop()
|
46
|
-
return self._obj_.OnCloseDocument()
|
47
|
-
|
48
|
-
# def OnOpenDocument(self, name):
|
49
|
-
# rc = ParentEditorDocument.OnOpenDocument(self, name)
|
50
|
-
# self.GetFirstView()._SetLoadedText(self.text)
|
51
|
-
# self._DocumentStateChanged()
|
52
|
-
# return rc
|
53
|
-
|
54
|
-
def OnSaveDocument(self, fileName):
|
55
|
-
win32ui.SetStatusText("Saving file...", 1)
|
56
|
-
# rename to bak if required.
|
57
|
-
dir, basename = os.path.split(fileName)
|
58
|
-
if self.bakFileType == BAK_DOT_BAK:
|
59
|
-
bakFileName = dir + "\\" + os.path.splitext(basename)[0] + ".bak"
|
60
|
-
elif self.bakFileType == BAK_DOT_BAK_TEMP_DIR:
|
61
|
-
bakFileName = (
|
62
|
-
win32api.GetTempPath() + "\\" + os.path.splitext(basename)[0] + ".bak"
|
63
|
-
)
|
64
|
-
elif self.bakFileType == BAK_DOT_BAK_BAK_DIR:
|
65
|
-
tempPath = os.path.join(win32api.GetTempPath(), "bak")
|
66
|
-
try:
|
67
|
-
os.mkdir(tempPath, 0)
|
68
|
-
except OSError:
|
69
|
-
pass
|
70
|
-
bakFileName = os.path.join(tempPath, basename)
|
71
|
-
try:
|
72
|
-
os.unlink(bakFileName) # raise NameError if no bakups wanted.
|
73
|
-
except (OSError, NameError):
|
74
|
-
pass
|
75
|
-
try:
|
76
|
-
# Do a copy as it might be on different volumes,
|
77
|
-
# and the file may be a hard-link, causing the link
|
78
|
-
# to follow the backup.
|
79
|
-
shutil.copy2(fileName, bakFileName)
|
80
|
-
except (OSError, NameError):
|
81
|
-
pass
|
82
|
-
try:
|
83
|
-
self.SaveFile(fileName)
|
84
|
-
except OSError as details:
|
85
|
-
win32ui.MessageBox("Error - could not save file\r\n\r\n%s" % details)
|
86
|
-
return 0
|
87
|
-
except (UnicodeEncodeError, LookupError) as details:
|
88
|
-
rc = win32ui.MessageBox(
|
89
|
-
"Encoding failed: \r\n%s" % details
|
90
|
-
+ "\r\nPlease add desired source encoding as first line of file, eg \r\n"
|
91
|
-
+ "# -*- coding: mbcs -*-\r\n\r\n"
|
92
|
-
+ "If you continue, the file will be saved as binary and will\r\n"
|
93
|
-
+ "not be valid in the declared encoding.\r\n\r\n"
|
94
|
-
+ "Save the file as binary with an invalid encoding?",
|
95
|
-
"File save failed",
|
96
|
-
win32con.MB_YESNO | win32con.MB_DEFBUTTON2,
|
97
|
-
)
|
98
|
-
if rc == win32con.IDYES:
|
99
|
-
try:
|
100
|
-
self.SaveFile(fileName, encoding="latin-1")
|
101
|
-
except OSError as details:
|
102
|
-
win32ui.MessageBox(
|
103
|
-
"Error - could not save file\r\n\r\n%s" % details
|
104
|
-
)
|
105
|
-
return 0
|
106
|
-
else:
|
107
|
-
return 0
|
108
|
-
self.SetModifiedFlag(0) # No longer dirty
|
109
|
-
self.bDeclinedReload = 0 # They probably want to know if it changes again!
|
110
|
-
win32ui.AddToRecentFileList(fileName)
|
111
|
-
self.SetPathName(fileName)
|
112
|
-
win32ui.SetStatusText("Ready")
|
113
|
-
self._DocumentStateChanged()
|
114
|
-
return 1
|
115
|
-
|
116
|
-
def FinalizeViewCreation(self, view):
|
117
|
-
ParentEditorDocument.FinalizeViewCreation(self, view)
|
118
|
-
if view == self.GetFirstView():
|
119
|
-
self._DocumentStateChanged()
|
120
|
-
if view.bFolding and GetEditorOption("Fold On Open", 0):
|
121
|
-
view.FoldTopLevelEvent()
|
122
|
-
|
123
|
-
def HookViewNotifications(self, view):
|
124
|
-
ParentEditorDocument.HookViewNotifications(self, view)
|
125
|
-
|
126
|
-
# Support for reloading the document from disk - presumably after some
|
127
|
-
# external application has modified it (or possibly source control has
|
128
|
-
# checked it out.
|
129
|
-
def ReloadDocument(self):
|
130
|
-
"""Reloads the document from disk. Assumes the file has
|
131
|
-
been saved and user has been asked if necessary - it just does it!
|
132
|
-
"""
|
133
|
-
win32ui.SetStatusText("Reloading document. Please wait...", 1)
|
134
|
-
self.SetModifiedFlag(0)
|
135
|
-
# Loop over all views, saving their state, then reload the document
|
136
|
-
views = self.GetAllViews()
|
137
|
-
states = []
|
138
|
-
for view in views:
|
139
|
-
try:
|
140
|
-
info = view._PrepareUserStateChange()
|
141
|
-
except AttributeError: # Not our editor view?
|
142
|
-
info = None
|
143
|
-
states.append(info)
|
144
|
-
self.OnOpenDocument(self.GetPathName())
|
145
|
-
for view, info in zip(views, states):
|
146
|
-
if info is not None:
|
147
|
-
view._EndUserStateChange(info)
|
148
|
-
self._DocumentStateChanged()
|
149
|
-
win32ui.SetStatusText("Document reloaded.")
|
150
|
-
|
151
|
-
# Reloading the file
|
152
|
-
def CheckExternalDocumentUpdated(self):
|
153
|
-
if self.bDeclinedReload or not self.GetPathName():
|
154
|
-
return
|
155
|
-
try:
|
156
|
-
newstat = os.stat(self.GetPathName())
|
157
|
-
except OSError as exc:
|
158
|
-
if not self.bReportedFileNotFound:
|
159
|
-
print(
|
160
|
-
"The file '{}' is open for editing, but\nchecking it for changes caused the error: {}".format(
|
161
|
-
self.GetPathName(), exc.strerror
|
162
|
-
)
|
163
|
-
)
|
164
|
-
self.bReportedFileNotFound = 1
|
165
|
-
return
|
166
|
-
if self.bReportedFileNotFound:
|
167
|
-
print(
|
168
|
-
"The file '{}' has re-appeared - continuing to watch for changes...".format(
|
169
|
-
self.GetPathName()
|
170
|
-
)
|
171
|
-
)
|
172
|
-
self.bReportedFileNotFound = (
|
173
|
-
0 # Once found again we want to start complaining.
|
174
|
-
)
|
175
|
-
changed = (
|
176
|
-
(self.fileStat is None)
|
177
|
-
or self.fileStat[0] != newstat[0]
|
178
|
-
or self.fileStat[6] != newstat[6]
|
179
|
-
or self.fileStat[8] != newstat[8]
|
180
|
-
or self.fileStat[9] != newstat[9]
|
181
|
-
)
|
182
|
-
if changed:
|
183
|
-
question = None
|
184
|
-
if self.IsModified():
|
185
|
-
question = (
|
186
|
-
"%s\r\n\r\nThis file has been modified outside of the source editor.\r\nDo you want to reload it and LOSE THE CHANGES in the source editor?"
|
187
|
-
% self.GetPathName()
|
188
|
-
)
|
189
|
-
mbStyle = win32con.MB_YESNO | win32con.MB_DEFBUTTON2 # Default to "No"
|
190
|
-
else:
|
191
|
-
if not self.bAutoReload:
|
192
|
-
question = (
|
193
|
-
"%s\r\n\r\nThis file has been modified outside of the source editor.\r\nDo you want to reload it?"
|
194
|
-
% self.GetPathName()
|
195
|
-
)
|
196
|
-
mbStyle = win32con.MB_YESNO # Default to "Yes"
|
197
|
-
if question:
|
198
|
-
rc = win32ui.MessageBox(question, None, mbStyle)
|
199
|
-
if rc != win32con.IDYES:
|
200
|
-
self.bDeclinedReload = 1
|
201
|
-
return
|
202
|
-
self.ReloadDocument()
|
203
|
-
|
204
|
-
def _DocumentStateChanged(self):
|
205
|
-
"""Called whenever the documents state (on disk etc) has been changed
|
206
|
-
by the editor (eg, as the result of a save operation)
|
207
|
-
"""
|
208
|
-
if self.GetPathName():
|
209
|
-
try:
|
210
|
-
self.fileStat = os.stat(self.GetPathName())
|
211
|
-
except OSError:
|
212
|
-
self.fileStat = None
|
213
|
-
else:
|
214
|
-
self.fileStat = None
|
215
|
-
self.watcherThread._DocumentStateChanged()
|
216
|
-
self._UpdateUIForState()
|
217
|
-
self._ApplyOptionalToViews("_UpdateUIForState")
|
218
|
-
self._ApplyOptionalToViews("SetReadOnly", self._IsReadOnly())
|
219
|
-
self._ApplyOptionalToViews("SCISetSavePoint")
|
220
|
-
# Allow the debugger to reset us too.
|
221
|
-
import pywin.debugger
|
222
|
-
|
223
|
-
if pywin.debugger.currentDebugger is not None:
|
224
|
-
pywin.debugger.currentDebugger.UpdateDocumentLineStates(self)
|
225
|
-
|
226
|
-
# Read-only document support - make it obvious to the user
|
227
|
-
# that the file is read-only.
|
228
|
-
def _IsReadOnly(self):
|
229
|
-
return self.fileStat is not None and (self.fileStat[0] & 128) == 0
|
230
|
-
|
231
|
-
def _UpdateUIForState(self):
|
232
|
-
"""Change the title to reflect the state of the document -
|
233
|
-
eg ReadOnly, Dirty, etc
|
234
|
-
"""
|
235
|
-
filename = self.GetPathName()
|
236
|
-
if not filename:
|
237
|
-
return # New file - nothing to do
|
238
|
-
try:
|
239
|
-
# This seems necessary so the internal state of the window becomes
|
240
|
-
# "visible". without it, it is still shown, but certain functions
|
241
|
-
# (such as updating the title) don't immediately work?
|
242
|
-
self.GetFirstView().ShowWindow(win32con.SW_SHOW)
|
243
|
-
title = win32ui.GetFileTitle(filename)
|
244
|
-
except win32ui.error:
|
245
|
-
title = filename
|
246
|
-
if self._IsReadOnly():
|
247
|
-
title += " (read-only)"
|
248
|
-
self.SetTitle(title)
|
249
|
-
|
250
|
-
def MakeDocumentWritable(self):
|
251
|
-
pretend_ss = 0 # Set to 1 to test this without source safe :-)
|
252
|
-
if not self.scModuleName and not pretend_ss: # No Source Control support.
|
253
|
-
win32ui.SetStatusText(
|
254
|
-
"Document is read-only, and no source-control system is configured"
|
255
|
-
)
|
256
|
-
win32api.MessageBeep()
|
257
|
-
return 0
|
258
|
-
|
259
|
-
# We have source control support - check if the user wants to use it.
|
260
|
-
msg = "Would you like to check this file out?"
|
261
|
-
defButton = win32con.MB_YESNO
|
262
|
-
if self.IsModified():
|
263
|
-
msg += "\r\n\r\nALL CHANGES IN THE EDITOR WILL BE LOST"
|
264
|
-
defButton = win32con.MB_YESNO
|
265
|
-
if win32ui.MessageBox(msg, None, defButton) != win32con.IDYES:
|
266
|
-
return 0
|
267
|
-
|
268
|
-
if pretend_ss:
|
269
|
-
print("We are only pretending to check it out!")
|
270
|
-
win32api.SetFileAttributes(
|
271
|
-
self.GetPathName(), win32con.FILE_ATTRIBUTE_NORMAL
|
272
|
-
)
|
273
|
-
self.ReloadDocument()
|
274
|
-
return 1
|
275
|
-
|
276
|
-
# Now call on the module to do it.
|
277
|
-
if self.scModule is None:
|
278
|
-
try:
|
279
|
-
self.scModule = __import__(self.scModuleName)
|
280
|
-
for part in self.scModuleName.split(".")[1:]:
|
281
|
-
self.scModule = getattr(self.scModule, part)
|
282
|
-
except:
|
283
|
-
traceback.print_exc()
|
284
|
-
print("Error loading source control module.")
|
285
|
-
return 0
|
286
|
-
|
287
|
-
if self.scModule.CheckoutFile(self.GetPathName()):
|
288
|
-
self.ReloadDocument()
|
289
|
-
return 1
|
290
|
-
return 0
|
291
|
-
|
292
|
-
def CheckMakeDocumentWritable(self):
|
293
|
-
if self._IsReadOnly():
|
294
|
-
return self.MakeDocumentWritable()
|
295
|
-
return 1
|
296
|
-
|
297
|
-
def SaveModified(self):
|
298
|
-
# Called as the document is closed. If we are about
|
299
|
-
# to prompt for a save, bring the document to the foreground.
|
300
|
-
if self.IsModified():
|
301
|
-
frame = self.GetFirstView().GetParentFrame()
|
302
|
-
try:
|
303
|
-
frame.MDIActivate()
|
304
|
-
frame.AutoRestore()
|
305
|
-
except:
|
306
|
-
print("Could not bring document to foreground")
|
307
|
-
return self._obj_.SaveModified()
|
308
|
-
|
309
|
-
|
310
|
-
# NOTE - I DONT use the standard threading module,
|
311
|
-
# as this waits for all threads to terminate at shutdown.
|
312
|
-
# When using the debugger, it is possible shutdown will
|
313
|
-
# occur without Pythonwin getting a complete shutdown,
|
314
|
-
# so we deadlock at the end - threading is waiting for
|
315
|
-
import pywin.mfc.thread
|
316
|
-
import win32event
|
317
|
-
|
318
|
-
|
319
|
-
class FileWatchingThread(pywin.mfc.thread.WinThread):
|
320
|
-
def __init__(self, doc):
|
321
|
-
self.doc = doc
|
322
|
-
self.adminEvent = win32event.CreateEvent(None, 0, 0, None)
|
323
|
-
self.stopEvent = win32event.CreateEvent(None, 0, 0, None)
|
324
|
-
self.watchEvent = None
|
325
|
-
pywin.mfc.thread.WinThread.__init__(self)
|
326
|
-
|
327
|
-
def _DocumentStateChanged(self):
|
328
|
-
win32event.SetEvent(self.adminEvent)
|
329
|
-
|
330
|
-
def RefreshEvent(self):
|
331
|
-
self.hwnd = self.doc.GetFirstView().GetSafeHwnd()
|
332
|
-
if self.watchEvent is not None:
|
333
|
-
win32api.FindCloseChangeNotification(self.watchEvent)
|
334
|
-
self.watchEvent = None
|
335
|
-
path = self.doc.GetPathName()
|
336
|
-
if path:
|
337
|
-
path = os.path.dirname(path)
|
338
|
-
if path:
|
339
|
-
filter = (
|
340
|
-
win32con.FILE_NOTIFY_CHANGE_FILE_NAME
|
341
|
-
| win32con.FILE_NOTIFY_CHANGE_ATTRIBUTES
|
342
|
-
| win32con.FILE_NOTIFY_CHANGE_LAST_WRITE
|
343
|
-
)
|
344
|
-
try:
|
345
|
-
self.watchEvent = win32api.FindFirstChangeNotification(path, 0, filter)
|
346
|
-
except win32api.error as exc:
|
347
|
-
print("Can not watch file", path, "for changes -", exc.strerror)
|
348
|
-
|
349
|
-
def SignalStop(self):
|
350
|
-
win32event.SetEvent(self.stopEvent)
|
351
|
-
|
352
|
-
def Run(self):
|
353
|
-
while 1:
|
354
|
-
handles = [self.stopEvent, self.adminEvent]
|
355
|
-
if self.watchEvent is not None:
|
356
|
-
handles.append(self.watchEvent)
|
357
|
-
rc = win32event.WaitForMultipleObjects(handles, 0, win32event.INFINITE)
|
358
|
-
if rc == win32event.WAIT_OBJECT_0:
|
359
|
-
break
|
360
|
-
elif rc == win32event.WAIT_OBJECT_0 + 1:
|
361
|
-
self.RefreshEvent()
|
362
|
-
else:
|
363
|
-
win32api.PostMessage(self.hwnd, MSG_CHECK_EXTERNAL_FILE, 0, 0)
|
364
|
-
try:
|
365
|
-
# If the directory has been removed underneath us, we get this error.
|
366
|
-
win32api.FindNextChangeNotification(self.watchEvent)
|
367
|
-
except win32api.error as exc:
|
368
|
-
print(
|
369
|
-
"Can not watch file",
|
370
|
-
self.doc.GetPathName(),
|
371
|
-
"for changes -",
|
372
|
-
exc.strerror,
|
373
|
-
)
|
374
|
-
break
|
375
|
-
|
376
|
-
# close a circular reference
|
377
|
-
self.doc = None
|
378
|
-
if self.watchEvent:
|
379
|
-
win32api.FindCloseChangeNotification(self.watchEvent)
|