@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,982 +0,0 @@
|
|
|
1
|
-
# xmfbox.tcl --
|
|
2
|
-
#
|
|
3
|
-
# Implements the "Motif" style file selection dialog for the
|
|
4
|
-
# Unix platform. This implementation is used only if the
|
|
5
|
-
# "::tk_strictMotif" flag is set.
|
|
6
|
-
#
|
|
7
|
-
# Copyright © 1996 Sun Microsystems, Inc.
|
|
8
|
-
# Copyright © 1998-2000 Scriptics Corporation
|
|
9
|
-
#
|
|
10
|
-
# See the file "license.terms" for information on usage and redistribution
|
|
11
|
-
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|
12
|
-
|
|
13
|
-
namespace eval ::tk::dialog {}
|
|
14
|
-
namespace eval ::tk::dialog::file {}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# ::tk::MotifFDialog --
|
|
18
|
-
#
|
|
19
|
-
# Implements a file dialog similar to the standard Motif file
|
|
20
|
-
# selection box.
|
|
21
|
-
#
|
|
22
|
-
# Arguments:
|
|
23
|
-
# type "open" or "save"
|
|
24
|
-
# args Options parsed by the procedure.
|
|
25
|
-
#
|
|
26
|
-
# Results:
|
|
27
|
-
# When -multiple is set to 0, this returns the absolute pathname
|
|
28
|
-
# of the selected file. (NOTE: This is not the same as a single
|
|
29
|
-
# element list.)
|
|
30
|
-
#
|
|
31
|
-
# When -multiple is set to > 0, this returns a Tcl list of absolute
|
|
32
|
-
# pathnames. The argument for -multiple is ignored, but for consistency
|
|
33
|
-
# with Windows it defines the maximum amount of memory to allocate for
|
|
34
|
-
# the returned filenames.
|
|
35
|
-
|
|
36
|
-
proc ::tk::MotifFDialog {type args} {
|
|
37
|
-
variable ::tk::Priv
|
|
38
|
-
set dataName __tk_filedialog
|
|
39
|
-
upvar ::tk::dialog::file::$dataName data
|
|
40
|
-
|
|
41
|
-
set w [MotifFDialog_Create $dataName $type $args]
|
|
42
|
-
|
|
43
|
-
# Set a grab and claim the focus too.
|
|
44
|
-
|
|
45
|
-
::tk::SetFocusGrab $w $data(sEnt)
|
|
46
|
-
$data(sEnt) selection range 0 end
|
|
47
|
-
|
|
48
|
-
# Wait for the user to respond, then restore the focus and
|
|
49
|
-
# return the index of the selected button. Restore the focus
|
|
50
|
-
# before deleting the window, since otherwise the window manager
|
|
51
|
-
# may take the focus away so we can't redirect it. Finally,
|
|
52
|
-
# restore any grab that was in effect.
|
|
53
|
-
|
|
54
|
-
vwait ::tk::Priv(selectFilePath)
|
|
55
|
-
set result $Priv(selectFilePath)
|
|
56
|
-
::tk::RestoreFocusGrab $w $data(sEnt) withdraw
|
|
57
|
-
|
|
58
|
-
return $result
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
# ::tk::MotifFDialog_Create --
|
|
62
|
-
#
|
|
63
|
-
# Creates the Motif file dialog (if it doesn't exist yet) and
|
|
64
|
-
# initialize the internal data structure associated with the
|
|
65
|
-
# dialog.
|
|
66
|
-
#
|
|
67
|
-
# This procedure is used by ::tk::MotifFDialog to create the
|
|
68
|
-
# dialog. It's also used by the test suite to test the Motif
|
|
69
|
-
# file dialog implementation. User code shouldn't call this
|
|
70
|
-
# procedure directly.
|
|
71
|
-
#
|
|
72
|
-
# Arguments:
|
|
73
|
-
# dataName Name of the global "data" array for the file dialog.
|
|
74
|
-
# type "Save" or "Open"
|
|
75
|
-
# argList Options parsed by the procedure.
|
|
76
|
-
#
|
|
77
|
-
# Results:
|
|
78
|
-
# Pathname of the file dialog.
|
|
79
|
-
|
|
80
|
-
proc ::tk::MotifFDialog_Create {dataName type argList} {
|
|
81
|
-
upvar ::tk::dialog::file::$dataName data
|
|
82
|
-
|
|
83
|
-
MotifFDialog_Config $dataName $type $argList
|
|
84
|
-
|
|
85
|
-
if {$data(-parent) eq "."} {
|
|
86
|
-
set w .$dataName
|
|
87
|
-
} else {
|
|
88
|
-
set w $data(-parent).$dataName
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
# (re)create the dialog box if necessary
|
|
92
|
-
#
|
|
93
|
-
if {![winfo exists $w]} {
|
|
94
|
-
MotifFDialog_BuildUI $w
|
|
95
|
-
} elseif {[winfo class $w] ne "TkMotifFDialog"} {
|
|
96
|
-
destroy $w
|
|
97
|
-
MotifFDialog_BuildUI $w
|
|
98
|
-
} else {
|
|
99
|
-
set data(fEnt) $w.top.f1.ent
|
|
100
|
-
set data(dList) $w.top.f2.a.l
|
|
101
|
-
set data(fList) $w.top.f2.b.l
|
|
102
|
-
set data(sEnt) $w.top.f3.ent
|
|
103
|
-
set data(okBtn) $w.bot.ok
|
|
104
|
-
set data(filterBtn) $w.bot.filter
|
|
105
|
-
set data(cancelBtn) $w.bot.cancel
|
|
106
|
-
}
|
|
107
|
-
MotifFDialog_SetListMode $w
|
|
108
|
-
|
|
109
|
-
# Dialog boxes should be transient with respect to their parent,
|
|
110
|
-
# so that they will always stay on top of their parent window. However,
|
|
111
|
-
# some window managers will create the window as withdrawn if the parent
|
|
112
|
-
# window is withdrawn or iconified. Combined with the grab we put on the
|
|
113
|
-
# window, this can hang the entire application. Therefore we only make
|
|
114
|
-
# the dialog transient if the parent is viewable.
|
|
115
|
-
|
|
116
|
-
if {[winfo viewable [winfo toplevel $data(-parent)]] } {
|
|
117
|
-
wm transient $w $data(-parent)
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
MotifFDialog_FileTypes $w
|
|
121
|
-
MotifFDialog_Update $w
|
|
122
|
-
|
|
123
|
-
# Withdraw the window, then update all the geometry information
|
|
124
|
-
# so we know how big it wants to be, then center the window in the
|
|
125
|
-
# display (Motif style) and de-iconify it.
|
|
126
|
-
|
|
127
|
-
::tk::PlaceWindow $w
|
|
128
|
-
wm title $w $data(-title)
|
|
129
|
-
|
|
130
|
-
return $w
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
# ::tk::MotifFDialog_FileTypes --
|
|
134
|
-
#
|
|
135
|
-
# Checks the -filetypes option. If present this adds a list of radio-
|
|
136
|
-
# buttons to pick the file types from.
|
|
137
|
-
#
|
|
138
|
-
# Arguments:
|
|
139
|
-
# w Pathname of the tk_get*File dialogue.
|
|
140
|
-
#
|
|
141
|
-
# Results:
|
|
142
|
-
# none
|
|
143
|
-
|
|
144
|
-
proc ::tk::MotifFDialog_FileTypes {w} {
|
|
145
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
146
|
-
|
|
147
|
-
set f $w.top.f3.types
|
|
148
|
-
destroy $f
|
|
149
|
-
|
|
150
|
-
# No file types: use "*" as the filter and display no radio-buttons
|
|
151
|
-
if {$data(-filetypes) eq ""} {
|
|
152
|
-
set data(filter) *
|
|
153
|
-
return
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
# The filetypes radiobuttons
|
|
157
|
-
# set data(fileType) $data(-defaulttype)
|
|
158
|
-
# Default type to first entry
|
|
159
|
-
set initialTypeName [lindex $data(origfiletypes) 0 0]
|
|
160
|
-
if {$data(-typevariable) ne ""} {
|
|
161
|
-
upvar #0 $data(-typevariable) typeVariable
|
|
162
|
-
if {[info exists typeVariable]} {
|
|
163
|
-
set initialTypeName $typeVariable
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
set ix 0
|
|
167
|
-
set data(fileType) 0
|
|
168
|
-
foreach fltr $data(origfiletypes) {
|
|
169
|
-
set fname [lindex $fltr 0]
|
|
170
|
-
if {[string first $initialTypeName $fname] == 0} {
|
|
171
|
-
set data(fileType) $ix
|
|
172
|
-
break
|
|
173
|
-
}
|
|
174
|
-
incr ix
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
MotifFDialog_SetFilter $w [lindex $data(-filetypes) $data(fileType)]
|
|
178
|
-
|
|
179
|
-
#don't produce radiobuttons for only one filetype
|
|
180
|
-
if {[llength $data(-filetypes)] == 1} {
|
|
181
|
-
return
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
frame $f
|
|
185
|
-
set cnt 0
|
|
186
|
-
if {$data(-filetypes) ne {}} {
|
|
187
|
-
foreach type $data(-filetypes) {
|
|
188
|
-
set title [lindex $type 0]
|
|
189
|
-
set filter [lindex $type 1]
|
|
190
|
-
radiobutton $f.b$cnt \
|
|
191
|
-
-text $title \
|
|
192
|
-
-variable ::tk::dialog::file::[winfo name $w](fileType) \
|
|
193
|
-
-value $cnt \
|
|
194
|
-
-command [list tk::MotifFDialog_SetFilter $w $type]
|
|
195
|
-
pack $f.b$cnt -side left
|
|
196
|
-
incr cnt
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
$f.b$data(fileType) invoke
|
|
200
|
-
|
|
201
|
-
pack $f -side bottom -fill both
|
|
202
|
-
|
|
203
|
-
return
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
# This proc gets called whenever data(filter) is set
|
|
207
|
-
#
|
|
208
|
-
proc ::tk::MotifFDialog_SetFilter {w type} {
|
|
209
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
210
|
-
variable ::tk::Priv
|
|
211
|
-
|
|
212
|
-
set data(filter) [lindex $type 1]
|
|
213
|
-
|
|
214
|
-
MotifFDialog_Update $w
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
# ::tk::MotifFDialog_Config --
|
|
218
|
-
#
|
|
219
|
-
# Iterates over the optional arguments to determine the option
|
|
220
|
-
# values for the Motif file dialog; gives default values to
|
|
221
|
-
# unspecified options.
|
|
222
|
-
#
|
|
223
|
-
# Arguments:
|
|
224
|
-
# dataName The name of the global variable in which
|
|
225
|
-
# data for the file dialog is stored.
|
|
226
|
-
# type "Save" or "Open"
|
|
227
|
-
# argList Options parsed by the procedure.
|
|
228
|
-
|
|
229
|
-
proc ::tk::MotifFDialog_Config {dataName type argList} {
|
|
230
|
-
upvar ::tk::dialog::file::$dataName data
|
|
231
|
-
|
|
232
|
-
set data(type) $type
|
|
233
|
-
|
|
234
|
-
# 1: the configuration specs
|
|
235
|
-
#
|
|
236
|
-
set specs {
|
|
237
|
-
{-defaultextension "" "" ""}
|
|
238
|
-
{-filetypes "" "" ""}
|
|
239
|
-
{-initialdir "" "" ""}
|
|
240
|
-
{-initialfile "" "" ""}
|
|
241
|
-
{-parent "" "" "."}
|
|
242
|
-
{-title "" "" ""}
|
|
243
|
-
{-typevariable "" "" ""}
|
|
244
|
-
}
|
|
245
|
-
if {$type eq "open"} {
|
|
246
|
-
lappend specs {-multiple "" "" "0"}
|
|
247
|
-
}
|
|
248
|
-
if {$type eq "save"} {
|
|
249
|
-
lappend specs {-confirmoverwrite "" "" "1"}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
set data(-multiple) 0
|
|
253
|
-
set data(-confirmoverwrite) 1
|
|
254
|
-
# 2: default values depending on the type of the dialog
|
|
255
|
-
#
|
|
256
|
-
if {![info exists data(selectPath)]} {
|
|
257
|
-
# first time the dialog has been popped up
|
|
258
|
-
set data(selectPath) [pwd]
|
|
259
|
-
set data(selectFile) ""
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
# 3: parse the arguments
|
|
263
|
-
#
|
|
264
|
-
tclParseConfigSpec ::tk::dialog::file::$dataName $specs "" $argList
|
|
265
|
-
|
|
266
|
-
if {$data(-title) eq ""} {
|
|
267
|
-
if {$type eq "open"} {
|
|
268
|
-
if {$data(-multiple) != 0} {
|
|
269
|
-
set data(-title) "[mc {Open Multiple Files}]"
|
|
270
|
-
} else {
|
|
271
|
-
set data(-title) [mc "Open"]
|
|
272
|
-
}
|
|
273
|
-
} else {
|
|
274
|
-
set data(-title) [mc "Save As"]
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
# 4: set the default directory and selection according to the -initial
|
|
279
|
-
# settings
|
|
280
|
-
#
|
|
281
|
-
if {$data(-initialdir) ne ""} {
|
|
282
|
-
if {[file isdirectory $data(-initialdir)]} {
|
|
283
|
-
set data(selectPath) [lindex [glob $data(-initialdir)] 0]
|
|
284
|
-
} else {
|
|
285
|
-
set data(selectPath) [pwd]
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
# Convert the initialdir to an absolute path name.
|
|
289
|
-
|
|
290
|
-
set old [pwd]
|
|
291
|
-
cd $data(selectPath)
|
|
292
|
-
set data(selectPath) [pwd]
|
|
293
|
-
cd $old
|
|
294
|
-
}
|
|
295
|
-
set data(selectFile) $data(-initialfile)
|
|
296
|
-
|
|
297
|
-
# 5. Parse the -filetypes option. It is not used by the motif
|
|
298
|
-
# file dialog, but we check for validity of the value to make sure
|
|
299
|
-
# the application code also runs fine with the TK file dialog.
|
|
300
|
-
#
|
|
301
|
-
set data(origfiletypes) $data(-filetypes)
|
|
302
|
-
set data(-filetypes) [::tk::FDGetFileTypes $data(-filetypes)]
|
|
303
|
-
|
|
304
|
-
if {![info exists data(filter)]} {
|
|
305
|
-
set data(filter) *
|
|
306
|
-
}
|
|
307
|
-
if {![winfo exists $data(-parent)]} {
|
|
308
|
-
return -code error -errorcode [list TK LOOKUP WINDOW $data(-parent)] \
|
|
309
|
-
"bad window path name \"$data(-parent)\""
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
# ::tk::MotifFDialog_BuildUI --
|
|
314
|
-
#
|
|
315
|
-
# Builds the UI components of the Motif file dialog.
|
|
316
|
-
#
|
|
317
|
-
# Arguments:
|
|
318
|
-
# w Pathname of the dialog to build.
|
|
319
|
-
#
|
|
320
|
-
# Results:
|
|
321
|
-
# None.
|
|
322
|
-
|
|
323
|
-
proc ::tk::MotifFDialog_BuildUI {w} {
|
|
324
|
-
set dataName [lindex [split $w .] end]
|
|
325
|
-
upvar ::tk::dialog::file::$dataName data
|
|
326
|
-
|
|
327
|
-
# Create the dialog toplevel and internal frames.
|
|
328
|
-
#
|
|
329
|
-
toplevel $w -class TkMotifFDialog
|
|
330
|
-
set top [frame $w.top -relief raised -bd 1]
|
|
331
|
-
set bot [frame $w.bot -relief raised -bd 1]
|
|
332
|
-
|
|
333
|
-
pack $w.bot -side bottom -fill x
|
|
334
|
-
pack $w.top -side top -expand yes -fill both
|
|
335
|
-
|
|
336
|
-
set f1 [frame $top.f1]
|
|
337
|
-
set f2 [frame $top.f2]
|
|
338
|
-
set f3 [frame $top.f3]
|
|
339
|
-
|
|
340
|
-
pack $f1 -side top -fill x
|
|
341
|
-
pack $f3 -side bottom -fill x
|
|
342
|
-
pack $f2 -expand yes -fill both
|
|
343
|
-
|
|
344
|
-
set f2a [frame $f2.a]
|
|
345
|
-
set f2b [frame $f2.b]
|
|
346
|
-
|
|
347
|
-
grid $f2a -row 0 -column 0 -rowspan 1 -columnspan 1 -padx 3p -pady 3p \
|
|
348
|
-
-sticky news
|
|
349
|
-
grid $f2b -row 0 -column 1 -rowspan 1 -columnspan 1 -padx 3p -pady 3p \
|
|
350
|
-
-sticky news
|
|
351
|
-
grid rowconfigure $f2 0 -minsize 0 -weight 1
|
|
352
|
-
grid columnconfigure $f2 0 -minsize 0 -weight 1
|
|
353
|
-
grid columnconfigure $f2 1 -minsize 150 -weight 2
|
|
354
|
-
|
|
355
|
-
# The Filter box
|
|
356
|
-
#
|
|
357
|
-
bind [::tk::AmpWidget label $f1.lab -text [mc "Fil&ter:"] -anchor w] \
|
|
358
|
-
<<AltUnderlined>> [list focus $f1.ent]
|
|
359
|
-
entry $f1.ent
|
|
360
|
-
pack $f1.lab -side top -fill x -padx 4.5p -pady 3p
|
|
361
|
-
pack $f1.ent -side top -fill x -padx 3p -pady 0
|
|
362
|
-
set data(fEnt) $f1.ent
|
|
363
|
-
|
|
364
|
-
# The file and directory lists
|
|
365
|
-
#
|
|
366
|
-
set data(dList) [MotifFDialog_MakeSList $w $f2a \
|
|
367
|
-
[mc "&Directory:"] DList]
|
|
368
|
-
set data(fList) [MotifFDialog_MakeSList $w $f2b \
|
|
369
|
-
[mc "Fi&les:"] FList]
|
|
370
|
-
|
|
371
|
-
# The Selection box
|
|
372
|
-
#
|
|
373
|
-
bind [::tk::AmpWidget label $f3.lab -text [mc "&Selection:"] -anchor w] \
|
|
374
|
-
<<AltUnderlined>> [list focus $f3.ent]
|
|
375
|
-
entry $f3.ent
|
|
376
|
-
pack $f3.lab -side top -fill x -padx 4.5p -pady 0
|
|
377
|
-
pack $f3.ent -side top -fill x -padx 3p -pady 3p
|
|
378
|
-
set data(sEnt) $f3.ent
|
|
379
|
-
|
|
380
|
-
# The buttons
|
|
381
|
-
#
|
|
382
|
-
set maxWidth [::tk::mcmaxamp &OK &Filter &Cancel]
|
|
383
|
-
set maxWidth [expr {$maxWidth<6?6:$maxWidth}]
|
|
384
|
-
set data(okBtn) [::tk::AmpWidget button $bot.ok -text [mc "&OK"] \
|
|
385
|
-
-width $maxWidth \
|
|
386
|
-
-command [list tk::MotifFDialog_OkCmd $w]]
|
|
387
|
-
set data(filterBtn) [::tk::AmpWidget button $bot.filter -text [mc "&Filter"] \
|
|
388
|
-
-width $maxWidth \
|
|
389
|
-
-command [list tk::MotifFDialog_FilterCmd $w]]
|
|
390
|
-
set data(cancelBtn) [::tk::AmpWidget button $bot.cancel -text [mc "&Cancel"] \
|
|
391
|
-
-width $maxWidth \
|
|
392
|
-
-command [list tk::MotifFDialog_CancelCmd $w]]
|
|
393
|
-
|
|
394
|
-
pack $bot.ok $bot.filter $bot.cancel -padx 7.5p -pady 7.5p -expand yes \
|
|
395
|
-
-side left
|
|
396
|
-
|
|
397
|
-
# Create the bindings:
|
|
398
|
-
#
|
|
399
|
-
bind $w <Alt-Key> [list ::tk::AltKeyInDialog $w %A]
|
|
400
|
-
|
|
401
|
-
bind $data(fEnt) <Return> [list tk::MotifFDialog_ActivateFEnt $w]
|
|
402
|
-
bind $data(sEnt) <Return> [list tk::MotifFDialog_ActivateSEnt $w]
|
|
403
|
-
bind $w <Escape> [list tk::MotifFDialog_CancelCmd $w]
|
|
404
|
-
bind $w.bot <Destroy> {set ::tk::Priv(selectFilePath) {}}
|
|
405
|
-
|
|
406
|
-
wm protocol $w WM_DELETE_WINDOW [list tk::MotifFDialog_CancelCmd $w]
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
proc ::tk::MotifFDialog_SetListMode {w} {
|
|
410
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
411
|
-
|
|
412
|
-
if {$data(-multiple) != 0} {
|
|
413
|
-
set selectmode extended
|
|
414
|
-
} else {
|
|
415
|
-
set selectmode browse
|
|
416
|
-
}
|
|
417
|
-
set f $w.top.f2.b
|
|
418
|
-
$f.l configure -selectmode $selectmode
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
# ::tk::MotifFDialog_MakeSList --
|
|
422
|
-
#
|
|
423
|
-
# Create a scrolled-listbox and set the keyboard accelerator
|
|
424
|
-
# bindings so that the list selection follows what the user
|
|
425
|
-
# types.
|
|
426
|
-
#
|
|
427
|
-
# Arguments:
|
|
428
|
-
# w Pathname of the dialog box.
|
|
429
|
-
# f Frame widget inside which to create the scrolled
|
|
430
|
-
# listbox. This frame widget already exists.
|
|
431
|
-
# label The string to display on top of the listbox.
|
|
432
|
-
# under Sets the -under option of the label.
|
|
433
|
-
# cmdPrefix Specifies procedures to call when the listbox is
|
|
434
|
-
# browsed or activated.
|
|
435
|
-
|
|
436
|
-
proc ::tk::MotifFDialog_MakeSList {w f label cmdPrefix} {
|
|
437
|
-
bind [::tk::AmpWidget label $f.lab -text $label -anchor w] \
|
|
438
|
-
<<AltUnderlined>> [list focus $f.l]
|
|
439
|
-
listbox $f.l -width 12 -height 5 -exportselection 0\
|
|
440
|
-
-xscrollcommand [list $f.h set] -yscrollcommand [list $f.v set]
|
|
441
|
-
scrollbar $f.v -orient vertical -takefocus 0 -command [list $f.l yview]
|
|
442
|
-
scrollbar $f.h -orient horizontal -takefocus 0 -command [list $f.l xview]
|
|
443
|
-
grid $f.lab -row 0 -column 0 -sticky news -rowspan 1 -columnspan 2 \
|
|
444
|
-
-padx 1.5p -pady 1.5p
|
|
445
|
-
grid $f.l -row 1 -column 0 -rowspan 1 -columnspan 1 -sticky news
|
|
446
|
-
grid $f.v -row 1 -column 1 -rowspan 1 -columnspan 1 -sticky news
|
|
447
|
-
grid $f.h -row 2 -column 0 -rowspan 1 -columnspan 1 -sticky news
|
|
448
|
-
|
|
449
|
-
grid rowconfigure $f 0 -weight 0 -minsize 0
|
|
450
|
-
grid rowconfigure $f 1 -weight 1 -minsize 0
|
|
451
|
-
grid columnconfigure $f 0 -weight 1 -minsize 0
|
|
452
|
-
|
|
453
|
-
# bindings for the listboxes
|
|
454
|
-
#
|
|
455
|
-
set list $f.l
|
|
456
|
-
bind $list <<ListboxSelect>> [list tk::MotifFDialog_Browse$cmdPrefix $w]
|
|
457
|
-
bind $list <Double-ButtonRelease-1> \
|
|
458
|
-
[list tk::MotifFDialog_Activate$cmdPrefix $w]
|
|
459
|
-
bind $list <Return> "tk::MotifFDialog_Browse$cmdPrefix [list $w]; \
|
|
460
|
-
tk::MotifFDialog_Activate$cmdPrefix [list $w]"
|
|
461
|
-
|
|
462
|
-
bindtags $list [list Listbox $list [winfo toplevel $list] all]
|
|
463
|
-
ListBoxKeyAccel_Set $list
|
|
464
|
-
|
|
465
|
-
return $f.l
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
# ::tk::MotifFDialog_InterpFilter --
|
|
469
|
-
#
|
|
470
|
-
# Interpret the string in the filter entry into two components:
|
|
471
|
-
# the directory and the pattern. If the string is a relative
|
|
472
|
-
# pathname, give a warning to the user and restore the pattern
|
|
473
|
-
# to original.
|
|
474
|
-
#
|
|
475
|
-
# Arguments:
|
|
476
|
-
# w pathname of the dialog box.
|
|
477
|
-
#
|
|
478
|
-
# Results:
|
|
479
|
-
# A list of two elements. The first element is the directory
|
|
480
|
-
# specified # by the filter. The second element is the filter
|
|
481
|
-
# pattern itself.
|
|
482
|
-
|
|
483
|
-
proc ::tk::MotifFDialog_InterpFilter {w} {
|
|
484
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
485
|
-
|
|
486
|
-
set text [string trim [$data(fEnt) get]]
|
|
487
|
-
|
|
488
|
-
# Perform tilde substitution
|
|
489
|
-
#
|
|
490
|
-
set badTilde 0
|
|
491
|
-
if {[string index $text 0] eq "~"} {
|
|
492
|
-
set list [file split $text]
|
|
493
|
-
set tilde [lindex $list 0]
|
|
494
|
-
if {[catch {set tilde [glob $tilde]}]} {
|
|
495
|
-
set badTilde 1
|
|
496
|
-
} else {
|
|
497
|
-
set text [eval file join [concat $tilde [lrange $list 1 end]]]
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
# If the string is a relative pathname, combine it
|
|
502
|
-
# with the current selectPath.
|
|
503
|
-
|
|
504
|
-
set relative 0
|
|
505
|
-
if {[file pathtype $text] eq "relative"} {
|
|
506
|
-
set relative 1
|
|
507
|
-
} elseif {$badTilde} {
|
|
508
|
-
set relative 1
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
if {$relative} {
|
|
512
|
-
tk_messageBox -icon warning -type ok \
|
|
513
|
-
-message "\"$text\" must be an absolute pathname"
|
|
514
|
-
|
|
515
|
-
$data(fEnt) delete 0 end
|
|
516
|
-
$data(fEnt) insert 0 [::tk::dialog::file::JoinFile $data(selectPath) \
|
|
517
|
-
$data(filter)]
|
|
518
|
-
|
|
519
|
-
return [list $data(selectPath) $data(filter)]
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
set resolved [::tk::dialog::file::JoinFile [file dirname $text] [file tail $text]]
|
|
523
|
-
|
|
524
|
-
if {[file isdirectory $resolved]} {
|
|
525
|
-
set dir $resolved
|
|
526
|
-
set fil $data(filter)
|
|
527
|
-
} else {
|
|
528
|
-
set dir [file dirname $resolved]
|
|
529
|
-
set fil [file tail $resolved]
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
return [list $dir $fil]
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
# ::tk::MotifFDialog_Update
|
|
536
|
-
#
|
|
537
|
-
# Load the files and synchronize the "filter" and "selection" fields
|
|
538
|
-
# boxes.
|
|
539
|
-
#
|
|
540
|
-
# Arguments:
|
|
541
|
-
# w pathname of the dialog box.
|
|
542
|
-
#
|
|
543
|
-
# Results:
|
|
544
|
-
# None.
|
|
545
|
-
|
|
546
|
-
proc ::tk::MotifFDialog_Update {w} {
|
|
547
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
548
|
-
|
|
549
|
-
$data(fEnt) delete 0 end
|
|
550
|
-
$data(fEnt) insert 0 \
|
|
551
|
-
[::tk::dialog::file::JoinFile $data(selectPath) $data(filter)]
|
|
552
|
-
$data(sEnt) delete 0 end
|
|
553
|
-
$data(sEnt) insert 0 [::tk::dialog::file::JoinFile $data(selectPath) \
|
|
554
|
-
$data(selectFile)]
|
|
555
|
-
|
|
556
|
-
MotifFDialog_LoadFiles $w
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
# ::tk::MotifFDialog_LoadFiles --
|
|
560
|
-
#
|
|
561
|
-
# Loads the files and directories into the two listboxes according
|
|
562
|
-
# to the filter setting.
|
|
563
|
-
#
|
|
564
|
-
# Arguments:
|
|
565
|
-
# w pathname of the dialog box.
|
|
566
|
-
#
|
|
567
|
-
# Results:
|
|
568
|
-
# None.
|
|
569
|
-
|
|
570
|
-
proc ::tk::MotifFDialog_LoadFiles {w} {
|
|
571
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
572
|
-
|
|
573
|
-
$data(dList) delete 0 end
|
|
574
|
-
$data(fList) delete 0 end
|
|
575
|
-
|
|
576
|
-
set appPWD [pwd]
|
|
577
|
-
if {[catch {cd $data(selectPath)}]} {
|
|
578
|
-
cd $appPWD
|
|
579
|
-
|
|
580
|
-
$data(dList) insert end ".."
|
|
581
|
-
return
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
# Make the dir and file lists
|
|
585
|
-
#
|
|
586
|
-
# For speed we only have one glob, which reduces the file system
|
|
587
|
-
# calls (good for slow NFS networks).
|
|
588
|
-
#
|
|
589
|
-
# We also do two smaller sorts (files + dirs) instead of one large sort,
|
|
590
|
-
# which gives a small speed increase.
|
|
591
|
-
#
|
|
592
|
-
set top 0
|
|
593
|
-
set dlist ""
|
|
594
|
-
set flist ""
|
|
595
|
-
foreach f [glob -nocomplain .* *] {
|
|
596
|
-
if {[file isdir ./$f]} {
|
|
597
|
-
lappend dlist $f
|
|
598
|
-
} else {
|
|
599
|
-
foreach pat $data(filter) {
|
|
600
|
-
if {[string match $pat $f]} {
|
|
601
|
-
if {[string match .* $f]} {
|
|
602
|
-
incr top
|
|
603
|
-
}
|
|
604
|
-
lappend flist $f
|
|
605
|
-
break
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
eval [list $data(dList) insert end] [lsort -dictionary $dlist]
|
|
611
|
-
eval [list $data(fList) insert end] [lsort -dictionary $flist]
|
|
612
|
-
|
|
613
|
-
# The user probably doesn't want to see the . files. We adjust the view
|
|
614
|
-
# so that the listbox displays all the non-dot files
|
|
615
|
-
$data(fList) yview $top
|
|
616
|
-
|
|
617
|
-
cd $appPWD
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
# ::tk::MotifFDialog_BrowseDList --
|
|
621
|
-
#
|
|
622
|
-
# This procedure is called when the directory list is browsed
|
|
623
|
-
# (clicked-over) by the user.
|
|
624
|
-
#
|
|
625
|
-
# Arguments:
|
|
626
|
-
# w The pathname of the dialog box.
|
|
627
|
-
#
|
|
628
|
-
# Results:
|
|
629
|
-
# None.
|
|
630
|
-
|
|
631
|
-
proc ::tk::MotifFDialog_BrowseDList {w} {
|
|
632
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
633
|
-
|
|
634
|
-
focus $data(dList)
|
|
635
|
-
if {[$data(dList) curselection] eq ""} {
|
|
636
|
-
return
|
|
637
|
-
}
|
|
638
|
-
set subdir [$data(dList) get [$data(dList) curselection]]
|
|
639
|
-
if {$subdir eq ""} {
|
|
640
|
-
return
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
$data(fList) selection clear 0 end
|
|
644
|
-
|
|
645
|
-
set list [MotifFDialog_InterpFilter $w]
|
|
646
|
-
set data(filter) [lindex $list 1]
|
|
647
|
-
|
|
648
|
-
switch -- $subdir {
|
|
649
|
-
. {
|
|
650
|
-
set newSpec [::tk::dialog::file::JoinFile $data(selectPath) $data(filter)]
|
|
651
|
-
}
|
|
652
|
-
.. {
|
|
653
|
-
set newSpec [::tk::dialog::file::JoinFile [file dirname $data(selectPath)] \
|
|
654
|
-
$data(filter)]
|
|
655
|
-
}
|
|
656
|
-
default {
|
|
657
|
-
set newSpec [::tk::dialog::file::JoinFile [::tk::dialog::file::JoinFile \
|
|
658
|
-
$data(selectPath) $subdir] $data(filter)]
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
$data(fEnt) delete 0 end
|
|
663
|
-
$data(fEnt) insert 0 $newSpec
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
# ::tk::MotifFDialog_ActivateDList --
|
|
667
|
-
#
|
|
668
|
-
# This procedure is called when the directory list is activated
|
|
669
|
-
# (double-clicked) by the user.
|
|
670
|
-
#
|
|
671
|
-
# Arguments:
|
|
672
|
-
# w The pathname of the dialog box.
|
|
673
|
-
#
|
|
674
|
-
# Results:
|
|
675
|
-
# None.
|
|
676
|
-
|
|
677
|
-
proc ::tk::MotifFDialog_ActivateDList {w} {
|
|
678
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
679
|
-
|
|
680
|
-
if {[$data(dList) curselection] eq ""} {
|
|
681
|
-
return
|
|
682
|
-
}
|
|
683
|
-
set subdir [$data(dList) get [$data(dList) curselection]]
|
|
684
|
-
if {$subdir eq ""} {
|
|
685
|
-
return
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
$data(fList) selection clear 0 end
|
|
689
|
-
|
|
690
|
-
switch -- $subdir {
|
|
691
|
-
. {
|
|
692
|
-
set newDir $data(selectPath)
|
|
693
|
-
}
|
|
694
|
-
.. {
|
|
695
|
-
set newDir [file dirname $data(selectPath)]
|
|
696
|
-
}
|
|
697
|
-
default {
|
|
698
|
-
set newDir [::tk::dialog::file::JoinFile $data(selectPath) $subdir]
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
set data(selectPath) $newDir
|
|
703
|
-
MotifFDialog_Update $w
|
|
704
|
-
|
|
705
|
-
if {$subdir ne ".."} {
|
|
706
|
-
$data(dList) selection set 0
|
|
707
|
-
$data(dList) activate 0
|
|
708
|
-
} else {
|
|
709
|
-
$data(dList) selection set 1
|
|
710
|
-
$data(dList) activate 1
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
# ::tk::MotifFDialog_BrowseFList --
|
|
715
|
-
#
|
|
716
|
-
# This procedure is called when the file list is browsed
|
|
717
|
-
# (clicked-over) by the user.
|
|
718
|
-
#
|
|
719
|
-
# Arguments:
|
|
720
|
-
# w The pathname of the dialog box.
|
|
721
|
-
#
|
|
722
|
-
# Results:
|
|
723
|
-
# None.
|
|
724
|
-
|
|
725
|
-
proc ::tk::MotifFDialog_BrowseFList {w} {
|
|
726
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
727
|
-
|
|
728
|
-
focus $data(fList)
|
|
729
|
-
set data(selectFile) ""
|
|
730
|
-
foreach item [$data(fList) curselection] {
|
|
731
|
-
lappend data(selectFile) [$data(fList) get $item]
|
|
732
|
-
}
|
|
733
|
-
if {[llength $data(selectFile)] == 0} {
|
|
734
|
-
return
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
$data(dList) selection clear 0 end
|
|
738
|
-
|
|
739
|
-
$data(fEnt) delete 0 end
|
|
740
|
-
$data(fEnt) insert 0 [::tk::dialog::file::JoinFile $data(selectPath) \
|
|
741
|
-
$data(filter)]
|
|
742
|
-
$data(fEnt) xview end
|
|
743
|
-
|
|
744
|
-
# if it's a multiple selection box, just put in the filenames
|
|
745
|
-
# otherwise put in the full path as usual
|
|
746
|
-
$data(sEnt) delete 0 end
|
|
747
|
-
if {$data(-multiple) != 0} {
|
|
748
|
-
$data(sEnt) insert 0 $data(selectFile)
|
|
749
|
-
} else {
|
|
750
|
-
$data(sEnt) insert 0 [::tk::dialog::file::JoinFile $data(selectPath) \
|
|
751
|
-
[lindex $data(selectFile) 0]]
|
|
752
|
-
}
|
|
753
|
-
$data(sEnt) xview end
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
# ::tk::MotifFDialog_ActivateFList --
|
|
757
|
-
#
|
|
758
|
-
# This procedure is called when the file list is activated
|
|
759
|
-
# (double-clicked) by the user.
|
|
760
|
-
#
|
|
761
|
-
# Arguments:
|
|
762
|
-
# w The pathname of the dialog box.
|
|
763
|
-
#
|
|
764
|
-
# Results:
|
|
765
|
-
# None.
|
|
766
|
-
|
|
767
|
-
proc ::tk::MotifFDialog_ActivateFList {w} {
|
|
768
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
769
|
-
|
|
770
|
-
if {[$data(fList) curselection] eq ""} {
|
|
771
|
-
return
|
|
772
|
-
}
|
|
773
|
-
set data(selectFile) [$data(fList) get [$data(fList) curselection]]
|
|
774
|
-
if {$data(selectFile) eq ""} {
|
|
775
|
-
return
|
|
776
|
-
} else {
|
|
777
|
-
MotifFDialog_ActivateSEnt $w
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
# ::tk::MotifFDialog_ActivateFEnt --
|
|
782
|
-
#
|
|
783
|
-
# This procedure is called when the user presses Return inside
|
|
784
|
-
# the "filter" entry. It updates the dialog according to the
|
|
785
|
-
# text inside the filter entry.
|
|
786
|
-
#
|
|
787
|
-
# Arguments:
|
|
788
|
-
# w The pathname of the dialog box.
|
|
789
|
-
#
|
|
790
|
-
# Results:
|
|
791
|
-
# None.
|
|
792
|
-
|
|
793
|
-
proc ::tk::MotifFDialog_ActivateFEnt {w} {
|
|
794
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
795
|
-
|
|
796
|
-
set list [MotifFDialog_InterpFilter $w]
|
|
797
|
-
set data(selectPath) [lindex $list 0]
|
|
798
|
-
set data(filter) [lindex $list 1]
|
|
799
|
-
|
|
800
|
-
MotifFDialog_Update $w
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
# ::tk::MotifFDialog_ActivateSEnt --
|
|
804
|
-
#
|
|
805
|
-
# This procedure is called when the user presses Return inside
|
|
806
|
-
# the "selection" entry. It sets the ::tk::Priv(selectFilePath)
|
|
807
|
-
# variable so that the vwait loop in tk::MotifFDialog will be
|
|
808
|
-
# terminated.
|
|
809
|
-
#
|
|
810
|
-
# Arguments:
|
|
811
|
-
# w The pathname of the dialog box.
|
|
812
|
-
#
|
|
813
|
-
# Results:
|
|
814
|
-
# None.
|
|
815
|
-
|
|
816
|
-
proc ::tk::MotifFDialog_ActivateSEnt {w} {
|
|
817
|
-
variable ::tk::Priv
|
|
818
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
819
|
-
|
|
820
|
-
set selectFilePath [string trim [$data(sEnt) get]]
|
|
821
|
-
|
|
822
|
-
if {$selectFilePath eq ""} {
|
|
823
|
-
MotifFDialog_FilterCmd $w
|
|
824
|
-
return
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
if {$data(-multiple) == 0} {
|
|
828
|
-
set selectFilePath [list $selectFilePath]
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
if {[file isdirectory [lindex $selectFilePath 0]]} {
|
|
832
|
-
set data(selectPath) [lindex [glob $selectFilePath] 0]
|
|
833
|
-
set data(selectFile) ""
|
|
834
|
-
MotifFDialog_Update $w
|
|
835
|
-
return
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
set newFileList ""
|
|
839
|
-
foreach item $selectFilePath {
|
|
840
|
-
if {[file pathtype $item] ne "absolute"} {
|
|
841
|
-
set item [file join $data(selectPath) $item]
|
|
842
|
-
} elseif {![file exists [file dirname $item]]} {
|
|
843
|
-
tk_messageBox -icon warning -type ok \
|
|
844
|
-
-message [mc {Directory "%1$s" does not exist.} \
|
|
845
|
-
[file dirname $item]]
|
|
846
|
-
return
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
if {![file exists $item]} {
|
|
850
|
-
if {$data(type) eq "open"} {
|
|
851
|
-
tk_messageBox -icon warning -type ok \
|
|
852
|
-
-message [mc {File "%1$s" does not exist.} $item]
|
|
853
|
-
return
|
|
854
|
-
}
|
|
855
|
-
} elseif {$data(type) eq "save" && $data(-confirmoverwrite)} {
|
|
856
|
-
set message [format %s%s \
|
|
857
|
-
[mc "File \"%1\$s\" already exists.\n\n" $selectFilePath] \
|
|
858
|
-
[mc {Replace existing file?}]]
|
|
859
|
-
set answer [tk_messageBox -icon warning -type yesno \
|
|
860
|
-
-message $message]
|
|
861
|
-
if {$answer eq "no"} {
|
|
862
|
-
return
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
lappend newFileList $item
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
# Return selected filter
|
|
870
|
-
if {[info exists data(-typevariable)] && $data(-typevariable) ne ""
|
|
871
|
-
&& [info exists data(-filetypes)] && $data(-filetypes) ne ""} {
|
|
872
|
-
upvar #0 $data(-typevariable) typeVariable
|
|
873
|
-
set typeVariable [lindex $data(origfiletypes) $data(fileType) 0]
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
if {$data(-multiple) != 0} {
|
|
877
|
-
set Priv(selectFilePath) $newFileList
|
|
878
|
-
} else {
|
|
879
|
-
set Priv(selectFilePath) [lindex $newFileList 0]
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
# Set selectFile and selectPath to first item in list
|
|
883
|
-
set Priv(selectFile) [file tail [lindex $newFileList 0]]
|
|
884
|
-
set Priv(selectPath) [file dirname [lindex $newFileList 0]]
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
proc ::tk::MotifFDialog_OkCmd {w} {
|
|
889
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
890
|
-
|
|
891
|
-
MotifFDialog_ActivateSEnt $w
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
proc ::tk::MotifFDialog_FilterCmd {w} {
|
|
895
|
-
upvar ::tk::dialog::file::[winfo name $w] data
|
|
896
|
-
|
|
897
|
-
MotifFDialog_ActivateFEnt $w
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
proc ::tk::MotifFDialog_CancelCmd {w} {
|
|
901
|
-
variable ::tk::Priv
|
|
902
|
-
|
|
903
|
-
set Priv(selectFilePath) ""
|
|
904
|
-
set Priv(selectFile) ""
|
|
905
|
-
set Priv(selectPath) ""
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
proc ::tk::ListBoxKeyAccel_Set {w} {
|
|
909
|
-
bind Listbox <Key> ""
|
|
910
|
-
bind $w <Destroy> [list tk::ListBoxKeyAccel_Unset $w]
|
|
911
|
-
bind $w <Key> [list tk::ListBoxKeyAccel_Key $w %A]
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
proc ::tk::ListBoxKeyAccel_Unset {w} {
|
|
915
|
-
variable ::tk::Priv
|
|
916
|
-
|
|
917
|
-
catch {after cancel $Priv(lbAccel,$w,afterId)}
|
|
918
|
-
unset -nocomplain Priv(lbAccel,$w) Priv(lbAccel,$w,afterId)
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
# ::tk::ListBoxKeyAccel_Key--
|
|
922
|
-
#
|
|
923
|
-
# This procedure maintains a list of recently entered keystrokes
|
|
924
|
-
# over a listbox widget. It arranges an idle event to move the
|
|
925
|
-
# selection of the listbox to the entry that begins with the
|
|
926
|
-
# keystrokes.
|
|
927
|
-
#
|
|
928
|
-
# Arguments:
|
|
929
|
-
# w The pathname of the listbox.
|
|
930
|
-
# key The key which the user just pressed.
|
|
931
|
-
#
|
|
932
|
-
# Results:
|
|
933
|
-
# None.
|
|
934
|
-
|
|
935
|
-
proc ::tk::ListBoxKeyAccel_Key {w key} {
|
|
936
|
-
variable ::tk::Priv
|
|
937
|
-
|
|
938
|
-
if { $key eq "" } {
|
|
939
|
-
return
|
|
940
|
-
}
|
|
941
|
-
append Priv(lbAccel,$w) $key
|
|
942
|
-
ListBoxKeyAccel_Goto $w $Priv(lbAccel,$w)
|
|
943
|
-
catch {
|
|
944
|
-
after cancel $Priv(lbAccel,$w,afterId)
|
|
945
|
-
}
|
|
946
|
-
set Priv(lbAccel,$w,afterId) [after 500 \
|
|
947
|
-
[list tk::ListBoxKeyAccel_Reset $w]]
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
proc ::tk::ListBoxKeyAccel_Goto {w string} {
|
|
951
|
-
variable ::tk::Priv
|
|
952
|
-
|
|
953
|
-
set string [string tolower $string]
|
|
954
|
-
set end [$w index end]
|
|
955
|
-
set theIndex -1
|
|
956
|
-
|
|
957
|
-
for {set i 0} {$i < $end} {incr i} {
|
|
958
|
-
set item [string tolower [$w get $i]]
|
|
959
|
-
if {[string compare $string $item] >= 0} {
|
|
960
|
-
set theIndex $i
|
|
961
|
-
}
|
|
962
|
-
if {[string compare $string $item] <= 0} {
|
|
963
|
-
set theIndex $i
|
|
964
|
-
break
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
if {$theIndex >= 0} {
|
|
969
|
-
$w selection clear 0 end
|
|
970
|
-
$w selection set $theIndex $theIndex
|
|
971
|
-
$w activate $theIndex
|
|
972
|
-
$w see $theIndex
|
|
973
|
-
event generate $w <<ListboxSelect>>
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
proc ::tk::ListBoxKeyAccel_Reset {w} {
|
|
978
|
-
variable ::tk::Priv
|
|
979
|
-
|
|
980
|
-
unset -nocomplain Priv(lbAccel,$w)
|
|
981
|
-
}
|
|
982
|
-
|