@simplexai/localmodels-darwin-arm64 0.1.0-dev.31.build.gitb5579b4b26f273bf03468c6aedf61b327fa6c245 → 0.1.0-dev.32
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.
- package/bootstrap.identity +1 -1
- package/bootstrap.sha256 +10 -582
- package/modules/localmodels/__init__.py +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/RECORD +7 -7
- package/package.json +1 -1
- package/tool.json +1 -1
- package/python/bin/2to3 +0 -7
- package/python/bin/2to3-3.12 +0 -7
- package/python/bin/idle3 +0 -7
- package/python/bin/idle3.12 +0 -7
- package/python/bin/pip +0 -8
- package/python/bin/pip3 +0 -8
- package/python/bin/pip3.12 +0 -8
- package/python/bin/pydoc3 +0 -7
- package/python/bin/pydoc3.12 +0 -7
- package/python/bin/python +0 -0
- package/python/bin/python3 +0 -0
- package/python/bin/python3-config +0 -76
- package/python/bin/python3.12-config +0 -76
- package/python/include/python3.12/Python.h +0 -109
- package/python/include/python3.12/abstract.h +0 -899
- package/python/include/python3.12/bltinmodule.h +0 -14
- package/python/include/python3.12/boolobject.h +0 -42
- package/python/include/python3.12/bytearrayobject.h +0 -44
- package/python/include/python3.12/bytesobject.h +0 -69
- package/python/include/python3.12/ceval.h +0 -168
- package/python/include/python3.12/codecs.h +0 -248
- package/python/include/python3.12/compile.h +0 -22
- package/python/include/python3.12/complexobject.h +0 -30
- package/python/include/python3.12/cpython/abstract.h +0 -206
- package/python/include/python3.12/cpython/bytearrayobject.h +0 -34
- package/python/include/python3.12/cpython/bytesobject.h +0 -133
- package/python/include/python3.12/cpython/cellobject.h +0 -44
- package/python/include/python3.12/cpython/ceval.h +0 -35
- package/python/include/python3.12/cpython/classobject.h +0 -71
- package/python/include/python3.12/cpython/code.h +0 -389
- package/python/include/python3.12/cpython/compile.h +0 -69
- package/python/include/python3.12/cpython/complexobject.h +0 -44
- package/python/include/python3.12/cpython/context.h +0 -78
- package/python/include/python3.12/cpython/descrobject.h +0 -64
- package/python/include/python3.12/cpython/dictobject.h +0 -118
- package/python/include/python3.12/cpython/fileobject.h +0 -19
- package/python/include/python3.12/cpython/fileutils.h +0 -8
- package/python/include/python3.12/cpython/floatobject.h +0 -27
- package/python/include/python3.12/cpython/frameobject.h +0 -29
- package/python/include/python3.12/cpython/funcobject.h +0 -190
- package/python/include/python3.12/cpython/genobject.h +0 -89
- package/python/include/python3.12/cpython/import.h +0 -46
- package/python/include/python3.12/cpython/initconfig.h +0 -256
- package/python/include/python3.12/cpython/interpreteridobject.h +0 -11
- package/python/include/python3.12/cpython/listobject.h +0 -47
- package/python/include/python3.12/cpython/longintrepr.h +0 -133
- package/python/include/python3.12/cpython/longobject.h +0 -100
- package/python/include/python3.12/cpython/memoryobject.h +0 -52
- package/python/include/python3.12/cpython/methodobject.h +0 -66
- package/python/include/python3.12/cpython/modsupport.h +0 -109
- package/python/include/python3.12/cpython/object.h +0 -575
- package/python/include/python3.12/cpython/objimpl.h +0 -95
- package/python/include/python3.12/cpython/odictobject.h +0 -43
- package/python/include/python3.12/cpython/picklebufobject.h +0 -31
- package/python/include/python3.12/cpython/pthread_stubs.h +0 -88
- package/python/include/python3.12/cpython/pyctype.h +0 -39
- package/python/include/python3.12/cpython/pydebug.h +0 -38
- package/python/include/python3.12/cpython/pyerrors.h +0 -178
- package/python/include/python3.12/cpython/pyfpe.h +0 -15
- package/python/include/python3.12/cpython/pyframe.h +0 -35
- package/python/include/python3.12/cpython/pylifecycle.h +0 -111
- package/python/include/python3.12/cpython/pymem.h +0 -98
- package/python/include/python3.12/cpython/pystate.h +0 -456
- package/python/include/python3.12/cpython/pythonrun.h +0 -121
- package/python/include/python3.12/cpython/pythread.h +0 -42
- package/python/include/python3.12/cpython/pytime.h +0 -331
- package/python/include/python3.12/cpython/setobject.h +0 -72
- package/python/include/python3.12/cpython/sysmodule.h +0 -16
- package/python/include/python3.12/cpython/traceback.h +0 -16
- package/python/include/python3.12/cpython/tupleobject.h +0 -39
- package/python/include/python3.12/cpython/unicodeobject.h +0 -976
- package/python/include/python3.12/cpython/warnings.h +0 -20
- package/python/include/python3.12/cpython/weakrefobject.h +0 -56
- package/python/include/python3.12/datetime.h +0 -267
- package/python/include/python3.12/descrobject.h +0 -100
- package/python/include/python3.12/dictobject.h +0 -97
- package/python/include/python3.12/dynamic_annotations.h +0 -499
- package/python/include/python3.12/enumobject.h +0 -17
- package/python/include/python3.12/errcode.h +0 -38
- package/python/include/python3.12/exports.h +0 -36
- package/python/include/python3.12/fileobject.h +0 -49
- package/python/include/python3.12/fileutils.h +0 -26
- package/python/include/python3.12/floatobject.h +0 -54
- package/python/include/python3.12/frameobject.h +0 -20
- package/python/include/python3.12/genericaliasobject.h +0 -14
- package/python/include/python3.12/import.h +0 -98
- package/python/include/python3.12/internal/pycore_abstract.h +0 -25
- package/python/include/python3.12/internal/pycore_asdl.h +0 -112
- package/python/include/python3.12/internal/pycore_ast.h +0 -922
- package/python/include/python3.12/internal/pycore_ast_state.h +0 -265
- package/python/include/python3.12/internal/pycore_atexit.h +0 -57
- package/python/include/python3.12/internal/pycore_atomic.h +0 -557
- package/python/include/python3.12/internal/pycore_atomic_funcs.h +0 -94
- package/python/include/python3.12/internal/pycore_bitutils.h +0 -186
- package/python/include/python3.12/internal/pycore_blocks_output_buffer.h +0 -317
- package/python/include/python3.12/internal/pycore_bytes_methods.h +0 -73
- package/python/include/python3.12/internal/pycore_bytesobject.h +0 -47
- package/python/include/python3.12/internal/pycore_call.h +0 -133
- package/python/include/python3.12/internal/pycore_ceval.h +0 -164
- package/python/include/python3.12/internal/pycore_ceval_state.h +0 -103
- package/python/include/python3.12/internal/pycore_code.h +0 -496
- package/python/include/python3.12/internal/pycore_compile.h +0 -118
- package/python/include/python3.12/internal/pycore_condvar.h +0 -99
- package/python/include/python3.12/internal/pycore_context.h +0 -71
- package/python/include/python3.12/internal/pycore_descrobject.h +0 -26
- package/python/include/python3.12/internal/pycore_dict.h +0 -199
- package/python/include/python3.12/internal/pycore_dict_state.h +0 -50
- package/python/include/python3.12/internal/pycore_dtoa.h +0 -69
- package/python/include/python3.12/internal/pycore_emscripten_signal.h +0 -25
- package/python/include/python3.12/internal/pycore_exceptions.h +0 -37
- package/python/include/python3.12/internal/pycore_faulthandler.h +0 -99
- package/python/include/python3.12/internal/pycore_fileutils.h +0 -292
- package/python/include/python3.12/internal/pycore_fileutils_windows.h +0 -98
- package/python/include/python3.12/internal/pycore_floatobject.h +0 -71
- package/python/include/python3.12/internal/pycore_flowgraph.h +0 -120
- package/python/include/python3.12/internal/pycore_format.h +0 -27
- package/python/include/python3.12/internal/pycore_frame.h +0 -283
- package/python/include/python3.12/internal/pycore_function.h +0 -26
- package/python/include/python3.12/internal/pycore_gc.h +0 -211
- package/python/include/python3.12/internal/pycore_genobject.h +0 -49
- package/python/include/python3.12/internal/pycore_getopt.h +0 -22
- package/python/include/python3.12/internal/pycore_gil.h +0 -50
- package/python/include/python3.12/internal/pycore_global_objects.h +0 -105
- package/python/include/python3.12/internal/pycore_global_objects_fini_generated.h +0 -1517
- package/python/include/python3.12/internal/pycore_global_strings.h +0 -777
- package/python/include/python3.12/internal/pycore_hamt.h +0 -134
- package/python/include/python3.12/internal/pycore_hashtable.h +0 -149
- package/python/include/python3.12/internal/pycore_import.h +0 -183
- package/python/include/python3.12/internal/pycore_initconfig.h +0 -179
- package/python/include/python3.12/internal/pycore_instruments.h +0 -106
- package/python/include/python3.12/internal/pycore_interp.h +0 -275
- package/python/include/python3.12/internal/pycore_intrinsics.h +0 -32
- package/python/include/python3.12/internal/pycore_list.h +0 -83
- package/python/include/python3.12/internal/pycore_long.h +0 -258
- package/python/include/python3.12/internal/pycore_memoryobject.h +0 -18
- package/python/include/python3.12/internal/pycore_moduleobject.h +0 -45
- package/python/include/python3.12/internal/pycore_namespace.h +0 -20
- package/python/include/python3.12/internal/pycore_object.h +0 -455
- package/python/include/python3.12/internal/pycore_object_state.h +0 -42
- package/python/include/python3.12/internal/pycore_obmalloc.h +0 -700
- package/python/include/python3.12/internal/pycore_obmalloc_init.h +0 -73
- package/python/include/python3.12/internal/pycore_opcode.h +0 -587
- package/python/include/python3.12/internal/pycore_opcode_utils.h +0 -92
- package/python/include/python3.12/internal/pycore_parser.h +0 -66
- package/python/include/python3.12/internal/pycore_pathconfig.h +0 -24
- package/python/include/python3.12/internal/pycore_pyarena.h +0 -64
- package/python/include/python3.12/internal/pycore_pyerrors.h +0 -129
- package/python/include/python3.12/internal/pycore_pyhash.h +0 -40
- package/python/include/python3.12/internal/pycore_pylifecycle.h +0 -99
- package/python/include/python3.12/internal/pycore_pymath.h +0 -205
- package/python/include/python3.12/internal/pycore_pymem.h +0 -98
- package/python/include/python3.12/internal/pycore_pymem_init.h +0 -85
- package/python/include/python3.12/internal/pycore_pystate.h +0 -180
- package/python/include/python3.12/internal/pycore_pythread.h +0 -81
- package/python/include/python3.12/internal/pycore_range.h +0 -21
- package/python/include/python3.12/internal/pycore_runtime.h +0 -235
- package/python/include/python3.12/internal/pycore_runtime_init.h +0 -188
- package/python/include/python3.12/internal/pycore_runtime_init_generated.h +0 -1511
- package/python/include/python3.12/internal/pycore_signal.h +0 -98
- package/python/include/python3.12/internal/pycore_sliceobject.h +0 -22
- package/python/include/python3.12/internal/pycore_strhex.h +0 -36
- package/python/include/python3.12/internal/pycore_structseq.h +0 -39
- package/python/include/python3.12/internal/pycore_symtable.h +0 -160
- package/python/include/python3.12/internal/pycore_sysmodule.h +0 -34
- package/python/include/python3.12/internal/pycore_time.h +0 -25
- package/python/include/python3.12/internal/pycore_token.h +0 -108
- package/python/include/python3.12/internal/pycore_traceback.h +0 -101
- package/python/include/python3.12/internal/pycore_tracemalloc.h +0 -123
- package/python/include/python3.12/internal/pycore_tuple.h +0 -79
- package/python/include/python3.12/internal/pycore_typeobject.h +0 -151
- package/python/include/python3.12/internal/pycore_typevarobject.h +0 -24
- package/python/include/python3.12/internal/pycore_ucnhash.h +0 -34
- package/python/include/python3.12/internal/pycore_unicodeobject.h +0 -86
- package/python/include/python3.12/internal/pycore_unicodeobject_generated.h +0 -2832
- package/python/include/python3.12/internal/pycore_unionobject.h +0 -23
- package/python/include/python3.12/internal/pycore_warnings.h +0 -29
- package/python/include/python3.12/interpreteridobject.h +0 -17
- package/python/include/python3.12/intrcheck.h +0 -30
- package/python/include/python3.12/iterobject.h +0 -27
- package/python/include/python3.12/listobject.h +0 -52
- package/python/include/python3.12/longobject.h +0 -108
- package/python/include/python3.12/marshal.h +0 -31
- package/python/include/python3.12/memoryobject.h +0 -34
- package/python/include/python3.12/methodobject.h +0 -132
- package/python/include/python3.12/modsupport.h +0 -168
- package/python/include/python3.12/moduleobject.h +0 -119
- package/python/include/python3.12/object.h +0 -993
- package/python/include/python3.12/objimpl.h +0 -234
- package/python/include/python3.12/opcode.h +0 -271
- package/python/include/python3.12/osdefs.h +0 -51
- package/python/include/python3.12/osmodule.h +0 -17
- package/python/include/python3.12/patchlevel.h +0 -35
- package/python/include/python3.12/py_curses.h +0 -99
- package/python/include/python3.12/pybuffer.h +0 -145
- package/python/include/python3.12/pycapsule.h +0 -59
- package/python/include/python3.12/pyconfig.h +0 -1943
- package/python/include/python3.12/pydtrace.h +0 -59
- package/python/include/python3.12/pyerrors.h +0 -337
- package/python/include/python3.12/pyexpat.h +0 -70
- package/python/include/python3.12/pyframe.h +0 -26
- package/python/include/python3.12/pyhash.h +0 -146
- package/python/include/python3.12/pylifecycle.h +0 -78
- package/python/include/python3.12/pymacconfig.h +0 -99
- package/python/include/python3.12/pymacro.h +0 -172
- package/python/include/python3.12/pymath.h +0 -62
- package/python/include/python3.12/pymem.h +0 -104
- package/python/include/python3.12/pyport.h +0 -782
- package/python/include/python3.12/pystate.h +0 -132
- package/python/include/python3.12/pystats.h +0 -110
- package/python/include/python3.12/pystrcmp.h +0 -23
- package/python/include/python3.12/pystrtod.h +0 -46
- package/python/include/python3.12/pythonrun.h +0 -49
- package/python/include/python3.12/pythread.h +0 -135
- package/python/include/python3.12/pytypedefs.h +0 -30
- package/python/include/python3.12/rangeobject.h +0 -27
- package/python/include/python3.12/setobject.h +0 -49
- package/python/include/python3.12/sliceobject.h +0 -65
- package/python/include/python3.12/structmember.h +0 -56
- package/python/include/python3.12/structseq.h +0 -49
- package/python/include/python3.12/sysmodule.h +0 -54
- package/python/include/python3.12/traceback.h +0 -26
- package/python/include/python3.12/tracemalloc.h +0 -77
- package/python/include/python3.12/tupleobject.h +0 -46
- package/python/include/python3.12/typeslots.h +0 -88
- package/python/include/python3.12/unicodeobject.h +0 -1020
- package/python/include/python3.12/warnings.h +0 -45
- package/python/include/python3.12/weakrefobject.h +0 -42
- package/python/lib/itcl4.3.8/itcl.tcl +0 -151
- package/python/lib/itcl4.3.8/itclConfig.sh +0 -67
- package/python/lib/itcl4.3.8/itclHullCmds.tcl +0 -562
- package/python/lib/itcl4.3.8/itclWidget.tcl +0 -447
- package/python/lib/itcl4.3.8/libitcl4.3.8.dylib +0 -0
- package/python/lib/itcl4.3.8/libitclstub.a +0 -0
- package/python/lib/itcl4.3.8/libitclstub4.3.8.a +0 -0
- package/python/lib/itcl4.3.8/libtcl9itcl4.3.8.dylib +0 -0
- package/python/lib/itcl4.3.8/pkgIndex.tcl +0 -14
- package/python/lib/libpython3.12.dylib +0 -0
- package/python/lib/libtcl9.0.dylib +0 -0
- package/python/lib/libtcl9tk9.0.dylib +0 -0
- package/python/lib/pkgconfig/python-3.12-embed.pc +0 -13
- package/python/lib/pkgconfig/python-3.12.pc +0 -13
- package/python/lib/pkgconfig/python3-embed.pc +0 -13
- package/python/lib/pkgconfig/python3.pc +0 -13
- package/python/lib/python3.12/config-3.12-darwin/Makefile +0 -3273
- package/python/lib/python3.12/config-3.12-darwin/Setup +0 -303
- package/python/lib/python3.12/config-3.12-darwin/Setup.bootstrap +0 -36
- package/python/lib/python3.12/config-3.12-darwin/Setup.local +0 -19
- package/python/lib/python3.12/config-3.12-darwin/Setup.stdlib +0 -183
- package/python/lib/python3.12/config-3.12-darwin/config.c +0 -246
- package/python/lib/python3.12/config-3.12-darwin/config.c.in +0 -71
- package/python/lib/python3.12/config-3.12-darwin/install-sh +0 -541
- package/python/lib/python3.12/config-3.12-darwin/makesetup +0 -353
- package/python/lib/python3.12/config-3.12-darwin/python-config.py +0 -76
- package/python/lib/python3.12/config-3.12-darwin/python.o +0 -0
- package/python/lib/python3.12/idlelib/CREDITS.txt +0 -47
- package/python/lib/python3.12/idlelib/ChangeLog +0 -1591
- package/python/lib/python3.12/idlelib/HISTORY.txt +0 -296
- package/python/lib/python3.12/idlelib/Icons/README.txt +0 -51
- package/python/lib/python3.12/idlelib/Icons/folder.gif +0 -0
- package/python/lib/python3.12/idlelib/Icons/idle.ico +0 -0
- package/python/lib/python3.12/idlelib/Icons/idle_16.gif +0 -0
- package/python/lib/python3.12/idlelib/Icons/idle_16.png +0 -0
- package/python/lib/python3.12/idlelib/Icons/idle_256.png +0 -0
- package/python/lib/python3.12/idlelib/Icons/idle_32.gif +0 -0
- package/python/lib/python3.12/idlelib/Icons/idle_32.png +0 -0
- package/python/lib/python3.12/idlelib/Icons/idle_48.gif +0 -0
- package/python/lib/python3.12/idlelib/Icons/idle_48.png +0 -0
- package/python/lib/python3.12/idlelib/Icons/minusnode.gif +0 -0
- package/python/lib/python3.12/idlelib/Icons/openfolder.gif +0 -0
- package/python/lib/python3.12/idlelib/Icons/plusnode.gif +0 -0
- package/python/lib/python3.12/idlelib/Icons/python.gif +0 -0
- package/python/lib/python3.12/idlelib/Icons/tk.gif +0 -0
- package/python/lib/python3.12/idlelib/NEWS2x.txt +0 -660
- package/python/lib/python3.12/idlelib/News3.txt +0 -1390
- package/python/lib/python3.12/idlelib/README.txt +0 -290
- package/python/lib/python3.12/idlelib/TODO.txt +0 -210
- package/python/lib/python3.12/idlelib/__init__.py +0 -10
- package/python/lib/python3.12/idlelib/__main__.py +0 -7
- package/python/lib/python3.12/idlelib/autocomplete.py +0 -228
- package/python/lib/python3.12/idlelib/autocomplete_w.py +0 -498
- package/python/lib/python3.12/idlelib/autoexpand.py +0 -96
- package/python/lib/python3.12/idlelib/browser.py +0 -260
- package/python/lib/python3.12/idlelib/calltip.py +0 -205
- package/python/lib/python3.12/idlelib/calltip_w.py +0 -202
- package/python/lib/python3.12/idlelib/codecontext.py +0 -270
- package/python/lib/python3.12/idlelib/colorizer.py +0 -384
- package/python/lib/python3.12/idlelib/config-extensions.def +0 -62
- package/python/lib/python3.12/idlelib/config-highlight.def +0 -105
- package/python/lib/python3.12/idlelib/config-keys.def +0 -309
- package/python/lib/python3.12/idlelib/config-main.def +0 -93
- package/python/lib/python3.12/idlelib/config.py +0 -917
- package/python/lib/python3.12/idlelib/config_key.py +0 -354
- package/python/lib/python3.12/idlelib/configdialog.py +0 -2408
- package/python/lib/python3.12/idlelib/debugger.py +0 -602
- package/python/lib/python3.12/idlelib/debugger_r.py +0 -390
- package/python/lib/python3.12/idlelib/debugobj.py +0 -146
- package/python/lib/python3.12/idlelib/debugobj_r.py +0 -41
- package/python/lib/python3.12/idlelib/delegator.py +0 -34
- package/python/lib/python3.12/idlelib/dynoption.py +0 -57
- package/python/lib/python3.12/idlelib/editor.py +0 -1767
- package/python/lib/python3.12/idlelib/extend.txt +0 -83
- package/python/lib/python3.12/idlelib/filelist.py +0 -132
- package/python/lib/python3.12/idlelib/format.py +0 -426
- package/python/lib/python3.12/idlelib/grep.py +0 -223
- package/python/lib/python3.12/idlelib/help.html +0 -805
- package/python/lib/python3.12/idlelib/help.py +0 -297
- package/python/lib/python3.12/idlelib/help_about.py +0 -211
- package/python/lib/python3.12/idlelib/history.py +0 -106
- package/python/lib/python3.12/idlelib/hyperparser.py +0 -312
- package/python/lib/python3.12/idlelib/idle.bat +0 -4
- package/python/lib/python3.12/idlelib/idle.py +0 -14
- package/python/lib/python3.12/idlelib/idle.pyw +0 -17
- package/python/lib/python3.12/idlelib/iomenu.py +0 -441
- package/python/lib/python3.12/idlelib/macosx.py +0 -278
- package/python/lib/python3.12/idlelib/mainmenu.py +0 -126
- package/python/lib/python3.12/idlelib/multicall.py +0 -451
- package/python/lib/python3.12/idlelib/outwin.py +0 -188
- package/python/lib/python3.12/idlelib/parenmatch.py +0 -183
- package/python/lib/python3.12/idlelib/pathbrowser.py +0 -107
- package/python/lib/python3.12/idlelib/percolator.py +0 -120
- package/python/lib/python3.12/idlelib/pyparse.py +0 -589
- package/python/lib/python3.12/idlelib/pyshell.py +0 -1694
- package/python/lib/python3.12/idlelib/query.py +0 -392
- package/python/lib/python3.12/idlelib/redirector.py +0 -173
- package/python/lib/python3.12/idlelib/replace.py +0 -300
- package/python/lib/python3.12/idlelib/rpc.py +0 -635
- package/python/lib/python3.12/idlelib/run.py +0 -646
- package/python/lib/python3.12/idlelib/runscript.py +0 -213
- package/python/lib/python3.12/idlelib/scrolledlist.py +0 -151
- package/python/lib/python3.12/idlelib/search.py +0 -165
- package/python/lib/python3.12/idlelib/searchbase.py +0 -210
- package/python/lib/python3.12/idlelib/searchengine.py +0 -235
- package/python/lib/python3.12/idlelib/sidebar.py +0 -544
- package/python/lib/python3.12/idlelib/squeezer.py +0 -345
- package/python/lib/python3.12/idlelib/stackviewer.py +0 -134
- package/python/lib/python3.12/idlelib/statusbar.py +0 -52
- package/python/lib/python3.12/idlelib/textview.py +0 -193
- package/python/lib/python3.12/idlelib/tooltip.py +0 -190
- package/python/lib/python3.12/idlelib/tree.py +0 -509
- package/python/lib/python3.12/idlelib/undo.py +0 -367
- package/python/lib/python3.12/idlelib/util.py +0 -37
- package/python/lib/python3.12/idlelib/window.py +0 -98
- package/python/lib/python3.12/idlelib/zoomheight.py +0 -124
- package/python/lib/python3.12/idlelib/zzdummy.py +0 -73
- package/python/lib/python3.12/lib-dynload/_tkinter.cpython-312-darwin.so +0 -0
- package/python/lib/python3.12/tkinter/__init__.py +0 -4682
- package/python/lib/python3.12/tkinter/__main__.py +0 -7
- package/python/lib/python3.12/tkinter/colorchooser.py +0 -86
- package/python/lib/python3.12/tkinter/commondialog.py +0 -53
- package/python/lib/python3.12/tkinter/constants.py +0 -110
- package/python/lib/python3.12/tkinter/dialog.py +0 -49
- package/python/lib/python3.12/tkinter/dnd.py +0 -324
- package/python/lib/python3.12/tkinter/filedialog.py +0 -492
- package/python/lib/python3.12/tkinter/font.py +0 -239
- package/python/lib/python3.12/tkinter/messagebox.py +0 -146
- package/python/lib/python3.12/tkinter/scrolledtext.py +0 -56
- package/python/lib/python3.12/tkinter/simpledialog.py +0 -441
- package/python/lib/python3.12/tkinter/tix.py +0 -1948
- package/python/lib/python3.12/tkinter/ttk.py +0 -1640
- package/python/lib/python3.12/turtle.py +0 -4207
- package/python/lib/python3.12/turtledemo/__init__.py +0 -14
- package/python/lib/python3.12/turtledemo/__main__.py +0 -404
- package/python/lib/python3.12/turtledemo/bytedesign.py +0 -161
- package/python/lib/python3.12/turtledemo/chaos.py +0 -59
- package/python/lib/python3.12/turtledemo/clock.py +0 -138
- package/python/lib/python3.12/turtledemo/colormixer.py +0 -58
- package/python/lib/python3.12/turtledemo/forest.py +0 -108
- package/python/lib/python3.12/turtledemo/fractalcurves.py +0 -138
- package/python/lib/python3.12/turtledemo/lindenmayer.py +0 -119
- package/python/lib/python3.12/turtledemo/minimal_hanoi.py +0 -79
- package/python/lib/python3.12/turtledemo/nim.py +0 -226
- package/python/lib/python3.12/turtledemo/paint.py +0 -54
- package/python/lib/python3.12/turtledemo/peace.py +0 -61
- package/python/lib/python3.12/turtledemo/penrose.py +0 -175
- package/python/lib/python3.12/turtledemo/planet_and_moon.py +0 -111
- package/python/lib/python3.12/turtledemo/rosette.py +0 -65
- package/python/lib/python3.12/turtledemo/round_dance.py +0 -86
- package/python/lib/python3.12/turtledemo/sorting_animate.py +0 -204
- package/python/lib/python3.12/turtledemo/tree.py +0 -62
- package/python/lib/python3.12/turtledemo/turtle.cfg +0 -10
- package/python/lib/python3.12/turtledemo/two_canvases.py +0 -54
- package/python/lib/python3.12/turtledemo/yinyang.py +0 -49
- package/python/lib/tcl9/9.0/http-2.10.2.tm +0 -5451
- package/python/lib/tcl9/9.0/msgcat-1.7.1.tm +0 -1349
- package/python/lib/tcl9/9.0/platform/shell-1.1.4.tm +0 -241
- package/python/lib/tcl9/9.0/platform-1.1.0.tm +0 -442
- package/python/lib/tcl9/9.0/tcltest-2.5.11.tm +0 -3600
- package/python/lib/tcl9.0/auto.tcl +0 -710
- package/python/lib/tcl9.0/clock.tcl +0 -2110
- package/python/lib/tcl9.0/cookiejar0.2/cookiejar.tcl +0 -746
- package/python/lib/tcl9.0/cookiejar0.2/idna.tcl +0 -292
- package/python/lib/tcl9.0/cookiejar0.2/pkgIndex.tcl +0 -3
- package/python/lib/tcl9.0/cookiejar0.2/public_suffix_list.dat.gz +0 -0
- package/python/lib/tcl9.0/encoding/ascii.enc +0 -20
- package/python/lib/tcl9.0/encoding/big5.enc +0 -1516
- package/python/lib/tcl9.0/encoding/cns11643.enc +0 -1584
- package/python/lib/tcl9.0/encoding/cp1250.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp1251.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp1252.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp1253.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp1254.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp1255.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp1256.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp1257.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp1258.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp165.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp437.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp737.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp775.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp850.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp852.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp855.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp857.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp860.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp861.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp862.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp863.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp864.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp865.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp866.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp869.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp874.enc +0 -20
- package/python/lib/tcl9.0/encoding/cp932.enc +0 -801
- package/python/lib/tcl9.0/encoding/cp936.enc +0 -2162
- package/python/lib/tcl9.0/encoding/cp949.enc +0 -2128
- package/python/lib/tcl9.0/encoding/cp950.enc +0 -1499
- package/python/lib/tcl9.0/encoding/dingbats.enc +0 -20
- package/python/lib/tcl9.0/encoding/ebcdic.enc +0 -20
- package/python/lib/tcl9.0/encoding/euc-cn.enc +0 -1397
- package/python/lib/tcl9.0/encoding/euc-jp.enc +0 -1353
- package/python/lib/tcl9.0/encoding/euc-kr.enc +0 -1533
- package/python/lib/tcl9.0/encoding/gb12345.enc +0 -1414
- package/python/lib/tcl9.0/encoding/gb1988.enc +0 -20
- package/python/lib/tcl9.0/encoding/gb2312-raw.enc +0 -1380
- package/python/lib/tcl9.0/encoding/gb2312.enc +0 -1397
- package/python/lib/tcl9.0/encoding/iso2022-jp.enc +0 -12
- package/python/lib/tcl9.0/encoding/iso2022-kr.enc +0 -7
- package/python/lib/tcl9.0/encoding/iso2022.enc +0 -14
- package/python/lib/tcl9.0/encoding/iso8859-1.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-10.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-11.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-13.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-14.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-15.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-16.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-2.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-3.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-4.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-5.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-6.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-7.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-8.enc +0 -20
- package/python/lib/tcl9.0/encoding/iso8859-9.enc +0 -20
- package/python/lib/tcl9.0/encoding/jis0201.enc +0 -20
- package/python/lib/tcl9.0/encoding/jis0208.enc +0 -1319
- package/python/lib/tcl9.0/encoding/jis0212.enc +0 -1159
- package/python/lib/tcl9.0/encoding/koi8-r.enc +0 -20
- package/python/lib/tcl9.0/encoding/koi8-ru.enc +0 -20
- package/python/lib/tcl9.0/encoding/koi8-t.enc +0 -20
- package/python/lib/tcl9.0/encoding/koi8-u.enc +0 -20
- package/python/lib/tcl9.0/encoding/ksc5601.enc +0 -1516
- package/python/lib/tcl9.0/encoding/macCentEuro.enc +0 -20
- package/python/lib/tcl9.0/encoding/macCroatian.enc +0 -20
- package/python/lib/tcl9.0/encoding/macCyrillic.enc +0 -20
- package/python/lib/tcl9.0/encoding/macDingbats.enc +0 -20
- package/python/lib/tcl9.0/encoding/macGreek.enc +0 -20
- package/python/lib/tcl9.0/encoding/macIceland.enc +0 -20
- package/python/lib/tcl9.0/encoding/macJapan.enc +0 -785
- package/python/lib/tcl9.0/encoding/macRoman.enc +0 -20
- package/python/lib/tcl9.0/encoding/macRomania.enc +0 -20
- package/python/lib/tcl9.0/encoding/macThai.enc +0 -20
- package/python/lib/tcl9.0/encoding/macTurkish.enc +0 -20
- package/python/lib/tcl9.0/encoding/macUkraine.enc +0 -20
- package/python/lib/tcl9.0/encoding/shiftjis.enc +0 -690
- package/python/lib/tcl9.0/encoding/symbol.enc +0 -20
- package/python/lib/tcl9.0/encoding/tis-620.enc +0 -20
- package/python/lib/tcl9.0/foreachline.tcl +0 -25
- package/python/lib/tcl9.0/history.tcl +0 -335
- package/python/lib/tcl9.0/icu.tcl +0 -145
- package/python/lib/tcl9.0/init.tcl +0 -772
- package/python/lib/tcl9.0/install.tcl +0 -274
- package/python/lib/tcl9.0/opt0.4/optparse.tcl +0 -1060
- package/python/lib/tcl9.0/opt0.4/pkgIndex.tcl +0 -12
- package/python/lib/tcl9.0/package.tcl +0 -776
- package/python/lib/tcl9.0/parray.tcl +0 -28
- package/python/lib/tcl9.0/readfile.tcl +0 -23
- package/python/lib/tcl9.0/safe.tcl +0 -1459
- package/python/lib/tcl9.0/tclAppInit.c +0 -183
- package/python/lib/tcl9.0/tclIndex +0 -112
- package/python/lib/tcl9.0/tm.tcl +0 -378
- package/python/lib/tcl9.0/word.tcl +0 -155
- package/python/lib/tcl9.0/writefile.tcl +0 -37
- package/python/lib/thread3.0.6/libtcl9thread3.0.6.dylib +0 -0
- package/python/lib/thread3.0.6/libthread3.0.6.dylib +0 -0
- package/python/lib/thread3.0.6/pkgIndex.tcl +0 -52
- package/python/lib/thread3.0.6/ttrace.tcl +0 -943
- package/python/lib/tk9.0/bgerror.tcl +0 -282
- package/python/lib/tk9.0/button.tcl +0 -782
- package/python/lib/tk9.0/choosedir.tcl +0 -310
- package/python/lib/tk9.0/clrpick.tcl +0 -696
- package/python/lib/tk9.0/comdlg.tcl +0 -322
- package/python/lib/tk9.0/console.tcl +0 -1148
- package/python/lib/tk9.0/dialog.tcl +0 -175
- package/python/lib/tk9.0/entry.tcl +0 -721
- package/python/lib/tk9.0/focus.tcl +0 -178
- package/python/lib/tk9.0/fontchooser.tcl +0 -512
- package/python/lib/tk9.0/iconbadges.tcl +0 -253
- package/python/lib/tk9.0/iconlist.tcl +0 -705
- package/python/lib/tk9.0/icons.tcl +0 -54
- package/python/lib/tk9.0/images/README +0 -7
- package/python/lib/tk9.0/images/logo.eps +0 -2091
- package/python/lib/tk9.0/images/logo100.gif +0 -0
- package/python/lib/tk9.0/images/logo64.gif +0 -0
- package/python/lib/tk9.0/images/logoLarge.gif +0 -0
- package/python/lib/tk9.0/images/logoMed.gif +0 -0
- package/python/lib/tk9.0/images/pwrdLogo.eps +0 -1897
- package/python/lib/tk9.0/images/pwrdLogo100.gif +0 -0
- package/python/lib/tk9.0/images/pwrdLogo150.gif +0 -0
- package/python/lib/tk9.0/images/pwrdLogo175.gif +0 -0
- package/python/lib/tk9.0/images/pwrdLogo200.gif +0 -0
- package/python/lib/tk9.0/images/pwrdLogo75.gif +0 -0
- package/python/lib/tk9.0/images/tai-ku.gif +0 -0
- package/python/lib/tk9.0/listbox.tcl +0 -522
- package/python/lib/tk9.0/megawidget.tcl +0 -297
- package/python/lib/tk9.0/menu.tcl +0 -1376
- package/python/lib/tk9.0/mkpsenc.tcl +0 -1488
- package/python/lib/tk9.0/msgbox.tcl +0 -454
- package/python/lib/tk9.0/optMenu.tcl +0 -43
- package/python/lib/tk9.0/palette.tcl +0 -283
- package/python/lib/tk9.0/panedwindow.tcl +0 -194
- package/python/lib/tk9.0/pkgIndex.tcl +0 -3
- package/python/lib/tk9.0/print.tcl +0 -1460
- package/python/lib/tk9.0/safetk.tcl +0 -262
- package/python/lib/tk9.0/scale.tcl +0 -299
- package/python/lib/tk9.0/scaling.tcl +0 -232
- package/python/lib/tk9.0/scrlbar.tcl +0 -506
- package/python/lib/tk9.0/spinbox.tcl +0 -590
- package/python/lib/tk9.0/systray.tcl +0 -483
- package/python/lib/tk9.0/tclIndex +0 -252
- package/python/lib/tk9.0/tearoff.tcl +0 -155
- package/python/lib/tk9.0/text.tcl +0 -1295
- package/python/lib/tk9.0/tk.tcl +0 -853
- package/python/lib/tk9.0/tkAppInit.c +0 -200
- package/python/lib/tk9.0/tkfbox.tcl +0 -1251
- package/python/lib/tk9.0/ttk/altTheme.tcl +0 -158
- package/python/lib/tk9.0/ttk/aquaTheme.tcl +0 -254
- package/python/lib/tk9.0/ttk/button.tcl +0 -83
- package/python/lib/tk9.0/ttk/clamTheme.tcl +0 -200
- package/python/lib/tk9.0/ttk/classicTheme.tcl +0 -165
- package/python/lib/tk9.0/ttk/combobox.tcl +0 -555
- package/python/lib/tk9.0/ttk/cursors.tcl +0 -205
- package/python/lib/tk9.0/ttk/defaults.tcl +0 -250
- package/python/lib/tk9.0/ttk/entry.tcl +0 -678
- package/python/lib/tk9.0/ttk/fonts.tcl +0 -152
- package/python/lib/tk9.0/ttk/menubutton.tcl +0 -237
- package/python/lib/tk9.0/ttk/notebook.tcl +0 -261
- package/python/lib/tk9.0/ttk/panedwindow.tcl +0 -89
- package/python/lib/tk9.0/ttk/progress.tcl +0 -55
- package/python/lib/tk9.0/ttk/scale.tcl +0 -94
- package/python/lib/tk9.0/ttk/scrollbar.tcl +0 -119
- package/python/lib/tk9.0/ttk/sizegrip.tcl +0 -102
- package/python/lib/tk9.0/ttk/spinbox.tcl +0 -204
- package/python/lib/tk9.0/ttk/treeview.tcl +0 -464
- package/python/lib/tk9.0/ttk/ttk.tcl +0 -220
- package/python/lib/tk9.0/ttk/utils.tcl +0 -317
- package/python/lib/tk9.0/ttk/vistaTheme.tcl +0 -260
- package/python/lib/tk9.0/ttk/winTheme.tcl +0 -123
- package/python/lib/tk9.0/ttk/xpTheme.tcl +0 -99
- package/python/lib/tk9.0/xmfbox.tcl +0 -982
- package/python/share/man/man1/python.1 +0 -630
- package/python/share/man/man1/python3.1 +0 -630
- package/python/share/man/man1/python3.12.1 +0 -630
- /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Dialogs that query users and verify the answer before accepting.
|
|
3
|
-
|
|
4
|
-
Query is the generic base class for a popup dialog.
|
|
5
|
-
The user must either enter a valid answer or close the dialog.
|
|
6
|
-
Entries are validated when <Return> is entered or [Ok] is clicked.
|
|
7
|
-
Entries are ignored when [Cancel] or [X] are clicked.
|
|
8
|
-
The 'return value' is .result set to either a valid answer or None.
|
|
9
|
-
|
|
10
|
-
Subclass SectionName gets a name for a new config file section.
|
|
11
|
-
Configdialog uses it for new highlight theme and keybinding set names.
|
|
12
|
-
Subclass ModuleName gets a name for File => Open Module.
|
|
13
|
-
Subclass HelpSource gets menu item and path for additions to Help menu.
|
|
14
|
-
"""
|
|
15
|
-
# Query and Section name result from splitting GetCfgSectionNameDialog
|
|
16
|
-
# of configSectionNameDialog.py (temporarily config_sec.py) into
|
|
17
|
-
# generic and specific parts. 3.6 only, July 2016.
|
|
18
|
-
# ModuleName.entry_ok came from editor.EditorWindow.load_module.
|
|
19
|
-
# HelpSource was extracted from configHelpSourceEdit.py (temporarily
|
|
20
|
-
# config_help.py), with darwin code moved from ok to path_ok.
|
|
21
|
-
|
|
22
|
-
import importlib.util, importlib.abc
|
|
23
|
-
import os
|
|
24
|
-
import shlex
|
|
25
|
-
from sys import executable, platform # Platform is set for one test.
|
|
26
|
-
|
|
27
|
-
from tkinter import Toplevel, StringVar, BooleanVar, W, E, S
|
|
28
|
-
from tkinter.ttk import Frame, Button, Entry, Label, Checkbutton
|
|
29
|
-
from tkinter import filedialog
|
|
30
|
-
from tkinter.font import Font
|
|
31
|
-
from tkinter.simpledialog import _setup_dialog
|
|
32
|
-
|
|
33
|
-
class Query(Toplevel):
|
|
34
|
-
"""Base class for getting verified answer from a user.
|
|
35
|
-
|
|
36
|
-
For this base class, accept any non-blank string.
|
|
37
|
-
"""
|
|
38
|
-
def __init__(self, parent, title, message, *, text0='', used_names={},
|
|
39
|
-
_htest=False, _utest=False):
|
|
40
|
-
"""Create modal popup, return when destroyed.
|
|
41
|
-
|
|
42
|
-
Additional subclass init must be done before this unless
|
|
43
|
-
_utest=True is passed to suppress wait_window().
|
|
44
|
-
|
|
45
|
-
title - string, title of popup dialog
|
|
46
|
-
message - string, informational message to display
|
|
47
|
-
text0 - initial value for entry
|
|
48
|
-
used_names - names already in use
|
|
49
|
-
_htest - bool, change box location when running htest
|
|
50
|
-
_utest - bool, leave window hidden and not modal
|
|
51
|
-
"""
|
|
52
|
-
self.parent = parent # Needed for Font call.
|
|
53
|
-
self.message = message
|
|
54
|
-
self.text0 = text0
|
|
55
|
-
self.used_names = used_names
|
|
56
|
-
|
|
57
|
-
Toplevel.__init__(self, parent)
|
|
58
|
-
self.withdraw() # Hide while configuring, especially geometry.
|
|
59
|
-
self.title(title)
|
|
60
|
-
self.transient(parent)
|
|
61
|
-
if not _utest: # Otherwise fail when directly run unittest.
|
|
62
|
-
self.grab_set()
|
|
63
|
-
|
|
64
|
-
_setup_dialog(self)
|
|
65
|
-
if self._windowingsystem == 'aqua':
|
|
66
|
-
self.bind("<Command-.>", self.cancel)
|
|
67
|
-
self.bind('<Key-Escape>', self.cancel)
|
|
68
|
-
self.protocol("WM_DELETE_WINDOW", self.cancel)
|
|
69
|
-
self.bind('<Key-Return>', self.ok)
|
|
70
|
-
self.bind("<KP_Enter>", self.ok)
|
|
71
|
-
|
|
72
|
-
self.create_widgets()
|
|
73
|
-
self.update_idletasks() # Need here for winfo_reqwidth below.
|
|
74
|
-
self.geometry( # Center dialog over parent (or below htest box).
|
|
75
|
-
"+%d+%d" % (
|
|
76
|
-
parent.winfo_rootx() +
|
|
77
|
-
(parent.winfo_width()/2 - self.winfo_reqwidth()/2),
|
|
78
|
-
parent.winfo_rooty() +
|
|
79
|
-
((parent.winfo_height()/2 - self.winfo_reqheight()/2)
|
|
80
|
-
if not _htest else 150)
|
|
81
|
-
) )
|
|
82
|
-
self.resizable(height=False, width=False)
|
|
83
|
-
|
|
84
|
-
if not _utest:
|
|
85
|
-
self.deiconify() # Unhide now that geometry set.
|
|
86
|
-
self.entry.focus_set()
|
|
87
|
-
self.wait_window()
|
|
88
|
-
|
|
89
|
-
def create_widgets(self, ok_text='OK'): # Do not replace.
|
|
90
|
-
"""Create entry (rows, extras, buttons.
|
|
91
|
-
|
|
92
|
-
Entry stuff on rows 0-2, spanning cols 0-2.
|
|
93
|
-
Buttons on row 99, cols 1, 2.
|
|
94
|
-
"""
|
|
95
|
-
# Bind to self the widgets needed for entry_ok or unittest.
|
|
96
|
-
self.frame = frame = Frame(self, padding=10)
|
|
97
|
-
frame.grid(column=0, row=0, sticky='news')
|
|
98
|
-
frame.grid_columnconfigure(0, weight=1)
|
|
99
|
-
|
|
100
|
-
entrylabel = Label(frame, anchor='w', justify='left',
|
|
101
|
-
text=self.message)
|
|
102
|
-
self.entryvar = StringVar(self, self.text0)
|
|
103
|
-
self.entry = Entry(frame, width=30, textvariable=self.entryvar)
|
|
104
|
-
self.error_font = Font(name='TkCaptionFont',
|
|
105
|
-
exists=True, root=self.parent)
|
|
106
|
-
self.entry_error = Label(frame, text=' ', foreground='red',
|
|
107
|
-
font=self.error_font)
|
|
108
|
-
# Display or blank error by setting ['text'] =.
|
|
109
|
-
entrylabel.grid(column=0, row=0, columnspan=3, padx=5, sticky=W)
|
|
110
|
-
self.entry.grid(column=0, row=1, columnspan=3, padx=5, sticky=W+E,
|
|
111
|
-
pady=[10,0])
|
|
112
|
-
self.entry_error.grid(column=0, row=2, columnspan=3, padx=5,
|
|
113
|
-
sticky=W+E)
|
|
114
|
-
|
|
115
|
-
self.create_extra()
|
|
116
|
-
|
|
117
|
-
self.button_ok = Button(
|
|
118
|
-
frame, text=ok_text, default='active', command=self.ok)
|
|
119
|
-
self.button_cancel = Button(
|
|
120
|
-
frame, text='Cancel', command=self.cancel)
|
|
121
|
-
|
|
122
|
-
self.button_ok.grid(column=1, row=99, padx=5)
|
|
123
|
-
self.button_cancel.grid(column=2, row=99, padx=5)
|
|
124
|
-
|
|
125
|
-
def create_extra(self): pass # Override to add widgets.
|
|
126
|
-
|
|
127
|
-
def showerror(self, message, widget=None):
|
|
128
|
-
#self.bell(displayof=self)
|
|
129
|
-
(widget or self.entry_error)['text'] = 'ERROR: ' + message
|
|
130
|
-
|
|
131
|
-
def entry_ok(self): # Example: usually replace.
|
|
132
|
-
"Return non-blank entry or None."
|
|
133
|
-
entry = self.entry.get().strip()
|
|
134
|
-
if not entry:
|
|
135
|
-
self.showerror('blank line.')
|
|
136
|
-
return None
|
|
137
|
-
return entry
|
|
138
|
-
|
|
139
|
-
def ok(self, event=None): # Do not replace.
|
|
140
|
-
'''If entry is valid, bind it to 'result' and destroy tk widget.
|
|
141
|
-
|
|
142
|
-
Otherwise leave dialog open for user to correct entry or cancel.
|
|
143
|
-
'''
|
|
144
|
-
self.entry_error['text'] = ''
|
|
145
|
-
entry = self.entry_ok()
|
|
146
|
-
if entry is not None:
|
|
147
|
-
self.result = entry
|
|
148
|
-
self.destroy()
|
|
149
|
-
else:
|
|
150
|
-
# [Ok] moves focus. (<Return> does not.) Move it back.
|
|
151
|
-
self.entry.focus_set()
|
|
152
|
-
|
|
153
|
-
def cancel(self, event=None): # Do not replace.
|
|
154
|
-
"Set dialog result to None and destroy tk widget."
|
|
155
|
-
self.result = None
|
|
156
|
-
self.destroy()
|
|
157
|
-
|
|
158
|
-
def destroy(self):
|
|
159
|
-
self.grab_release()
|
|
160
|
-
super().destroy()
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
class SectionName(Query):
|
|
164
|
-
"Get a name for a config file section name."
|
|
165
|
-
# Used in ConfigDialog.GetNewKeysName, .GetNewThemeName (837)
|
|
166
|
-
|
|
167
|
-
def __init__(self, parent, title, message, used_names,
|
|
168
|
-
*, _htest=False, _utest=False):
|
|
169
|
-
super().__init__(parent, title, message, used_names=used_names,
|
|
170
|
-
_htest=_htest, _utest=_utest)
|
|
171
|
-
|
|
172
|
-
def entry_ok(self):
|
|
173
|
-
"Return sensible ConfigParser section name or None."
|
|
174
|
-
name = self.entry.get().strip()
|
|
175
|
-
if not name:
|
|
176
|
-
self.showerror('no name specified.')
|
|
177
|
-
return None
|
|
178
|
-
elif len(name)>30:
|
|
179
|
-
self.showerror('name is longer than 30 characters.')
|
|
180
|
-
return None
|
|
181
|
-
elif name in self.used_names:
|
|
182
|
-
self.showerror('name is already in use.')
|
|
183
|
-
return None
|
|
184
|
-
return name
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
class ModuleName(Query):
|
|
188
|
-
"Get a module name for Open Module menu entry."
|
|
189
|
-
# Used in open_module (editor.EditorWindow until move to iobinding).
|
|
190
|
-
|
|
191
|
-
def __init__(self, parent, title, message, text0,
|
|
192
|
-
*, _htest=False, _utest=False):
|
|
193
|
-
super().__init__(parent, title, message, text0=text0,
|
|
194
|
-
_htest=_htest, _utest=_utest)
|
|
195
|
-
|
|
196
|
-
def entry_ok(self):
|
|
197
|
-
"Return entered module name as file path or None."
|
|
198
|
-
name = self.entry.get().strip()
|
|
199
|
-
if not name:
|
|
200
|
-
self.showerror('no name specified.')
|
|
201
|
-
return None
|
|
202
|
-
# XXX Ought to insert current file's directory in front of path.
|
|
203
|
-
try:
|
|
204
|
-
spec = importlib.util.find_spec(name)
|
|
205
|
-
except (ValueError, ImportError) as msg:
|
|
206
|
-
self.showerror(str(msg))
|
|
207
|
-
return None
|
|
208
|
-
if spec is None:
|
|
209
|
-
self.showerror("module not found.")
|
|
210
|
-
return None
|
|
211
|
-
if not isinstance(spec.loader, importlib.abc.SourceLoader):
|
|
212
|
-
self.showerror("not a source-based module.")
|
|
213
|
-
return None
|
|
214
|
-
try:
|
|
215
|
-
file_path = spec.loader.get_filename(name)
|
|
216
|
-
except AttributeError:
|
|
217
|
-
self.showerror("loader does not support get_filename.")
|
|
218
|
-
return None
|
|
219
|
-
except ImportError:
|
|
220
|
-
# Some special modules require this (e.g. os.path)
|
|
221
|
-
try:
|
|
222
|
-
file_path = spec.loader.get_filename()
|
|
223
|
-
except TypeError:
|
|
224
|
-
self.showerror("loader failed to get filename.")
|
|
225
|
-
return None
|
|
226
|
-
return file_path
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
class Goto(Query):
|
|
230
|
-
"Get a positive line number for editor Go To Line."
|
|
231
|
-
# Used in editor.EditorWindow.goto_line_event.
|
|
232
|
-
|
|
233
|
-
def entry_ok(self):
|
|
234
|
-
try:
|
|
235
|
-
lineno = int(self.entry.get())
|
|
236
|
-
except ValueError:
|
|
237
|
-
self.showerror('not a base 10 integer.')
|
|
238
|
-
return None
|
|
239
|
-
if lineno <= 0:
|
|
240
|
-
self.showerror('not a positive integer.')
|
|
241
|
-
return None
|
|
242
|
-
return lineno
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
class HelpSource(Query):
|
|
246
|
-
"Get menu name and help source for Help menu."
|
|
247
|
-
# Used in ConfigDialog.HelpListItemAdd/Edit, (941/9)
|
|
248
|
-
|
|
249
|
-
def __init__(self, parent, title, *, menuitem='', filepath='',
|
|
250
|
-
used_names={}, _htest=False, _utest=False):
|
|
251
|
-
"""Get menu entry and url/local file for Additional Help.
|
|
252
|
-
|
|
253
|
-
User enters a name for the Help resource and a web url or file
|
|
254
|
-
name. The user can browse for the file.
|
|
255
|
-
"""
|
|
256
|
-
self.filepath = filepath
|
|
257
|
-
message = 'Name for item on Help menu:'
|
|
258
|
-
super().__init__(
|
|
259
|
-
parent, title, message, text0=menuitem,
|
|
260
|
-
used_names=used_names, _htest=_htest, _utest=_utest)
|
|
261
|
-
|
|
262
|
-
def create_extra(self):
|
|
263
|
-
"Add path widjets to rows 10-12."
|
|
264
|
-
frame = self.frame
|
|
265
|
-
pathlabel = Label(frame, anchor='w', justify='left',
|
|
266
|
-
text='Help File Path: Enter URL or browse for file')
|
|
267
|
-
self.pathvar = StringVar(self, self.filepath)
|
|
268
|
-
self.path = Entry(frame, textvariable=self.pathvar, width=40)
|
|
269
|
-
browse = Button(frame, text='Browse', width=8,
|
|
270
|
-
command=self.browse_file)
|
|
271
|
-
self.path_error = Label(frame, text=' ', foreground='red',
|
|
272
|
-
font=self.error_font)
|
|
273
|
-
|
|
274
|
-
pathlabel.grid(column=0, row=10, columnspan=3, padx=5, pady=[10,0],
|
|
275
|
-
sticky=W)
|
|
276
|
-
self.path.grid(column=0, row=11, columnspan=2, padx=5, sticky=W+E,
|
|
277
|
-
pady=[10,0])
|
|
278
|
-
browse.grid(column=2, row=11, padx=5, sticky=W+S)
|
|
279
|
-
self.path_error.grid(column=0, row=12, columnspan=3, padx=5,
|
|
280
|
-
sticky=W+E)
|
|
281
|
-
|
|
282
|
-
def askfilename(self, filetypes, initdir, initfile): # htest #
|
|
283
|
-
# Extracted from browse_file so can mock for unittests.
|
|
284
|
-
# Cannot unittest as cannot simulate button clicks.
|
|
285
|
-
# Test by running htest, such as by running this file.
|
|
286
|
-
return filedialog.Open(parent=self, filetypes=filetypes)\
|
|
287
|
-
.show(initialdir=initdir, initialfile=initfile)
|
|
288
|
-
|
|
289
|
-
def browse_file(self):
|
|
290
|
-
filetypes = [
|
|
291
|
-
("HTML Files", "*.htm *.html", "TEXT"),
|
|
292
|
-
("PDF Files", "*.pdf", "TEXT"),
|
|
293
|
-
("Windows Help Files", "*.chm"),
|
|
294
|
-
("Text Files", "*.txt", "TEXT"),
|
|
295
|
-
("All Files", "*")]
|
|
296
|
-
path = self.pathvar.get()
|
|
297
|
-
if path:
|
|
298
|
-
dir, base = os.path.split(path)
|
|
299
|
-
else:
|
|
300
|
-
base = None
|
|
301
|
-
if platform[:3] == 'win':
|
|
302
|
-
dir = os.path.join(os.path.dirname(executable), 'Doc')
|
|
303
|
-
if not os.path.isdir(dir):
|
|
304
|
-
dir = os.getcwd()
|
|
305
|
-
else:
|
|
306
|
-
dir = os.getcwd()
|
|
307
|
-
file = self.askfilename(filetypes, dir, base)
|
|
308
|
-
if file:
|
|
309
|
-
self.pathvar.set(file)
|
|
310
|
-
|
|
311
|
-
item_ok = SectionName.entry_ok # localize for test override
|
|
312
|
-
|
|
313
|
-
def path_ok(self):
|
|
314
|
-
"Simple validity check for menu file path"
|
|
315
|
-
path = self.path.get().strip()
|
|
316
|
-
if not path: #no path specified
|
|
317
|
-
self.showerror('no help file path specified.', self.path_error)
|
|
318
|
-
return None
|
|
319
|
-
elif not path.startswith(('www.', 'http')):
|
|
320
|
-
if path[:5] == 'file:':
|
|
321
|
-
path = path[5:]
|
|
322
|
-
if not os.path.exists(path):
|
|
323
|
-
self.showerror('help file path does not exist.',
|
|
324
|
-
self.path_error)
|
|
325
|
-
return None
|
|
326
|
-
if platform == 'darwin': # for Mac Safari
|
|
327
|
-
path = "file://" + path
|
|
328
|
-
return path
|
|
329
|
-
|
|
330
|
-
def entry_ok(self):
|
|
331
|
-
"Return apparently valid (name, path) or None"
|
|
332
|
-
self.path_error['text'] = ''
|
|
333
|
-
name = self.item_ok()
|
|
334
|
-
path = self.path_ok()
|
|
335
|
-
return None if name is None or path is None else (name, path)
|
|
336
|
-
|
|
337
|
-
class CustomRun(Query):
|
|
338
|
-
"""Get settings for custom run of module.
|
|
339
|
-
|
|
340
|
-
1. Command line arguments to extend sys.argv.
|
|
341
|
-
2. Whether to restart Shell or not.
|
|
342
|
-
"""
|
|
343
|
-
# Used in runscript.run_custom_event
|
|
344
|
-
|
|
345
|
-
def __init__(self, parent, title, *, cli_args=[],
|
|
346
|
-
_htest=False, _utest=False):
|
|
347
|
-
"""cli_args is a list of strings.
|
|
348
|
-
|
|
349
|
-
The list is assigned to the default Entry StringVar.
|
|
350
|
-
The strings are displayed joined by ' ' for display.
|
|
351
|
-
"""
|
|
352
|
-
message = 'Command Line Arguments for sys.argv:'
|
|
353
|
-
super().__init__(
|
|
354
|
-
parent, title, message, text0=cli_args,
|
|
355
|
-
_htest=_htest, _utest=_utest)
|
|
356
|
-
|
|
357
|
-
def create_extra(self):
|
|
358
|
-
"Add run mode on rows 10-12."
|
|
359
|
-
frame = self.frame
|
|
360
|
-
self.restartvar = BooleanVar(self, value=True)
|
|
361
|
-
restart = Checkbutton(frame, variable=self.restartvar, onvalue=True,
|
|
362
|
-
offvalue=False, text='Restart shell')
|
|
363
|
-
self.args_error = Label(frame, text=' ', foreground='red',
|
|
364
|
-
font=self.error_font)
|
|
365
|
-
|
|
366
|
-
restart.grid(column=0, row=10, columnspan=3, padx=5, sticky='w')
|
|
367
|
-
self.args_error.grid(column=0, row=12, columnspan=3, padx=5,
|
|
368
|
-
sticky='we')
|
|
369
|
-
|
|
370
|
-
def cli_args_ok(self):
|
|
371
|
-
"Return command line arg list or None if error."
|
|
372
|
-
cli_string = self.entry.get().strip()
|
|
373
|
-
try:
|
|
374
|
-
cli_args = shlex.split(cli_string, posix=True)
|
|
375
|
-
except ValueError as err:
|
|
376
|
-
self.showerror(str(err))
|
|
377
|
-
return None
|
|
378
|
-
return cli_args
|
|
379
|
-
|
|
380
|
-
def entry_ok(self):
|
|
381
|
-
"Return apparently valid (cli_args, restart) or None."
|
|
382
|
-
cli_args = self.cli_args_ok()
|
|
383
|
-
restart = self.restartvar.get()
|
|
384
|
-
return None if cli_args is None else (cli_args, restart)
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
if __name__ == '__main__':
|
|
388
|
-
from unittest import main
|
|
389
|
-
main('idlelib.idle_test.test_query', verbosity=2, exit=False)
|
|
390
|
-
|
|
391
|
-
from idlelib.idle_test.htest import run
|
|
392
|
-
run(Query, HelpSource, CustomRun)
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
from tkinter import TclError
|
|
2
|
-
|
|
3
|
-
class WidgetRedirector:
|
|
4
|
-
"""Support for redirecting arbitrary widget subcommands.
|
|
5
|
-
|
|
6
|
-
Some Tk operations don't normally pass through tkinter. For example, if a
|
|
7
|
-
character is inserted into a Text widget by pressing a key, a default Tk
|
|
8
|
-
binding to the widget's 'insert' operation is activated, and the Tk library
|
|
9
|
-
processes the insert without calling back into tkinter.
|
|
10
|
-
|
|
11
|
-
Although a binding to <Key> could be made via tkinter, what we really want
|
|
12
|
-
to do is to hook the Tk 'insert' operation itself. For one thing, we want
|
|
13
|
-
a text.insert call in idle code to have the same effect as a key press.
|
|
14
|
-
|
|
15
|
-
When a widget is instantiated, a Tcl command is created whose name is the
|
|
16
|
-
same as the pathname widget._w. This command is used to invoke the various
|
|
17
|
-
widget operations, e.g. insert (for a Text widget). We are going to hook
|
|
18
|
-
this command and provide a facility ('register') to intercept the widget
|
|
19
|
-
operation. We will also intercept method calls on the tkinter class
|
|
20
|
-
instance that represents the tk widget.
|
|
21
|
-
|
|
22
|
-
In IDLE, WidgetRedirector is used in Percolator to intercept Text
|
|
23
|
-
commands. The function being registered provides access to the top
|
|
24
|
-
of a Percolator chain. At the bottom of the chain is a call to the
|
|
25
|
-
original Tk widget operation.
|
|
26
|
-
"""
|
|
27
|
-
def __init__(self, widget):
|
|
28
|
-
'''Initialize attributes and setup redirection.
|
|
29
|
-
|
|
30
|
-
_operations: dict mapping operation name to new function.
|
|
31
|
-
widget: the widget whose tcl command is to be intercepted.
|
|
32
|
-
tk: widget.tk, a convenience attribute, probably not needed.
|
|
33
|
-
orig: new name of the original tcl command.
|
|
34
|
-
|
|
35
|
-
Since renaming to orig fails with TclError when orig already
|
|
36
|
-
exists, only one WidgetDirector can exist for a given widget.
|
|
37
|
-
'''
|
|
38
|
-
self._operations = {}
|
|
39
|
-
self.widget = widget # widget instance
|
|
40
|
-
self.tk = tk = widget.tk # widget's root
|
|
41
|
-
w = widget._w # widget's (full) Tk pathname
|
|
42
|
-
self.orig = w + "_orig"
|
|
43
|
-
# Rename the Tcl command within Tcl:
|
|
44
|
-
tk.call("rename", w, self.orig)
|
|
45
|
-
# Create a new Tcl command whose name is the widget's pathname, and
|
|
46
|
-
# whose action is to dispatch on the operation passed to the widget:
|
|
47
|
-
tk.createcommand(w, self.dispatch)
|
|
48
|
-
|
|
49
|
-
def __repr__(self):
|
|
50
|
-
w = self.widget
|
|
51
|
-
return f"{self.__class__.__name__,}({w.__class__.__name__}<{w._w}>)"
|
|
52
|
-
|
|
53
|
-
def close(self):
|
|
54
|
-
"Unregister operations and revert redirection created by .__init__."
|
|
55
|
-
for operation in list(self._operations):
|
|
56
|
-
self.unregister(operation)
|
|
57
|
-
widget = self.widget
|
|
58
|
-
tk = widget.tk
|
|
59
|
-
w = widget._w
|
|
60
|
-
# Restore the original widget Tcl command.
|
|
61
|
-
tk.deletecommand(w)
|
|
62
|
-
tk.call("rename", self.orig, w)
|
|
63
|
-
del self.widget, self.tk # Should not be needed
|
|
64
|
-
# if instance is deleted after close, as in Percolator.
|
|
65
|
-
|
|
66
|
-
def register(self, operation, function):
|
|
67
|
-
'''Return OriginalCommand(operation) after registering function.
|
|
68
|
-
|
|
69
|
-
Registration adds an operation: function pair to ._operations.
|
|
70
|
-
It also adds a widget function attribute that masks the tkinter
|
|
71
|
-
class instance method. Method masking operates independently
|
|
72
|
-
from command dispatch.
|
|
73
|
-
|
|
74
|
-
If a second function is registered for the same operation, the
|
|
75
|
-
first function is replaced in both places.
|
|
76
|
-
'''
|
|
77
|
-
self._operations[operation] = function
|
|
78
|
-
setattr(self.widget, operation, function)
|
|
79
|
-
return OriginalCommand(self, operation)
|
|
80
|
-
|
|
81
|
-
def unregister(self, operation):
|
|
82
|
-
'''Return the function for the operation, or None.
|
|
83
|
-
|
|
84
|
-
Deleting the instance attribute unmasks the class attribute.
|
|
85
|
-
'''
|
|
86
|
-
if operation in self._operations:
|
|
87
|
-
function = self._operations[operation]
|
|
88
|
-
del self._operations[operation]
|
|
89
|
-
try:
|
|
90
|
-
delattr(self.widget, operation)
|
|
91
|
-
except AttributeError:
|
|
92
|
-
pass
|
|
93
|
-
return function
|
|
94
|
-
else:
|
|
95
|
-
return None
|
|
96
|
-
|
|
97
|
-
def dispatch(self, operation, *args):
|
|
98
|
-
'''Callback from Tcl which runs when the widget is referenced.
|
|
99
|
-
|
|
100
|
-
If an operation has been registered in self._operations, apply the
|
|
101
|
-
associated function to the args passed into Tcl. Otherwise, pass the
|
|
102
|
-
operation through to Tk via the original Tcl function.
|
|
103
|
-
|
|
104
|
-
Note that if a registered function is called, the operation is not
|
|
105
|
-
passed through to Tk. Apply the function returned by self.register()
|
|
106
|
-
to *args to accomplish that. For an example, see colorizer.py.
|
|
107
|
-
|
|
108
|
-
'''
|
|
109
|
-
m = self._operations.get(operation)
|
|
110
|
-
try:
|
|
111
|
-
if m:
|
|
112
|
-
return m(*args)
|
|
113
|
-
else:
|
|
114
|
-
return self.tk.call((self.orig, operation) + args)
|
|
115
|
-
except TclError:
|
|
116
|
-
return ""
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
class OriginalCommand:
|
|
120
|
-
'''Callable for original tk command that has been redirected.
|
|
121
|
-
|
|
122
|
-
Returned by .register; can be used in the function registered.
|
|
123
|
-
redir = WidgetRedirector(text)
|
|
124
|
-
def my_insert(*args):
|
|
125
|
-
print("insert", args)
|
|
126
|
-
original_insert(*args)
|
|
127
|
-
original_insert = redir.register("insert", my_insert)
|
|
128
|
-
'''
|
|
129
|
-
|
|
130
|
-
def __init__(self, redir, operation):
|
|
131
|
-
'''Create .tk_call and .orig_and_operation for .__call__ method.
|
|
132
|
-
|
|
133
|
-
.redir and .operation store the input args for __repr__.
|
|
134
|
-
.tk and .orig copy attributes of .redir (probably not needed).
|
|
135
|
-
'''
|
|
136
|
-
self.redir = redir
|
|
137
|
-
self.operation = operation
|
|
138
|
-
self.tk = redir.tk # redundant with self.redir
|
|
139
|
-
self.orig = redir.orig # redundant with self.redir
|
|
140
|
-
# These two could be deleted after checking recipient code.
|
|
141
|
-
self.tk_call = redir.tk.call
|
|
142
|
-
self.orig_and_operation = (redir.orig, operation)
|
|
143
|
-
|
|
144
|
-
def __repr__(self):
|
|
145
|
-
return f"{self.__class__.__name__,}({self.redir!r}, {self.operation!r})"
|
|
146
|
-
|
|
147
|
-
def __call__(self, *args):
|
|
148
|
-
return self.tk_call(self.orig_and_operation + args)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
def _widget_redirector(parent): # htest #
|
|
152
|
-
from tkinter import Toplevel, Text
|
|
153
|
-
|
|
154
|
-
top = Toplevel(parent)
|
|
155
|
-
top.title("Test WidgetRedirector")
|
|
156
|
-
x, y = map(int, parent.geometry().split('+')[1:])
|
|
157
|
-
top.geometry("+%d+%d" % (x, y + 175))
|
|
158
|
-
text = Text(top)
|
|
159
|
-
text.pack()
|
|
160
|
-
text.focus_set()
|
|
161
|
-
redir = WidgetRedirector(text)
|
|
162
|
-
def my_insert(*args):
|
|
163
|
-
print("insert", args)
|
|
164
|
-
original_insert(*args)
|
|
165
|
-
original_insert = redir.register("insert", my_insert)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
if __name__ == "__main__":
|
|
169
|
-
from unittest import main
|
|
170
|
-
main('idlelib.idle_test.test_redirector', verbosity=2, exit=False)
|
|
171
|
-
|
|
172
|
-
from idlelib.idle_test.htest import run
|
|
173
|
-
run(_widget_redirector)
|