py2docfx 0.1.15rc2025477__py3-none-any.whl → 0.1.16.dev2051338__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.dev2051338.dist-info}/METADATA +1 -1
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2051338.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.dev2051338.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2051338.dist-info}/top_level.txt +0 -0
@@ -1,646 +0,0 @@
|
|
1
|
-
# Color Editor originally by Neil Hodgson, but restructured by mh to integrate
|
2
|
-
# even tighter into Pythonwin.
|
3
|
-
|
4
|
-
import pywin.scintilla.keycodes
|
5
|
-
import pywin.scintilla.view
|
6
|
-
import win32api
|
7
|
-
import win32con
|
8
|
-
import win32ui
|
9
|
-
from pywin.debugger import dbgcon
|
10
|
-
from pywin.framework.editor import GetEditorOption
|
11
|
-
from pywin.framework.editor.document import EditorDocumentBase
|
12
|
-
from pywin.framework.editor.frame import EditorFrame
|
13
|
-
from pywin.framework.editor.template import EditorTemplateBase
|
14
|
-
from pywin.scintilla import bindings, scintillacon
|
15
|
-
from pywin.scintilla.view import CScintillaView as SyntEditViewParent
|
16
|
-
|
17
|
-
# WARNING: Duplicated in document.py and editor.py
|
18
|
-
MSG_CHECK_EXTERNAL_FILE = win32con.WM_USER + 1999
|
19
|
-
|
20
|
-
# Define a few common markers
|
21
|
-
MARKER_BOOKMARK = 0
|
22
|
-
MARKER_BREAKPOINT = 1
|
23
|
-
MARKER_CURRENT = 2
|
24
|
-
|
25
|
-
|
26
|
-
class SyntEditDocument(EditorDocumentBase):
|
27
|
-
"A SyntEdit document."
|
28
|
-
|
29
|
-
def OnDebuggerStateChange(self, state):
|
30
|
-
self._ApplyOptionalToViews("OnDebuggerStateChange", state)
|
31
|
-
|
32
|
-
def HookViewNotifications(self, view):
|
33
|
-
EditorDocumentBase.HookViewNotifications(self, view)
|
34
|
-
view.SCISetUndoCollection(1)
|
35
|
-
|
36
|
-
def FinalizeViewCreation(self, view):
|
37
|
-
EditorDocumentBase.FinalizeViewCreation(self, view)
|
38
|
-
if view == self.GetFirstView():
|
39
|
-
self.GetDocTemplate().CheckIDLEMenus(view.idle)
|
40
|
-
|
41
|
-
|
42
|
-
class SyntEditView(SyntEditViewParent):
|
43
|
-
"A view of a SyntEdit. Obtains data from document."
|
44
|
-
|
45
|
-
def __init__(self, doc):
|
46
|
-
SyntEditViewParent.__init__(self, doc)
|
47
|
-
self.bCheckingFile = 0
|
48
|
-
|
49
|
-
def OnInitialUpdate(self):
|
50
|
-
SyntEditViewParent.OnInitialUpdate(self)
|
51
|
-
|
52
|
-
self.HookMessage(self.OnRClick, win32con.WM_RBUTTONDOWN)
|
53
|
-
|
54
|
-
for id in (
|
55
|
-
win32ui.ID_VIEW_FOLD_COLLAPSE,
|
56
|
-
win32ui.ID_VIEW_FOLD_COLLAPSE_ALL,
|
57
|
-
win32ui.ID_VIEW_FOLD_EXPAND,
|
58
|
-
win32ui.ID_VIEW_FOLD_EXPAND_ALL,
|
59
|
-
):
|
60
|
-
self.HookCommand(self.OnCmdViewFold, id)
|
61
|
-
self.HookCommandUpdate(self.OnUpdateViewFold, id)
|
62
|
-
self.HookCommand(self.OnCmdViewFoldTopLevel, win32ui.ID_VIEW_FOLD_TOPLEVEL)
|
63
|
-
|
64
|
-
# Define the markers
|
65
|
-
# self.SCIMarkerDeleteAll()
|
66
|
-
self.SCIMarkerDefineAll(
|
67
|
-
MARKER_BOOKMARK,
|
68
|
-
scintillacon.SC_MARK_ROUNDRECT,
|
69
|
-
win32api.RGB(0x0, 0x0, 0x0),
|
70
|
-
win32api.RGB(0, 0xFF, 0xFF),
|
71
|
-
)
|
72
|
-
|
73
|
-
self.SCIMarkerDefine(MARKER_CURRENT, scintillacon.SC_MARK_ARROW)
|
74
|
-
self.SCIMarkerSetBack(MARKER_CURRENT, win32api.RGB(0xFF, 0xFF, 0x00))
|
75
|
-
|
76
|
-
# Define the folding markers
|
77
|
-
if 1: # traditional markers
|
78
|
-
self.SCIMarkerDefineAll(
|
79
|
-
scintillacon.SC_MARKNUM_FOLDEROPEN,
|
80
|
-
scintillacon.SC_MARK_MINUS,
|
81
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
82
|
-
win32api.RGB(0, 0, 0),
|
83
|
-
)
|
84
|
-
self.SCIMarkerDefineAll(
|
85
|
-
scintillacon.SC_MARKNUM_FOLDER,
|
86
|
-
scintillacon.SC_MARK_PLUS,
|
87
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
88
|
-
win32api.RGB(0, 0, 0),
|
89
|
-
)
|
90
|
-
self.SCIMarkerDefineAll(
|
91
|
-
scintillacon.SC_MARKNUM_FOLDERSUB,
|
92
|
-
scintillacon.SC_MARK_EMPTY,
|
93
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
94
|
-
win32api.RGB(0, 0, 0),
|
95
|
-
)
|
96
|
-
self.SCIMarkerDefineAll(
|
97
|
-
scintillacon.SC_MARKNUM_FOLDERTAIL,
|
98
|
-
scintillacon.SC_MARK_EMPTY,
|
99
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
100
|
-
win32api.RGB(0, 0, 0),
|
101
|
-
)
|
102
|
-
self.SCIMarkerDefineAll(
|
103
|
-
scintillacon.SC_MARKNUM_FOLDEREND,
|
104
|
-
scintillacon.SC_MARK_EMPTY,
|
105
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
106
|
-
win32api.RGB(0, 0, 0),
|
107
|
-
)
|
108
|
-
self.SCIMarkerDefineAll(
|
109
|
-
scintillacon.SC_MARKNUM_FOLDEROPENMID,
|
110
|
-
scintillacon.SC_MARK_EMPTY,
|
111
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
112
|
-
win32api.RGB(0, 0, 0),
|
113
|
-
)
|
114
|
-
self.SCIMarkerDefineAll(
|
115
|
-
scintillacon.SC_MARKNUM_FOLDERMIDTAIL,
|
116
|
-
scintillacon.SC_MARK_EMPTY,
|
117
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
118
|
-
win32api.RGB(0, 0, 0),
|
119
|
-
)
|
120
|
-
else: # curved markers
|
121
|
-
self.SCIMarkerDefineAll(
|
122
|
-
scintillacon.SC_MARKNUM_FOLDEROPEN,
|
123
|
-
scintillacon.SC_MARK_CIRCLEMINUS,
|
124
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
125
|
-
win32api.RGB(0, 0, 0),
|
126
|
-
)
|
127
|
-
self.SCIMarkerDefineAll(
|
128
|
-
scintillacon.SC_MARKNUM_FOLDER,
|
129
|
-
scintillacon.SC_MARK_CIRCLEPLUS,
|
130
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
131
|
-
win32api.RGB(0, 0, 0),
|
132
|
-
)
|
133
|
-
self.SCIMarkerDefineAll(
|
134
|
-
scintillacon.SC_MARKNUM_FOLDERSUB,
|
135
|
-
scintillacon.SC_MARK_VLINE,
|
136
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
137
|
-
win32api.RGB(0, 0, 0),
|
138
|
-
)
|
139
|
-
self.SCIMarkerDefineAll(
|
140
|
-
scintillacon.SC_MARKNUM_FOLDERTAIL,
|
141
|
-
scintillacon.SC_MARK_LCORNERCURVE,
|
142
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
143
|
-
win32api.RGB(0, 0, 0),
|
144
|
-
)
|
145
|
-
self.SCIMarkerDefineAll(
|
146
|
-
scintillacon.SC_MARKNUM_FOLDEREND,
|
147
|
-
scintillacon.SC_MARK_CIRCLEPLUSCONNECTED,
|
148
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
149
|
-
win32api.RGB(0, 0, 0),
|
150
|
-
)
|
151
|
-
self.SCIMarkerDefineAll(
|
152
|
-
scintillacon.SC_MARKNUM_FOLDEROPENMID,
|
153
|
-
scintillacon.SC_MARK_CIRCLEMINUSCONNECTED,
|
154
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
155
|
-
win32api.RGB(0, 0, 0),
|
156
|
-
)
|
157
|
-
self.SCIMarkerDefineAll(
|
158
|
-
scintillacon.SC_MARKNUM_FOLDERMIDTAIL,
|
159
|
-
scintillacon.SC_MARK_TCORNERCURVE,
|
160
|
-
win32api.RGB(0xFF, 0xFF, 0xFF),
|
161
|
-
win32api.RGB(0, 0, 0),
|
162
|
-
)
|
163
|
-
|
164
|
-
self.SCIMarkerDefine(MARKER_BREAKPOINT, scintillacon.SC_MARK_CIRCLE)
|
165
|
-
# Marker background depends on debugger state
|
166
|
-
self.SCIMarkerSetFore(MARKER_BREAKPOINT, win32api.RGB(0x0, 0, 0))
|
167
|
-
# Get the current debugger state.
|
168
|
-
try:
|
169
|
-
import pywin.debugger
|
170
|
-
|
171
|
-
if pywin.debugger.currentDebugger is None:
|
172
|
-
state = dbgcon.DBGSTATE_NOT_DEBUGGING
|
173
|
-
else:
|
174
|
-
state = pywin.debugger.currentDebugger.debuggerState
|
175
|
-
except ImportError:
|
176
|
-
state = dbgcon.DBGSTATE_NOT_DEBUGGING
|
177
|
-
self.OnDebuggerStateChange(state)
|
178
|
-
|
179
|
-
def _GetSubConfigNames(self):
|
180
|
-
return ["editor"] # Allow [Keys:Editor] sections to be specific to us
|
181
|
-
|
182
|
-
def DoConfigChange(self):
|
183
|
-
SyntEditViewParent.DoConfigChange(self)
|
184
|
-
tabSize = GetEditorOption("Tab Size", 4, 2)
|
185
|
-
indentSize = GetEditorOption("Indent Size", 4, 2)
|
186
|
-
bUseTabs = GetEditorOption("Use Tabs", 0)
|
187
|
-
bSmartTabs = GetEditorOption("Smart Tabs", 1)
|
188
|
-
ext = self.idle.IDLEExtension("AutoIndent") # Required extension.
|
189
|
-
|
190
|
-
self.SCISetViewWS(GetEditorOption("View Whitespace", 0))
|
191
|
-
self.SCISetViewEOL(GetEditorOption("View EOL", 0))
|
192
|
-
self.SCISetIndentationGuides(GetEditorOption("View Indentation Guides", 0))
|
193
|
-
|
194
|
-
if GetEditorOption("Right Edge Enabled", 0):
|
195
|
-
mode = scintillacon.EDGE_BACKGROUND
|
196
|
-
else:
|
197
|
-
mode = scintillacon.EDGE_NONE
|
198
|
-
self.SCISetEdgeMode(mode)
|
199
|
-
self.SCISetEdgeColumn(GetEditorOption("Right Edge Column", 75))
|
200
|
-
self.SCISetEdgeColor(
|
201
|
-
GetEditorOption("Right Edge Color", win32api.RGB(0xEF, 0xEF, 0xEF))
|
202
|
-
)
|
203
|
-
|
204
|
-
width = GetEditorOption("Marker Margin Width", 16)
|
205
|
-
self.SCISetMarginWidthN(1, width)
|
206
|
-
width = GetEditorOption("Fold Margin Width", 12)
|
207
|
-
self.SCISetMarginWidthN(2, width)
|
208
|
-
width = GetEditorOption("Line Number Margin Width", 0)
|
209
|
-
self.SCISetMarginWidthN(0, width)
|
210
|
-
self.bFolding = GetEditorOption("Enable Folding", 1)
|
211
|
-
fold_flags = 0
|
212
|
-
self.SendScintilla(
|
213
|
-
scintillacon.SCI_SETMODEVENTMASK, scintillacon.SC_MOD_CHANGEFOLD
|
214
|
-
)
|
215
|
-
if self.bFolding:
|
216
|
-
if GetEditorOption("Fold Lines", 1):
|
217
|
-
fold_flags = 16
|
218
|
-
|
219
|
-
self.SCISetProperty("fold", self.bFolding)
|
220
|
-
self.SCISetFoldFlags(fold_flags)
|
221
|
-
|
222
|
-
tt_color = GetEditorOption("Tab Timmy Color", win32api.RGB(0xFF, 0, 0))
|
223
|
-
self.SendScintilla(scintillacon.SCI_INDICSETFORE, 1, tt_color)
|
224
|
-
|
225
|
-
tt_use = GetEditorOption("Use Tab Timmy", 1)
|
226
|
-
if tt_use:
|
227
|
-
self.SCISetProperty("tab.timmy.whinge.level", "1")
|
228
|
-
|
229
|
-
# Auto-indent has very complicated behaviour. In a nutshell, the only
|
230
|
-
# way to get sensible behaviour from it is to ensure tabwidth != indentsize.
|
231
|
-
# Further, usetabs will only ever go from 1->0, never 0->1.
|
232
|
-
# This is _not_ the behaviour Pythonwin wants:
|
233
|
-
# * Tab width is arbitary, so should have no impact on smarts.
|
234
|
-
# * bUseTabs setting should reflect how new files are created, and
|
235
|
-
# if Smart Tabs disabled, existing files are edited
|
236
|
-
# * If "Smart Tabs" is enabled, bUseTabs should have no bearing
|
237
|
-
# for existing files (unless of course no context can be determined)
|
238
|
-
#
|
239
|
-
# So for smart tabs we configure the widget with completely dummy
|
240
|
-
# values (ensuring tabwidth != indentwidth), ask it to guess, then
|
241
|
-
# look at the values it has guessed, and re-configure
|
242
|
-
if bSmartTabs:
|
243
|
-
ext.config(usetabs=1, tabwidth=5, indentwidth=4)
|
244
|
-
ext.set_indentation_params(1)
|
245
|
-
if ext.indentwidth == 5:
|
246
|
-
# Either 5 literal spaces, or a single tab character. Assume a tab
|
247
|
-
usetabs = 1
|
248
|
-
indentwidth = tabSize
|
249
|
-
else:
|
250
|
-
# Either Indented with spaces, and indent size has been guessed or
|
251
|
-
# an empty file (or no context found - tough!)
|
252
|
-
if self.GetTextLength() == 0: # emtpy
|
253
|
-
usetabs = bUseTabs
|
254
|
-
indentwidth = indentSize
|
255
|
-
else: # guessed.
|
256
|
-
indentwidth = ext.indentwidth
|
257
|
-
usetabs = 0
|
258
|
-
# Tab size can never be guessed - set at user preference.
|
259
|
-
ext.config(usetabs=usetabs, indentwidth=indentwidth, tabwidth=tabSize)
|
260
|
-
else:
|
261
|
-
# Don't want smart-tabs - just set the options!
|
262
|
-
ext.config(usetabs=bUseTabs, tabwidth=tabSize, indentwidth=indentSize)
|
263
|
-
self.SCISetIndent(indentSize)
|
264
|
-
self.SCISetTabWidth(tabSize)
|
265
|
-
|
266
|
-
def OnDebuggerStateChange(self, state):
|
267
|
-
if state == dbgcon.DBGSTATE_NOT_DEBUGGING:
|
268
|
-
# Indicate breakpoints aren't really usable.
|
269
|
-
# Not quite white - useful when no marker margin, so set as background color.
|
270
|
-
self.SCIMarkerSetBack(MARKER_BREAKPOINT, win32api.RGB(0xEF, 0xEF, 0xEF))
|
271
|
-
else:
|
272
|
-
# A light-red, so still readable when no marker margin.
|
273
|
-
self.SCIMarkerSetBack(MARKER_BREAKPOINT, win32api.RGB(0xFF, 0x80, 0x80))
|
274
|
-
|
275
|
-
def HookDocumentHandlers(self):
|
276
|
-
SyntEditViewParent.HookDocumentHandlers(self)
|
277
|
-
self.HookMessage(self.OnCheckExternalDocumentUpdated, MSG_CHECK_EXTERNAL_FILE)
|
278
|
-
|
279
|
-
def HookHandlers(self):
|
280
|
-
SyntEditViewParent.HookHandlers(self)
|
281
|
-
self.HookMessage(self.OnSetFocus, win32con.WM_SETFOCUS)
|
282
|
-
|
283
|
-
def _PrepareUserStateChange(self):
|
284
|
-
return self.GetSel(), self.GetFirstVisibleLine()
|
285
|
-
|
286
|
-
def _EndUserStateChange(self, info):
|
287
|
-
scrollOff = info[1] - self.GetFirstVisibleLine()
|
288
|
-
if scrollOff:
|
289
|
-
self.LineScroll(scrollOff)
|
290
|
-
# Make sure we don't reset the cursor beyond the buffer.
|
291
|
-
max = self.GetTextLength()
|
292
|
-
newPos = min(info[0][0], max), min(info[0][1], max)
|
293
|
-
self.SetSel(newPos)
|
294
|
-
|
295
|
-
#######################################
|
296
|
-
# The Windows Message or Notify handlers.
|
297
|
-
#######################################
|
298
|
-
def OnMarginClick(self, std, extra):
|
299
|
-
notify = self.SCIUnpackNotifyMessage(extra)
|
300
|
-
if notify.margin == 2: # Our fold margin
|
301
|
-
line_click = self.LineFromChar(notify.position)
|
302
|
-
# max_line = self.GetLineCount()
|
303
|
-
if self.SCIGetFoldLevel(line_click) & scintillacon.SC_FOLDLEVELHEADERFLAG:
|
304
|
-
# If a fold point.
|
305
|
-
self.SCIToggleFold(line_click)
|
306
|
-
return 1
|
307
|
-
|
308
|
-
def OnSetFocus(self, msg):
|
309
|
-
# Even though we use file change notifications, we should be very sure about it here.
|
310
|
-
self.OnCheckExternalDocumentUpdated(msg)
|
311
|
-
return 1
|
312
|
-
|
313
|
-
def OnCheckExternalDocumentUpdated(self, msg):
|
314
|
-
if self.bCheckingFile:
|
315
|
-
return
|
316
|
-
self.bCheckingFile = 1
|
317
|
-
self.GetDocument().CheckExternalDocumentUpdated()
|
318
|
-
self.bCheckingFile = 0
|
319
|
-
|
320
|
-
def OnRClick(self, params):
|
321
|
-
menu = win32ui.CreatePopupMenu()
|
322
|
-
self.AppendMenu(menu, "&Locate module", "LocateModule")
|
323
|
-
self.AppendMenu(menu, flags=win32con.MF_SEPARATOR)
|
324
|
-
self.AppendMenu(menu, "&Undo", "EditUndo")
|
325
|
-
self.AppendMenu(menu, "&Redo", "EditRedo")
|
326
|
-
self.AppendMenu(menu, flags=win32con.MF_SEPARATOR)
|
327
|
-
self.AppendMenu(menu, "Cu&t", "EditCut")
|
328
|
-
self.AppendMenu(menu, "&Copy", "EditCopy")
|
329
|
-
self.AppendMenu(menu, "&Paste", "EditPaste")
|
330
|
-
self.AppendMenu(menu, flags=win32con.MF_SEPARATOR)
|
331
|
-
self.AppendMenu(menu, "&Select all", "EditSelectAll")
|
332
|
-
self.AppendMenu(
|
333
|
-
menu, "View &Whitespace", "ViewWhitespace", checked=self.SCIGetViewWS()
|
334
|
-
)
|
335
|
-
self.AppendMenu(
|
336
|
-
menu, "&Fixed Font", "ViewFixedFont", checked=self._GetColorizer().bUseFixed
|
337
|
-
)
|
338
|
-
self.AppendMenu(menu, flags=win32con.MF_SEPARATOR)
|
339
|
-
self.AppendMenu(menu, "&Goto line...", "GotoLine")
|
340
|
-
|
341
|
-
submenu = win32ui.CreatePopupMenu()
|
342
|
-
newitems = self.idle.GetMenuItems("edit")
|
343
|
-
for text, event in newitems:
|
344
|
-
self.AppendMenu(submenu, text, event)
|
345
|
-
|
346
|
-
flags = win32con.MF_STRING | win32con.MF_ENABLED | win32con.MF_POPUP
|
347
|
-
menu.AppendMenu(flags, submenu.GetHandle(), "&Source code")
|
348
|
-
|
349
|
-
flags = (
|
350
|
-
win32con.TPM_LEFTALIGN | win32con.TPM_LEFTBUTTON | win32con.TPM_RIGHTBUTTON
|
351
|
-
)
|
352
|
-
menu.TrackPopupMenu(params[5], flags, self)
|
353
|
-
return 0
|
354
|
-
|
355
|
-
def OnCmdViewFold(self, cid, code): # Handle the menu command
|
356
|
-
if cid == win32ui.ID_VIEW_FOLD_EXPAND_ALL:
|
357
|
-
self.FoldExpandAllEvent(None)
|
358
|
-
elif cid == win32ui.ID_VIEW_FOLD_EXPAND:
|
359
|
-
self.FoldExpandEvent(None)
|
360
|
-
elif cid == win32ui.ID_VIEW_FOLD_COLLAPSE_ALL:
|
361
|
-
self.FoldCollapseAllEvent(None)
|
362
|
-
elif cid == win32ui.ID_VIEW_FOLD_COLLAPSE:
|
363
|
-
self.FoldCollapseEvent(None)
|
364
|
-
else:
|
365
|
-
print("Unknown collapse/expand ID")
|
366
|
-
|
367
|
-
def OnUpdateViewFold(self, cmdui): # Update the tick on the UI.
|
368
|
-
if not self.bFolding:
|
369
|
-
cmdui.Enable(0)
|
370
|
-
return
|
371
|
-
id = cmdui.m_nID
|
372
|
-
if id in (win32ui.ID_VIEW_FOLD_EXPAND_ALL, win32ui.ID_VIEW_FOLD_COLLAPSE_ALL):
|
373
|
-
cmdui.Enable()
|
374
|
-
else:
|
375
|
-
enable = 0
|
376
|
-
lineno = self.LineFromChar(self.GetSel()[0])
|
377
|
-
foldable = (
|
378
|
-
self.SCIGetFoldLevel(lineno) & scintillacon.SC_FOLDLEVELHEADERFLAG
|
379
|
-
)
|
380
|
-
is_expanded = self.SCIGetFoldExpanded(lineno)
|
381
|
-
if id == win32ui.ID_VIEW_FOLD_EXPAND:
|
382
|
-
if foldable and not is_expanded:
|
383
|
-
enable = 1
|
384
|
-
elif id == win32ui.ID_VIEW_FOLD_COLLAPSE:
|
385
|
-
if foldable and is_expanded:
|
386
|
-
enable = 1
|
387
|
-
cmdui.Enable(enable)
|
388
|
-
|
389
|
-
def OnCmdViewFoldTopLevel(self, cid, code): # Handle the menu command
|
390
|
-
self.FoldTopLevelEvent(None)
|
391
|
-
|
392
|
-
#######################################
|
393
|
-
# The Events
|
394
|
-
#######################################
|
395
|
-
def ToggleBookmarkEvent(self, event, pos=-1):
|
396
|
-
"""Toggle a bookmark at the specified or current position"""
|
397
|
-
if pos == -1:
|
398
|
-
pos, end = self.GetSel()
|
399
|
-
startLine = self.LineFromChar(pos)
|
400
|
-
self.GetDocument().MarkerToggle(startLine + 1, MARKER_BOOKMARK)
|
401
|
-
return 0
|
402
|
-
|
403
|
-
def GotoNextBookmarkEvent(self, event, fromPos=-1):
|
404
|
-
"""Move to the next bookmark"""
|
405
|
-
if fromPos == -1:
|
406
|
-
fromPos, end = self.GetSel()
|
407
|
-
startLine = self.LineFromChar(fromPos) + 1 # Zero based line to start
|
408
|
-
nextLine = self.GetDocument().MarkerGetNext(startLine + 1, MARKER_BOOKMARK) - 1
|
409
|
-
if nextLine < 0:
|
410
|
-
nextLine = self.GetDocument().MarkerGetNext(0, MARKER_BOOKMARK) - 1
|
411
|
-
if nextLine < 0 or nextLine == startLine - 1:
|
412
|
-
win32api.MessageBeep()
|
413
|
-
else:
|
414
|
-
self.SCIEnsureVisible(nextLine)
|
415
|
-
self.SCIGotoLine(nextLine)
|
416
|
-
return 0
|
417
|
-
|
418
|
-
def TabKeyEvent(self, event):
|
419
|
-
"""Insert an indent. If no selection, a single indent, otherwise a block indent"""
|
420
|
-
# Handle auto-complete first.
|
421
|
-
if self.SCIAutoCActive():
|
422
|
-
self.SCIAutoCComplete()
|
423
|
-
return 0
|
424
|
-
# Call the IDLE event.
|
425
|
-
return self.bindings.fire("<<smart-indent>>", event)
|
426
|
-
|
427
|
-
def EnterKeyEvent(self, event):
|
428
|
-
"""Handle the enter key with special handling for auto-complete"""
|
429
|
-
# Handle auto-complete first.
|
430
|
-
if self.SCIAutoCActive():
|
431
|
-
self.SCIAutoCComplete()
|
432
|
-
self.SCIAutoCCancel()
|
433
|
-
# Call the IDLE event.
|
434
|
-
return self.bindings.fire("<<newline-and-indent>>", event)
|
435
|
-
|
436
|
-
def ShowInteractiveWindowEvent(self, event):
|
437
|
-
import pywin.framework.interact
|
438
|
-
|
439
|
-
pywin.framework.interact.ShowInteractiveWindow()
|
440
|
-
|
441
|
-
def FoldTopLevelEvent(self, event=None):
|
442
|
-
if not self.bFolding:
|
443
|
-
return 1
|
444
|
-
|
445
|
-
win32ui.DoWaitCursor(1)
|
446
|
-
try:
|
447
|
-
self.Colorize()
|
448
|
-
maxLine = self.GetLineCount()
|
449
|
-
# Find the first line, and check out its state.
|
450
|
-
for lineSeek in range(maxLine):
|
451
|
-
if self.SCIGetFoldLevel(lineSeek) & scintillacon.SC_FOLDLEVELHEADERFLAG:
|
452
|
-
expanding = not self.SCIGetFoldExpanded(lineSeek)
|
453
|
-
break
|
454
|
-
else:
|
455
|
-
# no folds here!
|
456
|
-
return
|
457
|
-
for lineSeek in range(lineSeek, maxLine):
|
458
|
-
level = self.SCIGetFoldLevel(lineSeek)
|
459
|
-
level_no = (
|
460
|
-
level
|
461
|
-
& scintillacon.SC_FOLDLEVELNUMBERMASK
|
462
|
-
- scintillacon.SC_FOLDLEVELBASE
|
463
|
-
)
|
464
|
-
is_header = level & scintillacon.SC_FOLDLEVELHEADERFLAG
|
465
|
-
# print(lineSeek, level_no, is_header)
|
466
|
-
if level_no == 0 and is_header:
|
467
|
-
if (expanding and not self.SCIGetFoldExpanded(lineSeek)) or (
|
468
|
-
not expanding and self.SCIGetFoldExpanded(lineSeek)
|
469
|
-
):
|
470
|
-
self.SCIToggleFold(lineSeek)
|
471
|
-
finally:
|
472
|
-
win32ui.DoWaitCursor(-1)
|
473
|
-
|
474
|
-
def FoldExpandSecondLevelEvent(self, event):
|
475
|
-
if not self.bFolding:
|
476
|
-
return 1
|
477
|
-
win32ui.DoWaitCursor(1)
|
478
|
-
## I think this is needed since Scintilla may not have
|
479
|
-
## already formatted parts of file outside visible window.
|
480
|
-
self.Colorize()
|
481
|
-
levels = [scintillacon.SC_FOLDLEVELBASE]
|
482
|
-
## Scintilla's level number is based on amount of whitespace indentation
|
483
|
-
for lineno in range(self.GetLineCount()):
|
484
|
-
level = self.SCIGetFoldLevel(lineno)
|
485
|
-
if not level & scintillacon.SC_FOLDLEVELHEADERFLAG:
|
486
|
-
continue
|
487
|
-
curr_level = level & scintillacon.SC_FOLDLEVELNUMBERMASK
|
488
|
-
if curr_level > levels[-1]:
|
489
|
-
levels.append(curr_level)
|
490
|
-
try:
|
491
|
-
level_ind = levels.index(curr_level)
|
492
|
-
except ValueError:
|
493
|
-
## probably syntax error in source file, bail
|
494
|
-
break
|
495
|
-
levels = levels[: level_ind + 1]
|
496
|
-
if level_ind == 1 and not self.SCIGetFoldExpanded(lineno):
|
497
|
-
self.SCIToggleFold(lineno)
|
498
|
-
win32ui.DoWaitCursor(-1)
|
499
|
-
|
500
|
-
def FoldCollapseSecondLevelEvent(self, event):
|
501
|
-
if not self.bFolding:
|
502
|
-
return 1
|
503
|
-
win32ui.DoWaitCursor(1)
|
504
|
-
## I think this is needed since Scintilla may not have
|
505
|
-
## already formatted parts of file outside visible window.
|
506
|
-
self.Colorize()
|
507
|
-
levels = [scintillacon.SC_FOLDLEVELBASE]
|
508
|
-
## Scintilla's level number is based on amount of whitespace indentation
|
509
|
-
for lineno in range(self.GetLineCount()):
|
510
|
-
level = self.SCIGetFoldLevel(lineno)
|
511
|
-
if not level & scintillacon.SC_FOLDLEVELHEADERFLAG:
|
512
|
-
continue
|
513
|
-
curr_level = level & scintillacon.SC_FOLDLEVELNUMBERMASK
|
514
|
-
if curr_level > levels[-1]:
|
515
|
-
levels.append(curr_level)
|
516
|
-
try:
|
517
|
-
level_ind = levels.index(curr_level)
|
518
|
-
except ValueError:
|
519
|
-
## probably syntax error in source file, bail
|
520
|
-
break
|
521
|
-
levels = levels[: level_ind + 1]
|
522
|
-
if level_ind == 1 and self.SCIGetFoldExpanded(lineno):
|
523
|
-
self.SCIToggleFold(lineno)
|
524
|
-
win32ui.DoWaitCursor(-1)
|
525
|
-
|
526
|
-
def FoldExpandEvent(self, event):
|
527
|
-
if not self.bFolding:
|
528
|
-
return 1
|
529
|
-
win32ui.DoWaitCursor(1)
|
530
|
-
lineno = self.LineFromChar(self.GetSel()[0])
|
531
|
-
if self.SCIGetFoldLevel(
|
532
|
-
lineno
|
533
|
-
) & scintillacon.SC_FOLDLEVELHEADERFLAG and not self.SCIGetFoldExpanded(lineno):
|
534
|
-
self.SCIToggleFold(lineno)
|
535
|
-
win32ui.DoWaitCursor(-1)
|
536
|
-
|
537
|
-
def FoldExpandAllEvent(self, event):
|
538
|
-
if not self.bFolding:
|
539
|
-
return 1
|
540
|
-
win32ui.DoWaitCursor(1)
|
541
|
-
for lineno in range(0, self.GetLineCount()):
|
542
|
-
if self.SCIGetFoldLevel(
|
543
|
-
lineno
|
544
|
-
) & scintillacon.SC_FOLDLEVELHEADERFLAG and not self.SCIGetFoldExpanded(
|
545
|
-
lineno
|
546
|
-
):
|
547
|
-
self.SCIToggleFold(lineno)
|
548
|
-
win32ui.DoWaitCursor(-1)
|
549
|
-
|
550
|
-
def FoldCollapseEvent(self, event):
|
551
|
-
if not self.bFolding:
|
552
|
-
return 1
|
553
|
-
win32ui.DoWaitCursor(1)
|
554
|
-
lineno = self.LineFromChar(self.GetSel()[0])
|
555
|
-
if self.SCIGetFoldLevel(
|
556
|
-
lineno
|
557
|
-
) & scintillacon.SC_FOLDLEVELHEADERFLAG and self.SCIGetFoldExpanded(lineno):
|
558
|
-
self.SCIToggleFold(lineno)
|
559
|
-
win32ui.DoWaitCursor(-1)
|
560
|
-
|
561
|
-
def FoldCollapseAllEvent(self, event):
|
562
|
-
if not self.bFolding:
|
563
|
-
return 1
|
564
|
-
win32ui.DoWaitCursor(1)
|
565
|
-
self.Colorize()
|
566
|
-
for lineno in range(0, self.GetLineCount()):
|
567
|
-
if self.SCIGetFoldLevel(
|
568
|
-
lineno
|
569
|
-
) & scintillacon.SC_FOLDLEVELHEADERFLAG and self.SCIGetFoldExpanded(lineno):
|
570
|
-
self.SCIToggleFold(lineno)
|
571
|
-
win32ui.DoWaitCursor(-1)
|
572
|
-
|
573
|
-
|
574
|
-
class SplitterFrame(EditorFrame):
|
575
|
-
def OnCreate(self, cs):
|
576
|
-
self.HookCommand(self.OnWindowSplit, win32ui.ID_WINDOW_SPLIT)
|
577
|
-
return 1
|
578
|
-
|
579
|
-
def OnWindowSplit(self, id, code):
|
580
|
-
self.GetDlgItem(win32ui.AFX_IDW_PANE_FIRST).DoKeyboardSplit()
|
581
|
-
return 1
|
582
|
-
|
583
|
-
|
584
|
-
class SyntEditTemplate(EditorTemplateBase):
|
585
|
-
def __init__(
|
586
|
-
self, res=win32ui.IDR_TEXTTYPE, makeDoc=None, makeFrame=None, makeView=None
|
587
|
-
):
|
588
|
-
if makeDoc is None:
|
589
|
-
makeDoc = SyntEditDocument
|
590
|
-
if makeView is None:
|
591
|
-
makeView = SyntEditView
|
592
|
-
if makeFrame is None:
|
593
|
-
makeFrame = SplitterFrame
|
594
|
-
self.bSetMenus = 0
|
595
|
-
EditorTemplateBase.__init__(self, res, makeDoc, makeFrame, makeView)
|
596
|
-
|
597
|
-
def CheckIDLEMenus(self, idle):
|
598
|
-
if self.bSetMenus:
|
599
|
-
return
|
600
|
-
self.bSetMenus = 1
|
601
|
-
|
602
|
-
submenu = win32ui.CreatePopupMenu()
|
603
|
-
newitems = idle.GetMenuItems("edit")
|
604
|
-
flags = win32con.MF_STRING | win32con.MF_ENABLED
|
605
|
-
for text, event in newitems:
|
606
|
-
id = bindings.event_to_commands.get(event)
|
607
|
-
if id is not None:
|
608
|
-
keyname = pywin.scintilla.view.configManager.get_key_binding(
|
609
|
-
event, ["editor"]
|
610
|
-
)
|
611
|
-
if keyname is not None:
|
612
|
-
text += "\t" + keyname
|
613
|
-
submenu.AppendMenu(flags, id, text)
|
614
|
-
|
615
|
-
mainMenu = self.GetSharedMenu()
|
616
|
-
editMenu = mainMenu.GetSubMenu(1)
|
617
|
-
editMenu.AppendMenu(win32con.MF_SEPARATOR, 0, "")
|
618
|
-
editMenu.AppendMenu(
|
619
|
-
win32con.MF_STRING | win32con.MF_POPUP | win32con.MF_ENABLED,
|
620
|
-
submenu.GetHandle(),
|
621
|
-
"&Source Code",
|
622
|
-
)
|
623
|
-
|
624
|
-
def _CreateDocTemplate(self, resourceId):
|
625
|
-
return win32ui.CreateDocTemplate(resourceId)
|
626
|
-
|
627
|
-
def CreateWin32uiDocument(self):
|
628
|
-
return self.DoCreateDoc()
|
629
|
-
|
630
|
-
def GetPythonPropertyPages(self):
|
631
|
-
"""Returns a list of property pages"""
|
632
|
-
from pywin.scintilla import configui
|
633
|
-
|
634
|
-
return EditorTemplateBase.GetPythonPropertyPages(self) + [
|
635
|
-
configui.ScintillaFormatPropertyPage()
|
636
|
-
]
|
637
|
-
|
638
|
-
|
639
|
-
# For debugging purposes, when this module may be reloaded many times.
|
640
|
-
try:
|
641
|
-
win32ui.GetApp().RemoveDocTemplate(editorTemplate) # type: ignore[has-type, used-before-def]
|
642
|
-
except NameError:
|
643
|
-
pass
|
644
|
-
|
645
|
-
editorTemplate = SyntEditTemplate()
|
646
|
-
win32ui.GetApp().AddDocTemplate(editorTemplate)
|