py2docfx 0.1.13.dev2016723__py3-none-any.whl → 0.1.13.dev2021865__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/venv/basevenv/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +22 -26
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +21 -73
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +11 -17
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +8 -11
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +14 -41
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +57 -12
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +7 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +11 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +19 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +5 -7
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +13 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +1 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +4 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +1178 -78
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +17 -21
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +6 -18
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +8 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +6 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +17 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +32 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +8 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +2 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +14 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +16 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +10 -11
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +304 -121
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +4926 -604
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +194 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +733 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +4 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +13 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +12 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +16 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +24 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +23 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +19 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +3 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +97 -65
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +24 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +17 -33
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +14 -14
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +30 -12
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +50 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +48 -56
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +2 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +9 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +20 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +4 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +5 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +2 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +40 -57
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +143 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +1 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -20
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +2 -8
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +16 -12
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +7 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +2 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +5 -10
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -1
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +77 -122
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +4 -9
- {py2docfx-0.1.13.dev2016723.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/METADATA +1 -1
- {py2docfx-0.1.13.dev2016723.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/RECORD +342 -330
- py2docfx/venv/venv1/Lib/site-packages/docs/conf.py +0 -384
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/mdi_pychecker.py +0 -850
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testNetscape.py +0 -24
- {py2docfx-0.1.13.dev2016723.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.13.dev2016723.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/top_level.txt +0 -0
@@ -2,11 +2,55 @@
|
|
2
2
|
|
3
3
|
import sys
|
4
4
|
|
5
|
-
from pywin.mfc import docview
|
6
|
-
|
7
5
|
try:
|
8
|
-
from OpenGL.GL import
|
9
|
-
|
6
|
+
from OpenGL.GL import (
|
7
|
+
GL_COLOR_BUFFER_BIT,
|
8
|
+
GL_DEPTH_BUFFER_BIT,
|
9
|
+
GL_DEPTH_TEST,
|
10
|
+
GL_MODELVIEW,
|
11
|
+
GL_PROJECTION,
|
12
|
+
GL_QUAD_STRIP,
|
13
|
+
GL_QUADS,
|
14
|
+
GL_TRIANGLE_FAN,
|
15
|
+
glBegin,
|
16
|
+
glClear,
|
17
|
+
glClearColor,
|
18
|
+
glClearDepth,
|
19
|
+
glColor3f,
|
20
|
+
glEnable,
|
21
|
+
glEnd,
|
22
|
+
glFinish,
|
23
|
+
glLoadIdentity,
|
24
|
+
glMatrixMode,
|
25
|
+
glPopMatrix,
|
26
|
+
glPushMatrix,
|
27
|
+
glRotatef,
|
28
|
+
glTranslatef,
|
29
|
+
glVertex3f,
|
30
|
+
glViewport,
|
31
|
+
)
|
32
|
+
from OpenGL.GLU import (
|
33
|
+
GLU_FILL,
|
34
|
+
GLU_SMOOTH,
|
35
|
+
gluCylinder,
|
36
|
+
gluNewQuadric,
|
37
|
+
gluPerspective,
|
38
|
+
gluQuadricDrawStyle,
|
39
|
+
gluQuadricNormals,
|
40
|
+
)
|
41
|
+
from OpenGL.WGL import (
|
42
|
+
PIXELFORMATDESCRIPTOR,
|
43
|
+
ChoosePixelFormat,
|
44
|
+
DescribePixelFormat,
|
45
|
+
GetPixelFormat,
|
46
|
+
SetPixelFormat,
|
47
|
+
SwapBuffers,
|
48
|
+
wglCreateContext,
|
49
|
+
wglDeleteContext,
|
50
|
+
wglGetCurrentContext,
|
51
|
+
wglGetCurrentDC,
|
52
|
+
wglMakeCurrent,
|
53
|
+
)
|
10
54
|
except ImportError:
|
11
55
|
print("The OpenGL extensions do not appear to be installed.")
|
12
56
|
print("This Pythonwin demo can not run")
|
@@ -16,6 +60,7 @@ import timer
|
|
16
60
|
import win32api
|
17
61
|
import win32con
|
18
62
|
import win32ui
|
63
|
+
from pywin.mfc import docview
|
19
64
|
|
20
65
|
PFD_TYPE_RGBA = 0
|
21
66
|
PFD_TYPE_COLORINDEX = 1
|
@@ -117,7 +162,7 @@ class OpenGLView(OpenGLViewParent):
|
|
117
162
|
# The OpenGL helpers
|
118
163
|
def _SetupPixelFormat(self):
|
119
164
|
dc = self.dc.GetSafeHdc()
|
120
|
-
pfd =
|
165
|
+
pfd = PIXELFORMATDESCRIPTOR()
|
121
166
|
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER
|
122
167
|
pfd.iPixelType = PFD_TYPE_RGBA
|
123
168
|
pfd.cColorBits = 24
|
@@ -125,16 +170,16 @@ class OpenGLView(OpenGLViewParent):
|
|
125
170
|
pfd.iLayerType = PFD_MAIN_PLANE
|
126
171
|
pixelformat = ChoosePixelFormat(dc, pfd)
|
127
172
|
SetPixelFormat(dc, pixelformat, pfd)
|
128
|
-
self._CreateRGBPalette()
|
173
|
+
self._CreateRGBPalette(pfd)
|
129
174
|
|
130
|
-
def _CreateRGBPalette(self):
|
131
|
-
|
132
|
-
|
133
|
-
|
175
|
+
def _CreateRGBPalette(self, pfd):
|
176
|
+
hdc = self.dc.GetSafeHdc()
|
177
|
+
iPixelFormat = GetPixelFormat(hdc)
|
178
|
+
DescribePixelFormat(hdc, iPixelFormat, pfd.nSize, pfd)
|
134
179
|
if pfd.dwFlags & PFD_NEED_PALETTE:
|
135
|
-
|
180
|
+
iPixelFormat = 1 << pfd.cColorBits
|
136
181
|
pal = []
|
137
|
-
for i in range(
|
182
|
+
for i in range(iPixelFormat):
|
138
183
|
this = (
|
139
184
|
ComponentFromIndex(i, pfd.cRedBits, pfd.cRedShift),
|
140
185
|
ComponentFromIndex(i, pfd.cGreenBits, pfd.cGreenShift),
|
@@ -19,7 +19,7 @@ class DebuggerOptionsPropPage(dialog.PropertyPage):
|
|
19
19
|
def OnOK(self):
|
20
20
|
self.UpdateData()
|
21
21
|
dirty = 0
|
22
|
-
for key, val in
|
22
|
+
for key, val in self.items():
|
23
23
|
if key in self.options:
|
24
24
|
if self.options[key] != val:
|
25
25
|
self.options[key] = val
|
@@ -389,7 +389,7 @@ class DebuggerBreakpointsWindow(DebuggerListViewWindow):
|
|
389
389
|
item_id = self.GetItem(num)[6]
|
390
390
|
from bdb import Breakpoint
|
391
391
|
|
392
|
-
for bplist in
|
392
|
+
for bplist in Breakpoint.bplist.values():
|
393
393
|
for bp in bplist:
|
394
394
|
if id(bp) == item_id:
|
395
395
|
self.debugger.clear_break(bp.file, bp.line)
|
@@ -869,15 +869,14 @@ class Debugger(debugger_parent):
|
|
869
869
|
elif state == DBGSTATE_RUNNING: # Code is running under the debugger.
|
870
870
|
title = " - running"
|
871
871
|
elif state == DBGSTATE_BREAK: # We are at a breakpoint or stepping or whatever.
|
872
|
-
if self.bAtException:
|
873
|
-
if self.bAtPostMortem:
|
874
|
-
title = " - post mortem exception"
|
875
|
-
else:
|
876
|
-
title = " - exception"
|
877
|
-
else:
|
872
|
+
if not self.bAtException:
|
878
873
|
title = " - break"
|
874
|
+
elif self.bAtPostMortem:
|
875
|
+
title = " - post mortem exception"
|
876
|
+
else:
|
877
|
+
title = " - exception"
|
879
878
|
else:
|
880
|
-
raise
|
879
|
+
raise ValueError("Invalid debugger state passed!")
|
881
880
|
win32ui.GetMainFrame().SetWindowText(
|
882
881
|
win32ui.LoadString(win32ui.IDR_MAINFRAME) + title
|
883
882
|
)
|
@@ -28,7 +28,7 @@ def b():
|
|
28
28
|
b = 1
|
29
29
|
pywin.debugger.set_trace()
|
30
30
|
# After importing or running this module, you are likely to be
|
31
|
-
# sitting at the next line. This is because we
|
31
|
+
# sitting at the next line. This is because we explicitly
|
32
32
|
# broke into the debugger using the "set_trace() function
|
33
33
|
# "pywin.debugger.brk()" is a shorter alias for this.
|
34
34
|
c()
|
@@ -114,26 +114,23 @@ class OptionsPropPage(dialog.PropertyPage):
|
|
114
114
|
def OnFormatTitle(self, command, code):
|
115
115
|
fmt = self.GetFormat(interact.formatTitle)
|
116
116
|
if fmt:
|
117
|
-
formatTitle = fmt
|
117
|
+
interact.formatTitle = fmt
|
118
118
|
interact.SaveFontPreferences()
|
119
119
|
|
120
120
|
def OnFormatInput(self, command, code):
|
121
|
-
|
122
|
-
fmt = self.GetFormat(formatInput)
|
121
|
+
fmt = self.GetFormat(interact.formatInput)
|
123
122
|
if fmt:
|
124
|
-
formatInput = fmt
|
123
|
+
interact.formatInput = fmt
|
125
124
|
interact.SaveFontPreferences()
|
126
125
|
|
127
126
|
def OnFormatOutput(self, command, code):
|
128
|
-
|
129
|
-
fmt = self.GetFormat(formatOutput)
|
127
|
+
fmt = self.GetFormat(interact.formatOutput)
|
130
128
|
if fmt:
|
131
|
-
formatOutput = fmt
|
129
|
+
interact.formatOutput = fmt
|
132
130
|
interact.SaveFontPreferences()
|
133
131
|
|
134
132
|
def OnFormatError(self, command, code):
|
135
|
-
|
136
|
-
fmt = self.GetFormat(formatOutputError)
|
133
|
+
fmt = self.GetFormat(interact.formatOutputError)
|
137
134
|
if fmt:
|
138
|
-
formatOutputError = fmt
|
135
|
+
interact.formatOutputError = fmt
|
139
136
|
interact.SaveFontPreferences()
|
@@ -44,14 +44,17 @@ class ListDialog(dialog.Dialog):
|
|
44
44
|
return 1
|
45
45
|
|
46
46
|
def OnListItemChange(self, std, extra):
|
47
|
-
(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
47
|
+
(
|
48
|
+
(hwndFrom, idFrom, code),
|
49
|
+
(
|
50
|
+
itemNotify,
|
51
|
+
sub,
|
52
|
+
newState,
|
53
|
+
oldState,
|
54
|
+
change,
|
55
|
+
point,
|
56
|
+
lparam,
|
57
|
+
),
|
55
58
|
) = (std, extra)
|
56
59
|
oldSel = (oldState & commctrl.LVIS_SELECTED) != 0
|
57
60
|
newSel = (newState & commctrl.LVIS_SELECTED) != 0
|
@@ -2,10 +2,16 @@
|
|
2
2
|
# The application is responsible for managing the main frame window.
|
3
3
|
#
|
4
4
|
# We also grab the FileOpen command, to invoke our Python editor
|
5
|
-
"
|
5
|
+
"The PythonWin application code. Manages most aspects of MDI, etc"
|
6
|
+
|
7
|
+
from __future__ import annotations
|
8
|
+
|
9
|
+
import builtins
|
6
10
|
import os
|
7
11
|
import sys
|
8
12
|
import traceback
|
13
|
+
import warnings
|
14
|
+
from typing import TYPE_CHECKING
|
9
15
|
|
10
16
|
import regutil
|
11
17
|
import win32api
|
@@ -16,6 +22,9 @@ from pywin.mfc.thread import WinApp
|
|
16
22
|
|
17
23
|
from . import scriptutils
|
18
24
|
|
25
|
+
if TYPE_CHECKING:
|
26
|
+
from typing_extensions import Literal
|
27
|
+
|
19
28
|
|
20
29
|
# Helper for writing a Window position by name, and later loading it.
|
21
30
|
def SaveWindowSize(section, rect, state=""):
|
@@ -61,7 +70,7 @@ class MainFrame(window.MDIFrameWnd):
|
|
61
70
|
win32ui.ID_INDICATOR_COLNUM,
|
62
71
|
)
|
63
72
|
|
64
|
-
def OnCreate(self, cs):
|
73
|
+
def OnCreate(self, cs) -> Literal[-1, 0, 1]:
|
65
74
|
self._CreateStatusBar()
|
66
75
|
return 0
|
67
76
|
|
@@ -164,7 +173,7 @@ class CApp(WinApp):
|
|
164
173
|
try:
|
165
174
|
thisRet = handler(handler, count)
|
166
175
|
except:
|
167
|
-
print("Idle handler
|
176
|
+
print(f"Idle handler {handler!r} failed")
|
168
177
|
traceback.print_exc()
|
169
178
|
print("Idle handler removed from list")
|
170
179
|
try:
|
@@ -323,7 +332,7 @@ def _GetRegistryValue(key, val, default=None):
|
|
323
332
|
return default
|
324
333
|
|
325
334
|
|
326
|
-
scintilla = "Scintilla is Copyright 1998-
|
335
|
+
scintilla = "Scintilla is Copyright 1998-2020 Neil Hodgson (https://www.scintilla.org)"
|
327
336
|
idle = "This program uses IDLE extensions by Guido van Rossum, Tim Peters and others."
|
328
337
|
contributors = "Thanks to the following people for making significant contributions: Roger Upole, Sidnei da Silva, Sam Rushing, Curt Hagenlocher, Dave Brennan, Roger Burnham, Gordon McMillan, Neil Hodgson, Laramie Leavitt. (let me know if I have forgotten you!)"
|
329
338
|
|
@@ -338,27 +347,17 @@ class AboutBox(dialog.Dialog):
|
|
338
347
|
win32ui.copyright, sys.copyright, scintilla, idle, contributors
|
339
348
|
)
|
340
349
|
self.SetDlgItemText(win32ui.IDC_EDIT1, text)
|
341
|
-
# Get the build number - written by installers.
|
342
|
-
# For distutils build, read pywin32.version.txt
|
343
350
|
import sysconfig
|
344
351
|
|
345
352
|
site_packages = sysconfig.get_paths()["platlib"]
|
353
|
+
version_path = os.path.join(site_packages, "pywin32.version.txt")
|
346
354
|
try:
|
347
|
-
|
348
|
-
|
349
|
-
)
|
350
|
-
ver = "pywin32 build %s" % build_no
|
355
|
+
with open(version_path) as f:
|
356
|
+
ver = "pywin32 build %s" % f.read().strip()
|
351
357
|
except OSError:
|
352
358
|
ver = None
|
353
|
-
if ver
|
354
|
-
|
355
|
-
ver = _GetRegistryValue(
|
356
|
-
"SOFTWARE\\ActiveState\\ActivePython", "CurrentVersion"
|
357
|
-
)
|
358
|
-
if ver is not None:
|
359
|
-
ver = f"ActivePython build {ver}"
|
360
|
-
if ver is None:
|
361
|
-
ver = ""
|
359
|
+
if not ver:
|
360
|
+
warnings.warn(f"Could not read pywin32's version from '{version_path}'")
|
362
361
|
self.SetDlgItemText(win32ui.IDC_ABOUT_VERSION, ver)
|
363
362
|
self.HookCommand(self.OnButHomePage, win32ui.IDC_BUTTON1)
|
364
363
|
|
@@ -386,9 +385,7 @@ def Win32Input(prompt=None):
|
|
386
385
|
|
387
386
|
|
388
387
|
def HookInput():
|
389
|
-
|
390
|
-
|
391
|
-
sys.modules["builtins"].input = Win32Input
|
388
|
+
builtins.input = Win32Input
|
392
389
|
|
393
390
|
|
394
391
|
def HaveGoodGUI():
|
@@ -37,7 +37,7 @@ class DebuggerCommandHandler:
|
|
37
37
|
if not methUpdate is None:
|
38
38
|
frame.HookCommandUpdate(methUpdate, id)
|
39
39
|
|
40
|
-
for id in
|
40
|
+
for id in IdToBarNames:
|
41
41
|
frame.HookCommand(self.OnDebuggerBar, id)
|
42
42
|
frame.HookCommandUpdate(self.OnUpdateDebuggerBar, id)
|
43
43
|
|
@@ -171,8 +171,7 @@ class DebuggerCommandHandler:
|
|
171
171
|
cmdui.Enable(d is None or len(d.breaks) != 0)
|
172
172
|
|
173
173
|
def OnUpdateDebuggerBar(self, cmdui):
|
174
|
-
name,
|
175
|
-
enabled = always
|
174
|
+
name, enabled = IdToBarNames.get(cmdui.m_nID, (None, 0))
|
176
175
|
d = self._GetDebugger()
|
177
176
|
if d is not None and d.IsDebugging() and name is not None:
|
178
177
|
enabled = 1
|
@@ -100,4 +100,6 @@ def SetEditorFontOption(option, newValue):
|
|
100
100
|
SetEditorOption(option, str(newValue))
|
101
101
|
|
102
102
|
|
103
|
-
from pywin.framework.editor.color.coloreditor import
|
103
|
+
from pywin.framework.editor.color.coloreditor import ( # nopycln: import
|
104
|
+
editorTemplate as editorTemplate, # Adds doc template & Re-export
|
105
|
+
)
|
@@ -9,7 +9,7 @@
|
|
9
9
|
# We now support reloading of externally modified documented
|
10
10
|
# (eg, presumably by some other process, such as source control or
|
11
11
|
# another editor.
|
12
|
-
# We also
|
12
|
+
# We also support auto-loading of externally modified files.
|
13
13
|
# - if the current document has not been modified in this
|
14
14
|
# editor, but has been modified on disk, then the file
|
15
15
|
# can be automatically reloaded.
|
@@ -19,7 +19,6 @@
|
|
19
19
|
|
20
20
|
import re
|
21
21
|
|
22
|
-
import regex
|
23
22
|
import win32api
|
24
23
|
import win32con
|
25
24
|
import win32ui
|
@@ -36,8 +35,8 @@ from .document import EditorDocumentBase as ParentEditorDocument
|
|
36
35
|
# from pywin.mfc.docview import EditView as ParentEditorView
|
37
36
|
# from pywin.mfc.docview import Document as ParentEditorDocument
|
38
37
|
|
39
|
-
patImport =
|
40
|
-
patIndent =
|
38
|
+
patImport = re.compile(r"import (?P<name>.*)")
|
39
|
+
patIndent = re.compile(r"^([ \t]*[~ \t])")
|
41
40
|
|
42
41
|
ID_LOCATE_FILE = 0xE200
|
43
42
|
ID_GOTO_LINE = 0xE2001
|
@@ -364,9 +363,10 @@ class EditorView(ParentEditorView):
|
|
364
363
|
# look for a module name
|
365
364
|
line = self._obj_.GetLine().strip()
|
366
365
|
flags = win32con.MF_STRING | win32con.MF_ENABLED
|
367
|
-
|
366
|
+
matchResult = patImport.match(line)
|
367
|
+
if matchResult and matchResult[0] == line:
|
368
368
|
menu.AppendMenu(
|
369
|
-
flags, ID_LOCATE_FILE, "&Locate %s.py" %
|
369
|
+
flags, ID_LOCATE_FILE, "&Locate %s.py" % matchResult.group("name")
|
370
370
|
)
|
371
371
|
menu.AppendMenu(win32con.MF_SEPARATOR)
|
372
372
|
menu.AppendMenu(flags, win32ui.ID_EDIT_UNDO, "&Undo")
|
@@ -86,7 +86,7 @@ def CheckoutFile(fileName):
|
|
86
86
|
project, vssFname, database = rc
|
87
87
|
if g_sourceSafe is None:
|
88
88
|
g_sourceSafe = win32com.client.Dispatch("SourceSafe")
|
89
|
-
# SS seems a bit
|
89
|
+
# SS seems a bit weird. It defaults the arguments as empty strings, but
|
90
90
|
# then complains when they are used - so we pass "Missing"
|
91
91
|
if not database:
|
92
92
|
database = pythoncom.Missing
|
@@ -99,6 +99,6 @@ def CheckoutFile(fileName):
|
|
99
99
|
except:
|
100
100
|
typ, val, tb = sys.exc_info()
|
101
101
|
traceback.print_exc()
|
102
|
-
win32ui.MessageBox(f"{
|
102
|
+
win32ui.MessageBox(f"{typ} - {val}", "Error checking out file")
|
103
103
|
tb = None # Cleanup a cycle
|
104
104
|
return ok
|
@@ -44,7 +44,8 @@ def OpenHelpFile(fileName, helpCmd=None, helpArg=None):
|
|
44
44
|
# XXX - using the htmlhelp API wreaks havoc with keyboard shortcuts
|
45
45
|
# so we disable it, forcing ShellExecute, which works fine (but
|
46
46
|
# doesn't close the help file when Pythonwin is closed.
|
47
|
-
# Tom Heller also points out
|
47
|
+
# Tom Heller also points out
|
48
|
+
# https://web.archive.org/web/20070519165457/http://www.microsoft.com:80/mind/0499/faq/faq0499.asp ,
|
48
49
|
# which may or may not be related.
|
49
50
|
elif 0 and ext == ".chm":
|
50
51
|
import win32help
|
@@ -14,7 +14,7 @@ import __main__
|
|
14
14
|
import pywin.framework.app
|
15
15
|
import pywin.scintilla.control
|
16
16
|
import pywin.scintilla.formatter
|
17
|
-
import pywin.scintilla.IDLEenvironment
|
17
|
+
import pywin.scintilla.IDLEenvironment # nopycln: import # Injects fast_readline into the IDLE auto-indent extension
|
18
18
|
import win32api
|
19
19
|
import win32clipboard
|
20
20
|
import win32con
|
@@ -9,7 +9,7 @@ import commctrl
|
|
9
9
|
import win32api
|
10
10
|
import win32con
|
11
11
|
import win32ui
|
12
|
-
from pywin.mfc import afxres, dialog
|
12
|
+
from pywin.mfc import afxres, dialog, docview
|
13
13
|
|
14
14
|
from . import app, dbgcommands
|
15
15
|
|
@@ -27,9 +27,7 @@ def _SetupSharedMenu_(self):
|
|
27
27
|
help.SetHelpMenuOtherHelp(sharedMenu)
|
28
28
|
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
docview.DocTemplate._SetupSharedMenu_ = _SetupSharedMenu_
|
30
|
+
docview.DocTemplate._SetupSharedMenu_ = _SetupSharedMenu_ # type: ignore[method-assign]
|
33
31
|
|
34
32
|
|
35
33
|
class MainFrame(app.MainFrame):
|
@@ -325,7 +323,7 @@ class InteractivePythonApp(app.CApp):
|
|
325
323
|
)
|
326
324
|
continue
|
327
325
|
if dde:
|
328
|
-
dde.Exec("win32ui.GetApp().OpenDocumentFile(
|
326
|
+
dde.Exec(f"win32ui.GetApp().OpenDocumentFile({fname!r})")
|
329
327
|
else:
|
330
328
|
win32ui.GetApp().OpenDocumentFile(par)
|
331
329
|
elif argType == "/rundlg":
|
@@ -373,7 +371,7 @@ class InteractivePythonApp(app.CApp):
|
|
373
371
|
def LoadUserModules(self, moduleNames=None):
|
374
372
|
# Load the users modules.
|
375
373
|
if moduleNames is None:
|
376
|
-
default = "pywin.framework.sgrepmdi
|
374
|
+
default = "pywin.framework.sgrepmdi"
|
377
375
|
moduleNames = win32ui.GetProfileVal("Python", "Startup Modules", default)
|
378
376
|
self.DoLoadModules(moduleNames)
|
379
377
|
|
@@ -467,7 +465,7 @@ class InteractivePythonApp(app.CApp):
|
|
467
465
|
else:
|
468
466
|
win32ui.GetApp().OpenDocumentFile(newName)
|
469
467
|
|
470
|
-
# Display all the "options"
|
468
|
+
# Display all the "options" property pages we can find
|
471
469
|
def OnViewOptions(self, id, code):
|
472
470
|
win32ui.InitRichEdit()
|
473
471
|
sheet = dialog.PropertySheet("Pythonwin Options")
|
@@ -8,9 +8,14 @@
|
|
8
8
|
import sys
|
9
9
|
import traceback
|
10
10
|
|
11
|
-
import win32api
|
12
11
|
import win32ui
|
13
|
-
from dde import
|
12
|
+
from dde import ( # nopycln: import # Re-exported for intpyapp.py
|
13
|
+
CBF_FAIL_SELFCONNECTIONS as CBF_FAIL_SELFCONNECTIONS, # noqa: PLC0414
|
14
|
+
CreateConversation as CreateConversation, # noqa: PLC0414
|
15
|
+
CreateServer,
|
16
|
+
CreateServerSystemTopic,
|
17
|
+
error as error, # noqa: PLC0414
|
18
|
+
)
|
14
19
|
from pywin.mfc import object
|
15
20
|
|
16
21
|
|
@@ -27,9 +27,7 @@ RS_DEBUGGER_PM = (
|
|
27
27
|
debugging_options = """No debugging
|
28
28
|
Step-through in the debugger
|
29
29
|
Run in the debugger
|
30
|
-
Post-Mortem of unhandled exceptions""".split(
|
31
|
-
"\n"
|
32
|
-
)
|
30
|
+
Post-Mortem of unhandled exceptions""".split("\n")
|
33
31
|
|
34
32
|
byte_cr = b"\r"
|
35
33
|
byte_lf = b"\n"
|
@@ -440,7 +438,7 @@ def ImportFile():
|
|
440
438
|
# note that some packages (*cough* email *cough*) use "lazy importers"
|
441
439
|
# meaning sys.modules can change as a side-effect of looking at
|
442
440
|
# module.__file__ - so we must take a copy (ie, list(items()))
|
443
|
-
for key, mod in
|
441
|
+
for key, mod in sys.modules.items():
|
444
442
|
if getattr(mod, "__file__", None):
|
445
443
|
fname = mod.__file__
|
446
444
|
base, ext = os.path.splitext(fname)
|
@@ -614,10 +612,10 @@ def _HandlePythonFailure(what, syntaxErrorPathName=None):
|
|
614
612
|
_JumpToPosition(fileName, line, col)
|
615
613
|
except (TypeError, ValueError):
|
616
614
|
msg = str(details)
|
617
|
-
win32ui.SetStatusText("Failed to
|
615
|
+
win32ui.SetStatusText(f"Failed to {what} - syntax error - {msg}")
|
618
616
|
else:
|
619
617
|
traceback.print_exc()
|
620
|
-
win32ui.SetStatusText("Failed to
|
618
|
+
win32ui.SetStatusText(f"Failed to {what} - {details}")
|
621
619
|
tb = None # Clean up a cycle.
|
622
620
|
|
623
621
|
|
@@ -94,9 +94,7 @@ class dirpath:
|
|
94
94
|
sd = sd.lower()
|
95
95
|
if sd not in dirs:
|
96
96
|
dirs[sd] = None
|
97
|
-
self.dirs =
|
98
|
-
for d in list(dirs.keys()):
|
99
|
-
self.dirs.append(d)
|
97
|
+
self.dirs = list(dirs)
|
100
98
|
|
101
99
|
def __getitem__(self, key):
|
102
100
|
return self.dirs[key]
|
@@ -129,8 +127,6 @@ class dirpath:
|
|
129
127
|
|
130
128
|
|
131
129
|
# Group(1) is the filename, group(2) is the lineno.
|
132
|
-
# regexGrepResult=regex.compile(r"^\([a-zA-Z]:.*\)(\([0-9]+\))")
|
133
|
-
|
134
130
|
regexGrep = re.compile(r"^([a-zA-Z]:[^(]*)\(([0-9]+)\)")
|
135
131
|
|
136
132
|
# these are the atom numbers defined by Windows for basic dialog controls
|
@@ -266,11 +262,11 @@ class GrepDocument(docview.RichEditDoc):
|
|
266
262
|
self.dp = dirpath(self.dirpattern, self.recurse)
|
267
263
|
self.SetTitle(f"Grep for {self.greppattern} in {self.filpattern}")
|
268
264
|
# self.text = []
|
269
|
-
self.GetFirstView().Append("#Search
|
265
|
+
self.GetFirstView().Append(f"#Search {self.dirpattern}\n")
|
270
266
|
if self.verbose:
|
271
|
-
self.GetFirstView().Append("# =
|
272
|
-
self.GetFirstView().Append("# Files
|
273
|
-
self.GetFirstView().Append("# For
|
267
|
+
self.GetFirstView().Append(f"# ={self.dp.dirs!r}\n")
|
268
|
+
self.GetFirstView().Append(f"# Files {self.filpattern}\n")
|
269
|
+
self.GetFirstView().Append(f"# For {self.greppattern}\n")
|
274
270
|
self.fplist = self.filpattern.split(";")
|
275
271
|
if self.casesensitive:
|
276
272
|
self.pat = re.compile(self.greppattern)
|
@@ -303,7 +299,7 @@ class GrepDocument(docview.RichEditDoc):
|
|
303
299
|
for i in range(len(lines)):
|
304
300
|
line = lines[i]
|
305
301
|
if self.pat.search(line) is not None:
|
306
|
-
self.GetFirstView().Append(f
|
302
|
+
self.GetFirstView().Append(f"{f} ({i + 1!r}) {line}")
|
307
303
|
else:
|
308
304
|
self.fndx = -1
|
309
305
|
self.fpndx += 1
|
@@ -329,18 +325,13 @@ class GrepDocument(docview.RichEditDoc):
|
|
329
325
|
return 1
|
330
326
|
|
331
327
|
def GetParams(self):
|
332
|
-
return (
|
333
|
-
self.dirpattern
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
+ repr(self.casesensitive)
|
340
|
-
+ "\t"
|
341
|
-
+ repr(self.recurse)
|
342
|
-
+ "\t"
|
343
|
-
+ repr(self.verbose)
|
328
|
+
return "{}\t{}\t{}\t{!r}\t{!r}\t{!r}".format(
|
329
|
+
self.dirpattern,
|
330
|
+
self.filpattern,
|
331
|
+
self.greppattern,
|
332
|
+
self.casesensitive,
|
333
|
+
self.recurse,
|
334
|
+
self.verbose,
|
344
335
|
)
|
345
336
|
|
346
337
|
def OnSaveDocument(self, filename):
|
@@ -50,7 +50,7 @@ pywin.framework.__path__ = list(pywin.framework.__path__)
|
|
50
50
|
pywin.__path__[0] = win32ui.FullPath(pywin.__path__[0])
|
51
51
|
pywin.framework.__path__[0] = win32ui.FullPath(pywin.framework.__path__[0])
|
52
52
|
|
53
|
-
# make a few
|
53
|
+
# make a few weird sys values. This is so later we can clobber sys.argv to trick
|
54
54
|
# scripts when running under a GUI environment.
|
55
55
|
|
56
56
|
moduleName = "pywin.framework.intpyapp"
|