@tedbrain/vlink 0.0.0-dpv2.ted-runner.python-darwin-arm64.3.12.10-dpv2.1.r5 → 0.0.0-dpv2.ted-runner.plugin.0.1.1.r6

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.
Files changed (1882) hide show
  1. package/README.md +59 -0
  2. package/entry.py +5 -0
  3. package/openapi.yaml +739 -0
  4. package/package.json +1 -1
  5. package/plugin_cli.py +253 -0
  6. package/runtime/cli.ps1 +4 -0
  7. package/runtime/cli.sh +5 -0
  8. package/ted_runner_dpv2/__init__.py +5 -0
  9. package/ted_runner_dpv2/auth.py +95 -0
  10. package/ted_runner_dpv2/executor/__init__.py +8 -0
  11. package/ted_runner_dpv2/executor/isolated.py +111 -0
  12. package/ted_runner_dpv2/executor/launch.py +115 -0
  13. package/ted_runner_dpv2/executor/local.py +43 -0
  14. package/ted_runner_dpv2/executor/plan.py +290 -0
  15. package/ted_runner_dpv2/executor/podman.py +143 -0
  16. package/ted_runner_dpv2/files.py +204 -0
  17. package/ted_runner_dpv2/joblog.py +81 -0
  18. package/ted_runner_dpv2/jobrun/__init__.py +12 -0
  19. package/ted_runner_dpv2/jobrun/artifacts.py +90 -0
  20. package/ted_runner_dpv2/jobrun/environment.py +37 -0
  21. package/ted_runner_dpv2/jobrun/supervisor.py +313 -0
  22. package/ted_runner_dpv2/jobrun/worker.py +55 -0
  23. package/ted_runner_dpv2/jobs.py +300 -0
  24. package/ted_runner_dpv2/jsonio.py +57 -0
  25. package/ted_runner_dpv2/language.py +93 -0
  26. package/ted_runner_dpv2/lease.py +137 -0
  27. package/ted_runner_dpv2/pdk.py +133 -0
  28. package/ted_runner_dpv2/policy.py +73 -0
  29. package/ted_runner_dpv2/relay.py +283 -0
  30. package/ted_runner_dpv2/service.py +512 -0
  31. package/ted_runner_dpv2/worker.py +430 -0
  32. package/tedbrain_plugin_runtime/__init__.py +2 -0
  33. package/tedbrain_plugin_runtime/admission.py +39 -0
  34. package/tedbrain_plugin_runtime/auth.py +92 -0
  35. package/tedbrain_plugin_runtime/bootstrap.py +110 -0
  36. package/tedbrain_plugin_runtime/cli.py +238 -0
  37. package/tedbrain_plugin_runtime/engine.py +132 -0
  38. package/tedbrain_plugin_runtime/executor.py +115 -0
  39. package/tedbrain_plugin_runtime/handoff.py +193 -0
  40. package/tedbrain_plugin_runtime/installer.py +400 -0
  41. package/tedbrain_plugin_runtime/jobs.py +293 -0
  42. package/tedbrain_plugin_runtime/launcher.py +122 -0
  43. package/tedbrain_plugin_runtime/ops.py +311 -0
  44. package/tedbrain_plugin_runtime/publication.py +53 -0
  45. package/tedbrain_plugin_runtime/request_contract.py +226 -0
  46. package/tedbrain_plugin_runtime/rungc.py +178 -0
  47. package/tedbrain_plugin_runtime/service.py +382 -0
  48. package/tedbrain_plugin_runtime/sessions.py +96 -0
  49. package/tedbrain_plugin_runtime/ssh_workstation.py +40 -0
  50. package/tedbrain_plugin_runtime/supervisor.py +165 -0
  51. package/tedbrain_plugin_runtime/worker.py +345 -0
  52. package/tedbrain_plugin_runtime/workstations.py +170 -0
  53. package/BUILD +0 -1
  54. package/bin/2to3 +0 -7
  55. package/bin/2to3-3.12 +0 -7
  56. package/bin/idle3 +0 -7
  57. package/bin/idle3.12 +0 -7
  58. package/bin/pip +0 -10
  59. package/bin/pip3 +0 -10
  60. package/bin/pip3.12 +0 -10
  61. package/bin/pydoc3 +0 -7
  62. package/bin/pydoc3.12 +0 -7
  63. package/bin/python +0 -0
  64. package/bin/python3 +0 -0
  65. package/bin/python3-config +0 -76
  66. package/bin/python3.12 +0 -0
  67. package/bin/python3.12-config +0 -76
  68. package/include/python3.12/Python.h +0 -109
  69. package/include/python3.12/abstract.h +0 -899
  70. package/include/python3.12/bltinmodule.h +0 -14
  71. package/include/python3.12/boolobject.h +0 -42
  72. package/include/python3.12/bytearrayobject.h +0 -44
  73. package/include/python3.12/bytesobject.h +0 -69
  74. package/include/python3.12/ceval.h +0 -168
  75. package/include/python3.12/codecs.h +0 -248
  76. package/include/python3.12/compile.h +0 -22
  77. package/include/python3.12/complexobject.h +0 -30
  78. package/include/python3.12/cpython/abstract.h +0 -206
  79. package/include/python3.12/cpython/bytearrayobject.h +0 -34
  80. package/include/python3.12/cpython/bytesobject.h +0 -129
  81. package/include/python3.12/cpython/cellobject.h +0 -44
  82. package/include/python3.12/cpython/ceval.h +0 -35
  83. package/include/python3.12/cpython/classobject.h +0 -71
  84. package/include/python3.12/cpython/code.h +0 -389
  85. package/include/python3.12/cpython/compile.h +0 -69
  86. package/include/python3.12/cpython/complexobject.h +0 -44
  87. package/include/python3.12/cpython/context.h +0 -78
  88. package/include/python3.12/cpython/descrobject.h +0 -64
  89. package/include/python3.12/cpython/dictobject.h +0 -118
  90. package/include/python3.12/cpython/fileobject.h +0 -19
  91. package/include/python3.12/cpython/fileutils.h +0 -8
  92. package/include/python3.12/cpython/floatobject.h +0 -27
  93. package/include/python3.12/cpython/frameobject.h +0 -29
  94. package/include/python3.12/cpython/funcobject.h +0 -190
  95. package/include/python3.12/cpython/genobject.h +0 -89
  96. package/include/python3.12/cpython/import.h +0 -46
  97. package/include/python3.12/cpython/initconfig.h +0 -256
  98. package/include/python3.12/cpython/interpreteridobject.h +0 -11
  99. package/include/python3.12/cpython/listobject.h +0 -47
  100. package/include/python3.12/cpython/longintrepr.h +0 -133
  101. package/include/python3.12/cpython/longobject.h +0 -100
  102. package/include/python3.12/cpython/memoryobject.h +0 -52
  103. package/include/python3.12/cpython/methodobject.h +0 -66
  104. package/include/python3.12/cpython/modsupport.h +0 -109
  105. package/include/python3.12/cpython/object.h +0 -575
  106. package/include/python3.12/cpython/objimpl.h +0 -95
  107. package/include/python3.12/cpython/odictobject.h +0 -43
  108. package/include/python3.12/cpython/picklebufobject.h +0 -31
  109. package/include/python3.12/cpython/pthread_stubs.h +0 -88
  110. package/include/python3.12/cpython/pyctype.h +0 -39
  111. package/include/python3.12/cpython/pydebug.h +0 -38
  112. package/include/python3.12/cpython/pyerrors.h +0 -178
  113. package/include/python3.12/cpython/pyfpe.h +0 -15
  114. package/include/python3.12/cpython/pyframe.h +0 -35
  115. package/include/python3.12/cpython/pylifecycle.h +0 -111
  116. package/include/python3.12/cpython/pymem.h +0 -98
  117. package/include/python3.12/cpython/pystate.h +0 -456
  118. package/include/python3.12/cpython/pythonrun.h +0 -121
  119. package/include/python3.12/cpython/pythread.h +0 -42
  120. package/include/python3.12/cpython/pytime.h +0 -331
  121. package/include/python3.12/cpython/setobject.h +0 -72
  122. package/include/python3.12/cpython/sysmodule.h +0 -16
  123. package/include/python3.12/cpython/traceback.h +0 -16
  124. package/include/python3.12/cpython/tupleobject.h +0 -39
  125. package/include/python3.12/cpython/unicodeobject.h +0 -963
  126. package/include/python3.12/cpython/warnings.h +0 -20
  127. package/include/python3.12/cpython/weakrefobject.h +0 -56
  128. package/include/python3.12/datetime.h +0 -267
  129. package/include/python3.12/descrobject.h +0 -100
  130. package/include/python3.12/dictobject.h +0 -97
  131. package/include/python3.12/dynamic_annotations.h +0 -499
  132. package/include/python3.12/enumobject.h +0 -17
  133. package/include/python3.12/errcode.h +0 -38
  134. package/include/python3.12/exports.h +0 -36
  135. package/include/python3.12/fileobject.h +0 -49
  136. package/include/python3.12/fileutils.h +0 -26
  137. package/include/python3.12/floatobject.h +0 -54
  138. package/include/python3.12/frameobject.h +0 -20
  139. package/include/python3.12/genericaliasobject.h +0 -14
  140. package/include/python3.12/import.h +0 -98
  141. package/include/python3.12/internal/pycore_abstract.h +0 -25
  142. package/include/python3.12/internal/pycore_asdl.h +0 -112
  143. package/include/python3.12/internal/pycore_ast.h +0 -922
  144. package/include/python3.12/internal/pycore_ast_state.h +0 -265
  145. package/include/python3.12/internal/pycore_atexit.h +0 -57
  146. package/include/python3.12/internal/pycore_atomic.h +0 -557
  147. package/include/python3.12/internal/pycore_atomic_funcs.h +0 -94
  148. package/include/python3.12/internal/pycore_bitutils.h +0 -186
  149. package/include/python3.12/internal/pycore_blocks_output_buffer.h +0 -317
  150. package/include/python3.12/internal/pycore_bytes_methods.h +0 -73
  151. package/include/python3.12/internal/pycore_bytesobject.h +0 -47
  152. package/include/python3.12/internal/pycore_call.h +0 -133
  153. package/include/python3.12/internal/pycore_ceval.h +0 -164
  154. package/include/python3.12/internal/pycore_ceval_state.h +0 -103
  155. package/include/python3.12/internal/pycore_code.h +0 -496
  156. package/include/python3.12/internal/pycore_compile.h +0 -118
  157. package/include/python3.12/internal/pycore_condvar.h +0 -99
  158. package/include/python3.12/internal/pycore_context.h +0 -71
  159. package/include/python3.12/internal/pycore_descrobject.h +0 -26
  160. package/include/python3.12/internal/pycore_dict.h +0 -199
  161. package/include/python3.12/internal/pycore_dict_state.h +0 -50
  162. package/include/python3.12/internal/pycore_dtoa.h +0 -69
  163. package/include/python3.12/internal/pycore_emscripten_signal.h +0 -25
  164. package/include/python3.12/internal/pycore_exceptions.h +0 -37
  165. package/include/python3.12/internal/pycore_faulthandler.h +0 -99
  166. package/include/python3.12/internal/pycore_fileutils.h +0 -292
  167. package/include/python3.12/internal/pycore_fileutils_windows.h +0 -98
  168. package/include/python3.12/internal/pycore_floatobject.h +0 -71
  169. package/include/python3.12/internal/pycore_flowgraph.h +0 -120
  170. package/include/python3.12/internal/pycore_format.h +0 -27
  171. package/include/python3.12/internal/pycore_frame.h +0 -283
  172. package/include/python3.12/internal/pycore_function.h +0 -26
  173. package/include/python3.12/internal/pycore_gc.h +0 -211
  174. package/include/python3.12/internal/pycore_genobject.h +0 -49
  175. package/include/python3.12/internal/pycore_getopt.h +0 -22
  176. package/include/python3.12/internal/pycore_gil.h +0 -50
  177. package/include/python3.12/internal/pycore_global_objects.h +0 -105
  178. package/include/python3.12/internal/pycore_global_objects_fini_generated.h +0 -1517
  179. package/include/python3.12/internal/pycore_global_strings.h +0 -777
  180. package/include/python3.12/internal/pycore_hamt.h +0 -134
  181. package/include/python3.12/internal/pycore_hashtable.h +0 -149
  182. package/include/python3.12/internal/pycore_import.h +0 -183
  183. package/include/python3.12/internal/pycore_initconfig.h +0 -179
  184. package/include/python3.12/internal/pycore_instruments.h +0 -106
  185. package/include/python3.12/internal/pycore_interp.h +0 -275
  186. package/include/python3.12/internal/pycore_intrinsics.h +0 -32
  187. package/include/python3.12/internal/pycore_list.h +0 -83
  188. package/include/python3.12/internal/pycore_long.h +0 -258
  189. package/include/python3.12/internal/pycore_memoryobject.h +0 -18
  190. package/include/python3.12/internal/pycore_moduleobject.h +0 -45
  191. package/include/python3.12/internal/pycore_namespace.h +0 -20
  192. package/include/python3.12/internal/pycore_object.h +0 -455
  193. package/include/python3.12/internal/pycore_object_state.h +0 -42
  194. package/include/python3.12/internal/pycore_obmalloc.h +0 -700
  195. package/include/python3.12/internal/pycore_obmalloc_init.h +0 -73
  196. package/include/python3.12/internal/pycore_opcode.h +0 -587
  197. package/include/python3.12/internal/pycore_opcode_utils.h +0 -92
  198. package/include/python3.12/internal/pycore_parser.h +0 -66
  199. package/include/python3.12/internal/pycore_pathconfig.h +0 -24
  200. package/include/python3.12/internal/pycore_pyarena.h +0 -64
  201. package/include/python3.12/internal/pycore_pyerrors.h +0 -129
  202. package/include/python3.12/internal/pycore_pyhash.h +0 -40
  203. package/include/python3.12/internal/pycore_pylifecycle.h +0 -99
  204. package/include/python3.12/internal/pycore_pymath.h +0 -205
  205. package/include/python3.12/internal/pycore_pymem.h +0 -98
  206. package/include/python3.12/internal/pycore_pymem_init.h +0 -85
  207. package/include/python3.12/internal/pycore_pystate.h +0 -180
  208. package/include/python3.12/internal/pycore_pythread.h +0 -81
  209. package/include/python3.12/internal/pycore_range.h +0 -21
  210. package/include/python3.12/internal/pycore_runtime.h +0 -235
  211. package/include/python3.12/internal/pycore_runtime_init.h +0 -188
  212. package/include/python3.12/internal/pycore_runtime_init_generated.h +0 -1511
  213. package/include/python3.12/internal/pycore_signal.h +0 -98
  214. package/include/python3.12/internal/pycore_sliceobject.h +0 -22
  215. package/include/python3.12/internal/pycore_strhex.h +0 -36
  216. package/include/python3.12/internal/pycore_structseq.h +0 -39
  217. package/include/python3.12/internal/pycore_symtable.h +0 -160
  218. package/include/python3.12/internal/pycore_sysmodule.h +0 -34
  219. package/include/python3.12/internal/pycore_time.h +0 -25
  220. package/include/python3.12/internal/pycore_token.h +0 -108
  221. package/include/python3.12/internal/pycore_traceback.h +0 -101
  222. package/include/python3.12/internal/pycore_tracemalloc.h +0 -123
  223. package/include/python3.12/internal/pycore_tuple.h +0 -79
  224. package/include/python3.12/internal/pycore_typeobject.h +0 -151
  225. package/include/python3.12/internal/pycore_typevarobject.h +0 -24
  226. package/include/python3.12/internal/pycore_ucnhash.h +0 -34
  227. package/include/python3.12/internal/pycore_unicodeobject.h +0 -86
  228. package/include/python3.12/internal/pycore_unicodeobject_generated.h +0 -2832
  229. package/include/python3.12/internal/pycore_unionobject.h +0 -23
  230. package/include/python3.12/internal/pycore_warnings.h +0 -29
  231. package/include/python3.12/interpreteridobject.h +0 -17
  232. package/include/python3.12/intrcheck.h +0 -30
  233. package/include/python3.12/iterobject.h +0 -27
  234. package/include/python3.12/listobject.h +0 -52
  235. package/include/python3.12/longobject.h +0 -108
  236. package/include/python3.12/marshal.h +0 -31
  237. package/include/python3.12/memoryobject.h +0 -34
  238. package/include/python3.12/methodobject.h +0 -132
  239. package/include/python3.12/modsupport.h +0 -168
  240. package/include/python3.12/moduleobject.h +0 -119
  241. package/include/python3.12/object.h +0 -993
  242. package/include/python3.12/objimpl.h +0 -234
  243. package/include/python3.12/opcode.h +0 -271
  244. package/include/python3.12/osdefs.h +0 -51
  245. package/include/python3.12/osmodule.h +0 -17
  246. package/include/python3.12/patchlevel.h +0 -35
  247. package/include/python3.12/py_curses.h +0 -99
  248. package/include/python3.12/pybuffer.h +0 -145
  249. package/include/python3.12/pycapsule.h +0 -59
  250. package/include/python3.12/pyconfig.h +0 -1940
  251. package/include/python3.12/pydtrace.h +0 -59
  252. package/include/python3.12/pyerrors.h +0 -337
  253. package/include/python3.12/pyexpat.h +0 -57
  254. package/include/python3.12/pyframe.h +0 -26
  255. package/include/python3.12/pyhash.h +0 -144
  256. package/include/python3.12/pylifecycle.h +0 -78
  257. package/include/python3.12/pymacconfig.h +0 -99
  258. package/include/python3.12/pymacro.h +0 -172
  259. package/include/python3.12/pymath.h +0 -62
  260. package/include/python3.12/pymem.h +0 -104
  261. package/include/python3.12/pyport.h +0 -782
  262. package/include/python3.12/pystate.h +0 -132
  263. package/include/python3.12/pystats.h +0 -110
  264. package/include/python3.12/pystrcmp.h +0 -23
  265. package/include/python3.12/pystrtod.h +0 -46
  266. package/include/python3.12/pythonrun.h +0 -49
  267. package/include/python3.12/pythread.h +0 -135
  268. package/include/python3.12/pytypedefs.h +0 -30
  269. package/include/python3.12/rangeobject.h +0 -27
  270. package/include/python3.12/setobject.h +0 -49
  271. package/include/python3.12/sliceobject.h +0 -65
  272. package/include/python3.12/structmember.h +0 -56
  273. package/include/python3.12/structseq.h +0 -49
  274. package/include/python3.12/sysmodule.h +0 -54
  275. package/include/python3.12/traceback.h +0 -26
  276. package/include/python3.12/tracemalloc.h +0 -77
  277. package/include/python3.12/tupleobject.h +0 -46
  278. package/include/python3.12/typeslots.h +0 -88
  279. package/include/python3.12/unicodeobject.h +0 -1020
  280. package/include/python3.12/warnings.h +0 -45
  281. package/include/python3.12/weakrefobject.h +0 -42
  282. package/lib/itcl4.2.4/itcl.tcl +0 -151
  283. package/lib/itcl4.2.4/itclConfig.sh +0 -67
  284. package/lib/itcl4.2.4/itclHullCmds.tcl +0 -562
  285. package/lib/itcl4.2.4/itclWidget.tcl +0 -447
  286. package/lib/itcl4.2.4/libitcl4.2.4.a +0 -0
  287. package/lib/itcl4.2.4/libitclstub4.2.4.a +0 -0
  288. package/lib/libpython3.12.dylib +0 -0
  289. package/lib/pkgconfig/python-3.12-embed.pc +0 -13
  290. package/lib/pkgconfig/python-3.12.pc +0 -13
  291. package/lib/pkgconfig/python3-embed.pc +0 -13
  292. package/lib/pkgconfig/python3.pc +0 -13
  293. package/lib/python3.12/EXTERNALLY-MANAGED +0 -2
  294. package/lib/python3.12/LICENSE.txt +0 -279
  295. package/lib/python3.12/__future__.py +0 -147
  296. package/lib/python3.12/__hello__.py +0 -16
  297. package/lib/python3.12/__phello__/__init__.py +0 -7
  298. package/lib/python3.12/__phello__/spam.py +0 -7
  299. package/lib/python3.12/_aix_support.py +0 -108
  300. package/lib/python3.12/_collections_abc.py +0 -1173
  301. package/lib/python3.12/_compat_pickle.py +0 -252
  302. package/lib/python3.12/_compression.py +0 -162
  303. package/lib/python3.12/_markupbase.py +0 -396
  304. package/lib/python3.12/_osx_support.py +0 -579
  305. package/lib/python3.12/_py_abc.py +0 -147
  306. package/lib/python3.12/_pydatetime.py +0 -2643
  307. package/lib/python3.12/_pydecimal.py +0 -6339
  308. package/lib/python3.12/_pyio.py +0 -2698
  309. package/lib/python3.12/_pylong.py +0 -329
  310. package/lib/python3.12/_sitebuiltins.py +0 -103
  311. package/lib/python3.12/_strptime.py +0 -664
  312. package/lib/python3.12/_sysconfigdata__darwin_darwin.py +0 -986
  313. package/lib/python3.12/_threading_local.py +0 -242
  314. package/lib/python3.12/_weakrefset.py +0 -205
  315. package/lib/python3.12/abc.py +0 -188
  316. package/lib/python3.12/aifc.py +0 -984
  317. package/lib/python3.12/antigravity.py +0 -17
  318. package/lib/python3.12/argparse.py +0 -2650
  319. package/lib/python3.12/ast.py +0 -1840
  320. package/lib/python3.12/asyncio/__init__.py +0 -47
  321. package/lib/python3.12/asyncio/__main__.py +0 -128
  322. package/lib/python3.12/asyncio/base_events.py +0 -2024
  323. package/lib/python3.12/asyncio/base_futures.py +0 -67
  324. package/lib/python3.12/asyncio/base_subprocess.py +0 -285
  325. package/lib/python3.12/asyncio/base_tasks.py +0 -94
  326. package/lib/python3.12/asyncio/constants.py +0 -41
  327. package/lib/python3.12/asyncio/coroutines.py +0 -109
  328. package/lib/python3.12/asyncio/events.py +0 -868
  329. package/lib/python3.12/asyncio/exceptions.py +0 -62
  330. package/lib/python3.12/asyncio/format_helpers.py +0 -76
  331. package/lib/python3.12/asyncio/futures.py +0 -430
  332. package/lib/python3.12/asyncio/locks.py +0 -586
  333. package/lib/python3.12/asyncio/log.py +0 -7
  334. package/lib/python3.12/asyncio/mixins.py +0 -21
  335. package/lib/python3.12/asyncio/proactor_events.py +0 -897
  336. package/lib/python3.12/asyncio/protocols.py +0 -216
  337. package/lib/python3.12/asyncio/queues.py +0 -244
  338. package/lib/python3.12/asyncio/runners.py +0 -216
  339. package/lib/python3.12/asyncio/selector_events.py +0 -1324
  340. package/lib/python3.12/asyncio/sslproto.py +0 -929
  341. package/lib/python3.12/asyncio/staggered.py +0 -174
  342. package/lib/python3.12/asyncio/streams.py +0 -770
  343. package/lib/python3.12/asyncio/subprocess.py +0 -229
  344. package/lib/python3.12/asyncio/taskgroups.py +0 -268
  345. package/lib/python3.12/asyncio/tasks.py +0 -1065
  346. package/lib/python3.12/asyncio/threads.py +0 -25
  347. package/lib/python3.12/asyncio/timeouts.py +0 -168
  348. package/lib/python3.12/asyncio/transports.py +0 -335
  349. package/lib/python3.12/asyncio/trsock.py +0 -98
  350. package/lib/python3.12/asyncio/unix_events.py +0 -1500
  351. package/lib/python3.12/asyncio/windows_events.py +0 -901
  352. package/lib/python3.12/asyncio/windows_utils.py +0 -173
  353. package/lib/python3.12/base64.py +0 -586
  354. package/lib/python3.12/bdb.py +0 -920
  355. package/lib/python3.12/bisect.py +0 -118
  356. package/lib/python3.12/bz2.py +0 -344
  357. package/lib/python3.12/cProfile.py +0 -195
  358. package/lib/python3.12/calendar.py +0 -808
  359. package/lib/python3.12/cgi.py +0 -1014
  360. package/lib/python3.12/cgitb.py +0 -332
  361. package/lib/python3.12/chunk.py +0 -173
  362. package/lib/python3.12/cmd.py +0 -401
  363. package/lib/python3.12/code.py +0 -324
  364. package/lib/python3.12/codecs.py +0 -1129
  365. package/lib/python3.12/codeop.py +0 -161
  366. package/lib/python3.12/collections/__init__.py +0 -1592
  367. package/lib/python3.12/collections/abc.py +0 -3
  368. package/lib/python3.12/colorsys.py +0 -166
  369. package/lib/python3.12/compileall.py +0 -469
  370. package/lib/python3.12/concurrent/__init__.py +0 -1
  371. package/lib/python3.12/concurrent/futures/__init__.py +0 -54
  372. package/lib/python3.12/concurrent/futures/_base.py +0 -654
  373. package/lib/python3.12/concurrent/futures/process.py +0 -876
  374. package/lib/python3.12/concurrent/futures/thread.py +0 -240
  375. package/lib/python3.12/config-3.12-darwin/Makefile +0 -3183
  376. package/lib/python3.12/config-3.12-darwin/Setup +0 -303
  377. package/lib/python3.12/config-3.12-darwin/Setup.bootstrap +0 -36
  378. package/lib/python3.12/config-3.12-darwin/Setup.local +0 -90
  379. package/lib/python3.12/config-3.12-darwin/Setup.stdlib +0 -183
  380. package/lib/python3.12/config-3.12-darwin/config.c +0 -260
  381. package/lib/python3.12/config-3.12-darwin/config.c.in +0 -71
  382. package/lib/python3.12/config-3.12-darwin/install-sh +0 -541
  383. package/lib/python3.12/config-3.12-darwin/makesetup +0 -353
  384. package/lib/python3.12/config-3.12-darwin/python-config.py +0 -76
  385. package/lib/python3.12/config-3.12-darwin/python.o +0 -0
  386. package/lib/python3.12/configparser.py +0 -1333
  387. package/lib/python3.12/contextlib.py +0 -800
  388. package/lib/python3.12/contextvars.py +0 -4
  389. package/lib/python3.12/copy.py +0 -292
  390. package/lib/python3.12/copyreg.py +0 -217
  391. package/lib/python3.12/crypt.py +0 -124
  392. package/lib/python3.12/csv.py +0 -451
  393. package/lib/python3.12/ctypes/__init__.py +0 -582
  394. package/lib/python3.12/ctypes/_aix.py +0 -327
  395. package/lib/python3.12/ctypes/_endian.py +0 -78
  396. package/lib/python3.12/ctypes/macholib/README.ctypes +0 -7
  397. package/lib/python3.12/ctypes/macholib/__init__.py +0 -9
  398. package/lib/python3.12/ctypes/macholib/dyld.py +0 -165
  399. package/lib/python3.12/ctypes/macholib/dylib.py +0 -42
  400. package/lib/python3.12/ctypes/macholib/fetch_macholib +0 -2
  401. package/lib/python3.12/ctypes/macholib/fetch_macholib.bat +0 -1
  402. package/lib/python3.12/ctypes/macholib/framework.py +0 -42
  403. package/lib/python3.12/ctypes/util.py +0 -379
  404. package/lib/python3.12/ctypes/wintypes.py +0 -202
  405. package/lib/python3.12/curses/__init__.py +0 -101
  406. package/lib/python3.12/curses/ascii.py +0 -99
  407. package/lib/python3.12/curses/has_key.py +0 -192
  408. package/lib/python3.12/curses/panel.py +0 -6
  409. package/lib/python3.12/curses/textpad.py +0 -204
  410. package/lib/python3.12/dataclasses.py +0 -1588
  411. package/lib/python3.12/datetime.py +0 -9
  412. package/lib/python3.12/dbm/__init__.py +0 -190
  413. package/lib/python3.12/dbm/dumb.py +0 -317
  414. package/lib/python3.12/dbm/gnu.py +0 -3
  415. package/lib/python3.12/dbm/ndbm.py +0 -3
  416. package/lib/python3.12/decimal.py +0 -108
  417. package/lib/python3.12/difflib.py +0 -2056
  418. package/lib/python3.12/dis.py +0 -805
  419. package/lib/python3.12/doctest.py +0 -2845
  420. package/lib/python3.12/email/__init__.py +0 -61
  421. package/lib/python3.12/email/_encoded_words.py +0 -233
  422. package/lib/python3.12/email/_header_value_parser.py +0 -3095
  423. package/lib/python3.12/email/_parseaddr.py +0 -557
  424. package/lib/python3.12/email/_policybase.py +0 -382
  425. package/lib/python3.12/email/architecture.rst +0 -216
  426. package/lib/python3.12/email/base64mime.py +0 -115
  427. package/lib/python3.12/email/charset.py +0 -398
  428. package/lib/python3.12/email/contentmanager.py +0 -251
  429. package/lib/python3.12/email/encoders.py +0 -65
  430. package/lib/python3.12/email/errors.py +0 -117
  431. package/lib/python3.12/email/feedparser.py +0 -534
  432. package/lib/python3.12/email/generator.py +0 -520
  433. package/lib/python3.12/email/header.py +0 -573
  434. package/lib/python3.12/email/headerregistry.py +0 -604
  435. package/lib/python3.12/email/iterators.py +0 -68
  436. package/lib/python3.12/email/message.py +0 -1209
  437. package/lib/python3.12/email/mime/__init__.py +0 -0
  438. package/lib/python3.12/email/mime/application.py +0 -37
  439. package/lib/python3.12/email/mime/audio.py +0 -100
  440. package/lib/python3.12/email/mime/base.py +0 -29
  441. package/lib/python3.12/email/mime/image.py +0 -152
  442. package/lib/python3.12/email/mime/message.py +0 -33
  443. package/lib/python3.12/email/mime/multipart.py +0 -47
  444. package/lib/python3.12/email/mime/nonmultipart.py +0 -21
  445. package/lib/python3.12/email/mime/text.py +0 -40
  446. package/lib/python3.12/email/parser.py +0 -127
  447. package/lib/python3.12/email/policy.py +0 -232
  448. package/lib/python3.12/email/quoprimime.py +0 -300
  449. package/lib/python3.12/email/utils.py +0 -486
  450. package/lib/python3.12/encodings/__init__.py +0 -174
  451. package/lib/python3.12/encodings/aliases.py +0 -551
  452. package/lib/python3.12/encodings/ascii.py +0 -50
  453. package/lib/python3.12/encodings/base64_codec.py +0 -55
  454. package/lib/python3.12/encodings/big5.py +0 -39
  455. package/lib/python3.12/encodings/big5hkscs.py +0 -39
  456. package/lib/python3.12/encodings/bz2_codec.py +0 -78
  457. package/lib/python3.12/encodings/charmap.py +0 -69
  458. package/lib/python3.12/encodings/cp037.py +0 -307
  459. package/lib/python3.12/encodings/cp1006.py +0 -307
  460. package/lib/python3.12/encodings/cp1026.py +0 -307
  461. package/lib/python3.12/encodings/cp1125.py +0 -698
  462. package/lib/python3.12/encodings/cp1140.py +0 -307
  463. package/lib/python3.12/encodings/cp1250.py +0 -307
  464. package/lib/python3.12/encodings/cp1251.py +0 -307
  465. package/lib/python3.12/encodings/cp1252.py +0 -307
  466. package/lib/python3.12/encodings/cp1253.py +0 -307
  467. package/lib/python3.12/encodings/cp1254.py +0 -307
  468. package/lib/python3.12/encodings/cp1255.py +0 -307
  469. package/lib/python3.12/encodings/cp1256.py +0 -307
  470. package/lib/python3.12/encodings/cp1257.py +0 -307
  471. package/lib/python3.12/encodings/cp1258.py +0 -307
  472. package/lib/python3.12/encodings/cp273.py +0 -307
  473. package/lib/python3.12/encodings/cp424.py +0 -307
  474. package/lib/python3.12/encodings/cp437.py +0 -698
  475. package/lib/python3.12/encodings/cp500.py +0 -307
  476. package/lib/python3.12/encodings/cp720.py +0 -309
  477. package/lib/python3.12/encodings/cp737.py +0 -698
  478. package/lib/python3.12/encodings/cp775.py +0 -697
  479. package/lib/python3.12/encodings/cp850.py +0 -698
  480. package/lib/python3.12/encodings/cp852.py +0 -698
  481. package/lib/python3.12/encodings/cp855.py +0 -698
  482. package/lib/python3.12/encodings/cp856.py +0 -307
  483. package/lib/python3.12/encodings/cp857.py +0 -694
  484. package/lib/python3.12/encodings/cp858.py +0 -698
  485. package/lib/python3.12/encodings/cp860.py +0 -698
  486. package/lib/python3.12/encodings/cp861.py +0 -698
  487. package/lib/python3.12/encodings/cp862.py +0 -698
  488. package/lib/python3.12/encodings/cp863.py +0 -698
  489. package/lib/python3.12/encodings/cp864.py +0 -690
  490. package/lib/python3.12/encodings/cp865.py +0 -698
  491. package/lib/python3.12/encodings/cp866.py +0 -698
  492. package/lib/python3.12/encodings/cp869.py +0 -689
  493. package/lib/python3.12/encodings/cp874.py +0 -307
  494. package/lib/python3.12/encodings/cp875.py +0 -307
  495. package/lib/python3.12/encodings/cp932.py +0 -39
  496. package/lib/python3.12/encodings/cp949.py +0 -39
  497. package/lib/python3.12/encodings/cp950.py +0 -39
  498. package/lib/python3.12/encodings/euc_jis_2004.py +0 -39
  499. package/lib/python3.12/encodings/euc_jisx0213.py +0 -39
  500. package/lib/python3.12/encodings/euc_jp.py +0 -39
  501. package/lib/python3.12/encodings/euc_kr.py +0 -39
  502. package/lib/python3.12/encodings/gb18030.py +0 -39
  503. package/lib/python3.12/encodings/gb2312.py +0 -39
  504. package/lib/python3.12/encodings/gbk.py +0 -39
  505. package/lib/python3.12/encodings/hex_codec.py +0 -55
  506. package/lib/python3.12/encodings/hp_roman8.py +0 -314
  507. package/lib/python3.12/encodings/hz.py +0 -39
  508. package/lib/python3.12/encodings/idna.py +0 -317
  509. package/lib/python3.12/encodings/iso2022_jp.py +0 -39
  510. package/lib/python3.12/encodings/iso2022_jp_1.py +0 -39
  511. package/lib/python3.12/encodings/iso2022_jp_2.py +0 -39
  512. package/lib/python3.12/encodings/iso2022_jp_2004.py +0 -39
  513. package/lib/python3.12/encodings/iso2022_jp_3.py +0 -39
  514. package/lib/python3.12/encodings/iso2022_jp_ext.py +0 -39
  515. package/lib/python3.12/encodings/iso2022_kr.py +0 -39
  516. package/lib/python3.12/encodings/iso8859_1.py +0 -307
  517. package/lib/python3.12/encodings/iso8859_10.py +0 -307
  518. package/lib/python3.12/encodings/iso8859_11.py +0 -307
  519. package/lib/python3.12/encodings/iso8859_13.py +0 -307
  520. package/lib/python3.12/encodings/iso8859_14.py +0 -307
  521. package/lib/python3.12/encodings/iso8859_15.py +0 -307
  522. package/lib/python3.12/encodings/iso8859_16.py +0 -307
  523. package/lib/python3.12/encodings/iso8859_2.py +0 -307
  524. package/lib/python3.12/encodings/iso8859_3.py +0 -307
  525. package/lib/python3.12/encodings/iso8859_4.py +0 -307
  526. package/lib/python3.12/encodings/iso8859_5.py +0 -307
  527. package/lib/python3.12/encodings/iso8859_6.py +0 -307
  528. package/lib/python3.12/encodings/iso8859_7.py +0 -307
  529. package/lib/python3.12/encodings/iso8859_8.py +0 -307
  530. package/lib/python3.12/encodings/iso8859_9.py +0 -307
  531. package/lib/python3.12/encodings/johab.py +0 -39
  532. package/lib/python3.12/encodings/koi8_r.py +0 -307
  533. package/lib/python3.12/encodings/koi8_t.py +0 -308
  534. package/lib/python3.12/encodings/koi8_u.py +0 -307
  535. package/lib/python3.12/encodings/kz1048.py +0 -307
  536. package/lib/python3.12/encodings/latin_1.py +0 -50
  537. package/lib/python3.12/encodings/mac_arabic.py +0 -698
  538. package/lib/python3.12/encodings/mac_croatian.py +0 -307
  539. package/lib/python3.12/encodings/mac_cyrillic.py +0 -307
  540. package/lib/python3.12/encodings/mac_farsi.py +0 -307
  541. package/lib/python3.12/encodings/mac_greek.py +0 -307
  542. package/lib/python3.12/encodings/mac_iceland.py +0 -307
  543. package/lib/python3.12/encodings/mac_latin2.py +0 -312
  544. package/lib/python3.12/encodings/mac_roman.py +0 -307
  545. package/lib/python3.12/encodings/mac_romanian.py +0 -307
  546. package/lib/python3.12/encodings/mac_turkish.py +0 -307
  547. package/lib/python3.12/encodings/mbcs.py +0 -47
  548. package/lib/python3.12/encodings/oem.py +0 -41
  549. package/lib/python3.12/encodings/palmos.py +0 -308
  550. package/lib/python3.12/encodings/ptcp154.py +0 -312
  551. package/lib/python3.12/encodings/punycode.py +0 -237
  552. package/lib/python3.12/encodings/quopri_codec.py +0 -56
  553. package/lib/python3.12/encodings/raw_unicode_escape.py +0 -46
  554. package/lib/python3.12/encodings/rot_13.py +0 -113
  555. package/lib/python3.12/encodings/shift_jis.py +0 -39
  556. package/lib/python3.12/encodings/shift_jis_2004.py +0 -39
  557. package/lib/python3.12/encodings/shift_jisx0213.py +0 -39
  558. package/lib/python3.12/encodings/tis_620.py +0 -307
  559. package/lib/python3.12/encodings/undefined.py +0 -49
  560. package/lib/python3.12/encodings/unicode_escape.py +0 -46
  561. package/lib/python3.12/encodings/utf_16.py +0 -155
  562. package/lib/python3.12/encodings/utf_16_be.py +0 -42
  563. package/lib/python3.12/encodings/utf_16_le.py +0 -42
  564. package/lib/python3.12/encodings/utf_32.py +0 -150
  565. package/lib/python3.12/encodings/utf_32_be.py +0 -37
  566. package/lib/python3.12/encodings/utf_32_le.py +0 -37
  567. package/lib/python3.12/encodings/utf_7.py +0 -38
  568. package/lib/python3.12/encodings/utf_8.py +0 -42
  569. package/lib/python3.12/encodings/utf_8_sig.py +0 -130
  570. package/lib/python3.12/encodings/uu_codec.py +0 -103
  571. package/lib/python3.12/encodings/zlib_codec.py +0 -77
  572. package/lib/python3.12/ensurepip/__init__.py +0 -291
  573. package/lib/python3.12/ensurepip/__main__.py +0 -5
  574. package/lib/python3.12/ensurepip/_bundled/pip-25.0.1-py3-none-any.whl +0 -0
  575. package/lib/python3.12/ensurepip/_uninstall.py +0 -31
  576. package/lib/python3.12/enum.py +0 -2108
  577. package/lib/python3.12/filecmp.py +0 -315
  578. package/lib/python3.12/fileinput.py +0 -442
  579. package/lib/python3.12/fnmatch.py +0 -185
  580. package/lib/python3.12/fractions.py +0 -990
  581. package/lib/python3.12/ftplib.py +0 -966
  582. package/lib/python3.12/functools.py +0 -1009
  583. package/lib/python3.12/genericpath.py +0 -167
  584. package/lib/python3.12/getopt.py +0 -215
  585. package/lib/python3.12/getpass.py +0 -185
  586. package/lib/python3.12/gettext.py +0 -646
  587. package/lib/python3.12/glob.py +0 -252
  588. package/lib/python3.12/graphlib.py +0 -250
  589. package/lib/python3.12/gzip.py +0 -711
  590. package/lib/python3.12/hashlib.py +0 -253
  591. package/lib/python3.12/heapq.py +0 -603
  592. package/lib/python3.12/hmac.py +0 -219
  593. package/lib/python3.12/html/__init__.py +0 -132
  594. package/lib/python3.12/html/entities.py +0 -2513
  595. package/lib/python3.12/html/parser.py +0 -456
  596. package/lib/python3.12/http/__init__.py +0 -200
  597. package/lib/python3.12/http/client.py +0 -1550
  598. package/lib/python3.12/http/cookiejar.py +0 -2121
  599. package/lib/python3.12/http/cookies.py +0 -596
  600. package/lib/python3.12/http/server.py +0 -1320
  601. package/lib/python3.12/idlelib/CREDITS.txt +0 -47
  602. package/lib/python3.12/idlelib/ChangeLog +0 -1591
  603. package/lib/python3.12/idlelib/HISTORY.txt +0 -296
  604. package/lib/python3.12/idlelib/Icons/README.txt +0 -51
  605. package/lib/python3.12/idlelib/Icons/folder.gif +0 -0
  606. package/lib/python3.12/idlelib/Icons/idle.ico +0 -0
  607. package/lib/python3.12/idlelib/Icons/idle_16.gif +0 -0
  608. package/lib/python3.12/idlelib/Icons/idle_16.png +0 -0
  609. package/lib/python3.12/idlelib/Icons/idle_256.png +0 -0
  610. package/lib/python3.12/idlelib/Icons/idle_32.gif +0 -0
  611. package/lib/python3.12/idlelib/Icons/idle_32.png +0 -0
  612. package/lib/python3.12/idlelib/Icons/idle_48.gif +0 -0
  613. package/lib/python3.12/idlelib/Icons/idle_48.png +0 -0
  614. package/lib/python3.12/idlelib/Icons/minusnode.gif +0 -0
  615. package/lib/python3.12/idlelib/Icons/openfolder.gif +0 -0
  616. package/lib/python3.12/idlelib/Icons/plusnode.gif +0 -0
  617. package/lib/python3.12/idlelib/Icons/python.gif +0 -0
  618. package/lib/python3.12/idlelib/Icons/tk.gif +0 -0
  619. package/lib/python3.12/idlelib/NEWS2x.txt +0 -660
  620. package/lib/python3.12/idlelib/News3.txt +0 -1390
  621. package/lib/python3.12/idlelib/README.txt +0 -290
  622. package/lib/python3.12/idlelib/TODO.txt +0 -210
  623. package/lib/python3.12/idlelib/__init__.py +0 -10
  624. package/lib/python3.12/idlelib/__main__.py +0 -7
  625. package/lib/python3.12/idlelib/autocomplete.py +0 -228
  626. package/lib/python3.12/idlelib/autocomplete_w.py +0 -498
  627. package/lib/python3.12/idlelib/autoexpand.py +0 -96
  628. package/lib/python3.12/idlelib/browser.py +0 -260
  629. package/lib/python3.12/idlelib/calltip.py +0 -205
  630. package/lib/python3.12/idlelib/calltip_w.py +0 -202
  631. package/lib/python3.12/idlelib/codecontext.py +0 -270
  632. package/lib/python3.12/idlelib/colorizer.py +0 -384
  633. package/lib/python3.12/idlelib/config-extensions.def +0 -62
  634. package/lib/python3.12/idlelib/config-highlight.def +0 -105
  635. package/lib/python3.12/idlelib/config-keys.def +0 -309
  636. package/lib/python3.12/idlelib/config-main.def +0 -93
  637. package/lib/python3.12/idlelib/config.py +0 -917
  638. package/lib/python3.12/idlelib/config_key.py +0 -354
  639. package/lib/python3.12/idlelib/configdialog.py +0 -2408
  640. package/lib/python3.12/idlelib/debugger.py +0 -602
  641. package/lib/python3.12/idlelib/debugger_r.py +0 -390
  642. package/lib/python3.12/idlelib/debugobj.py +0 -146
  643. package/lib/python3.12/idlelib/debugobj_r.py +0 -41
  644. package/lib/python3.12/idlelib/delegator.py +0 -34
  645. package/lib/python3.12/idlelib/dynoption.py +0 -57
  646. package/lib/python3.12/idlelib/editor.py +0 -1767
  647. package/lib/python3.12/idlelib/extend.txt +0 -83
  648. package/lib/python3.12/idlelib/filelist.py +0 -132
  649. package/lib/python3.12/idlelib/format.py +0 -426
  650. package/lib/python3.12/idlelib/grep.py +0 -223
  651. package/lib/python3.12/idlelib/help.html +0 -805
  652. package/lib/python3.12/idlelib/help.py +0 -297
  653. package/lib/python3.12/idlelib/help_about.py +0 -211
  654. package/lib/python3.12/idlelib/history.py +0 -106
  655. package/lib/python3.12/idlelib/hyperparser.py +0 -312
  656. package/lib/python3.12/idlelib/idle.bat +0 -4
  657. package/lib/python3.12/idlelib/idle.py +0 -14
  658. package/lib/python3.12/idlelib/idle.pyw +0 -17
  659. package/lib/python3.12/idlelib/iomenu.py +0 -441
  660. package/lib/python3.12/idlelib/macosx.py +0 -278
  661. package/lib/python3.12/idlelib/mainmenu.py +0 -126
  662. package/lib/python3.12/idlelib/multicall.py +0 -451
  663. package/lib/python3.12/idlelib/outwin.py +0 -188
  664. package/lib/python3.12/idlelib/parenmatch.py +0 -183
  665. package/lib/python3.12/idlelib/pathbrowser.py +0 -107
  666. package/lib/python3.12/idlelib/percolator.py +0 -120
  667. package/lib/python3.12/idlelib/pyparse.py +0 -589
  668. package/lib/python3.12/idlelib/pyshell.py +0 -1694
  669. package/lib/python3.12/idlelib/query.py +0 -392
  670. package/lib/python3.12/idlelib/redirector.py +0 -173
  671. package/lib/python3.12/idlelib/replace.py +0 -300
  672. package/lib/python3.12/idlelib/rpc.py +0 -635
  673. package/lib/python3.12/idlelib/run.py +0 -646
  674. package/lib/python3.12/idlelib/runscript.py +0 -213
  675. package/lib/python3.12/idlelib/scrolledlist.py +0 -151
  676. package/lib/python3.12/idlelib/search.py +0 -165
  677. package/lib/python3.12/idlelib/searchbase.py +0 -210
  678. package/lib/python3.12/idlelib/searchengine.py +0 -235
  679. package/lib/python3.12/idlelib/sidebar.py +0 -544
  680. package/lib/python3.12/idlelib/squeezer.py +0 -345
  681. package/lib/python3.12/idlelib/stackviewer.py +0 -134
  682. package/lib/python3.12/idlelib/statusbar.py +0 -52
  683. package/lib/python3.12/idlelib/textview.py +0 -193
  684. package/lib/python3.12/idlelib/tooltip.py +0 -190
  685. package/lib/python3.12/idlelib/tree.py +0 -509
  686. package/lib/python3.12/idlelib/undo.py +0 -367
  687. package/lib/python3.12/idlelib/util.py +0 -37
  688. package/lib/python3.12/idlelib/window.py +0 -98
  689. package/lib/python3.12/idlelib/zoomheight.py +0 -124
  690. package/lib/python3.12/idlelib/zzdummy.py +0 -73
  691. package/lib/python3.12/imaplib.py +0 -1641
  692. package/lib/python3.12/imghdr.py +0 -180
  693. package/lib/python3.12/importlib/__init__.py +0 -138
  694. package/lib/python3.12/importlib/_abc.py +0 -39
  695. package/lib/python3.12/importlib/_bootstrap.py +0 -1551
  696. package/lib/python3.12/importlib/_bootstrap_external.py +0 -1749
  697. package/lib/python3.12/importlib/abc.py +0 -239
  698. package/lib/python3.12/importlib/machinery.py +0 -20
  699. package/lib/python3.12/importlib/metadata/__init__.py +0 -966
  700. package/lib/python3.12/importlib/metadata/_adapters.py +0 -89
  701. package/lib/python3.12/importlib/metadata/_collections.py +0 -30
  702. package/lib/python3.12/importlib/metadata/_functools.py +0 -104
  703. package/lib/python3.12/importlib/metadata/_itertools.py +0 -73
  704. package/lib/python3.12/importlib/metadata/_meta.py +0 -63
  705. package/lib/python3.12/importlib/metadata/_text.py +0 -99
  706. package/lib/python3.12/importlib/readers.py +0 -12
  707. package/lib/python3.12/importlib/resources/__init__.py +0 -38
  708. package/lib/python3.12/importlib/resources/_adapters.py +0 -168
  709. package/lib/python3.12/importlib/resources/_common.py +0 -208
  710. package/lib/python3.12/importlib/resources/_itertools.py +0 -38
  711. package/lib/python3.12/importlib/resources/_legacy.py +0 -98
  712. package/lib/python3.12/importlib/resources/abc.py +0 -173
  713. package/lib/python3.12/importlib/resources/readers.py +0 -146
  714. package/lib/python3.12/importlib/resources/simple.py +0 -106
  715. package/lib/python3.12/importlib/simple.py +0 -14
  716. package/lib/python3.12/importlib/util.py +0 -270
  717. package/lib/python3.12/inspect.py +0 -3433
  718. package/lib/python3.12/io.py +0 -99
  719. package/lib/python3.12/ipaddress.py +0 -2380
  720. package/lib/python3.12/json/__init__.py +0 -359
  721. package/lib/python3.12/json/decoder.py +0 -357
  722. package/lib/python3.12/json/encoder.py +0 -443
  723. package/lib/python3.12/json/scanner.py +0 -73
  724. package/lib/python3.12/json/tool.py +0 -85
  725. package/lib/python3.12/keyword.py +0 -64
  726. package/lib/python3.12/lib-dynload/.empty +0 -0
  727. package/lib/python3.12/lib-dynload/_crypt.cpython-312-darwin.so +0 -0
  728. package/lib/python3.12/lib2to3/Grammar.txt +0 -196
  729. package/lib/python3.12/lib2to3/Grammar3.12.10.final.0.pickle +0 -0
  730. package/lib/python3.12/lib2to3/PatternGrammar.txt +0 -28
  731. package/lib/python3.12/lib2to3/PatternGrammar3.12.10.final.0.pickle +0 -0
  732. package/lib/python3.12/lib2to3/__init__.py +0 -8
  733. package/lib/python3.12/lib2to3/__main__.py +0 -4
  734. package/lib/python3.12/lib2to3/btm_matcher.py +0 -163
  735. package/lib/python3.12/lib2to3/btm_utils.py +0 -280
  736. package/lib/python3.12/lib2to3/fixer_base.py +0 -186
  737. package/lib/python3.12/lib2to3/fixer_util.py +0 -453
  738. package/lib/python3.12/lib2to3/fixes/__init__.py +0 -1
  739. package/lib/python3.12/lib2to3/fixes/fix_apply.py +0 -68
  740. package/lib/python3.12/lib2to3/fixes/fix_asserts.py +0 -34
  741. package/lib/python3.12/lib2to3/fixes/fix_basestring.py +0 -14
  742. package/lib/python3.12/lib2to3/fixes/fix_buffer.py +0 -22
  743. package/lib/python3.12/lib2to3/fixes/fix_dict.py +0 -106
  744. package/lib/python3.12/lib2to3/fixes/fix_except.py +0 -93
  745. package/lib/python3.12/lib2to3/fixes/fix_exec.py +0 -39
  746. package/lib/python3.12/lib2to3/fixes/fix_execfile.py +0 -53
  747. package/lib/python3.12/lib2to3/fixes/fix_exitfunc.py +0 -72
  748. package/lib/python3.12/lib2to3/fixes/fix_filter.py +0 -94
  749. package/lib/python3.12/lib2to3/fixes/fix_funcattrs.py +0 -21
  750. package/lib/python3.12/lib2to3/fixes/fix_future.py +0 -22
  751. package/lib/python3.12/lib2to3/fixes/fix_getcwdu.py +0 -19
  752. package/lib/python3.12/lib2to3/fixes/fix_has_key.py +0 -109
  753. package/lib/python3.12/lib2to3/fixes/fix_idioms.py +0 -152
  754. package/lib/python3.12/lib2to3/fixes/fix_import.py +0 -99
  755. package/lib/python3.12/lib2to3/fixes/fix_imports.py +0 -145
  756. package/lib/python3.12/lib2to3/fixes/fix_imports2.py +0 -16
  757. package/lib/python3.12/lib2to3/fixes/fix_input.py +0 -26
  758. package/lib/python3.12/lib2to3/fixes/fix_intern.py +0 -39
  759. package/lib/python3.12/lib2to3/fixes/fix_isinstance.py +0 -52
  760. package/lib/python3.12/lib2to3/fixes/fix_itertools.py +0 -43
  761. package/lib/python3.12/lib2to3/fixes/fix_itertools_imports.py +0 -57
  762. package/lib/python3.12/lib2to3/fixes/fix_long.py +0 -19
  763. package/lib/python3.12/lib2to3/fixes/fix_map.py +0 -110
  764. package/lib/python3.12/lib2to3/fixes/fix_metaclass.py +0 -228
  765. package/lib/python3.12/lib2to3/fixes/fix_methodattrs.py +0 -24
  766. package/lib/python3.12/lib2to3/fixes/fix_ne.py +0 -23
  767. package/lib/python3.12/lib2to3/fixes/fix_next.py +0 -103
  768. package/lib/python3.12/lib2to3/fixes/fix_nonzero.py +0 -21
  769. package/lib/python3.12/lib2to3/fixes/fix_numliterals.py +0 -28
  770. package/lib/python3.12/lib2to3/fixes/fix_operator.py +0 -97
  771. package/lib/python3.12/lib2to3/fixes/fix_paren.py +0 -44
  772. package/lib/python3.12/lib2to3/fixes/fix_print.py +0 -87
  773. package/lib/python3.12/lib2to3/fixes/fix_raise.py +0 -90
  774. package/lib/python3.12/lib2to3/fixes/fix_raw_input.py +0 -17
  775. package/lib/python3.12/lib2to3/fixes/fix_reduce.py +0 -35
  776. package/lib/python3.12/lib2to3/fixes/fix_reload.py +0 -36
  777. package/lib/python3.12/lib2to3/fixes/fix_renames.py +0 -70
  778. package/lib/python3.12/lib2to3/fixes/fix_repr.py +0 -23
  779. package/lib/python3.12/lib2to3/fixes/fix_set_literal.py +0 -53
  780. package/lib/python3.12/lib2to3/fixes/fix_standarderror.py +0 -18
  781. package/lib/python3.12/lib2to3/fixes/fix_sys_exc.py +0 -30
  782. package/lib/python3.12/lib2to3/fixes/fix_throw.py +0 -56
  783. package/lib/python3.12/lib2to3/fixes/fix_tuple_params.py +0 -175
  784. package/lib/python3.12/lib2to3/fixes/fix_types.py +0 -61
  785. package/lib/python3.12/lib2to3/fixes/fix_unicode.py +0 -42
  786. package/lib/python3.12/lib2to3/fixes/fix_urllib.py +0 -196
  787. package/lib/python3.12/lib2to3/fixes/fix_ws_comma.py +0 -39
  788. package/lib/python3.12/lib2to3/fixes/fix_xrange.py +0 -73
  789. package/lib/python3.12/lib2to3/fixes/fix_xreadlines.py +0 -25
  790. package/lib/python3.12/lib2to3/fixes/fix_zip.py +0 -46
  791. package/lib/python3.12/lib2to3/main.py +0 -273
  792. package/lib/python3.12/lib2to3/patcomp.py +0 -204
  793. package/lib/python3.12/lib2to3/pgen2/__init__.py +0 -4
  794. package/lib/python3.12/lib2to3/pgen2/conv.py +0 -257
  795. package/lib/python3.12/lib2to3/pgen2/driver.py +0 -177
  796. package/lib/python3.12/lib2to3/pgen2/grammar.py +0 -189
  797. package/lib/python3.12/lib2to3/pgen2/literals.py +0 -60
  798. package/lib/python3.12/lib2to3/pgen2/parse.py +0 -204
  799. package/lib/python3.12/lib2to3/pgen2/pgen.py +0 -386
  800. package/lib/python3.12/lib2to3/pgen2/token.py +0 -86
  801. package/lib/python3.12/lib2to3/pgen2/tokenize.py +0 -564
  802. package/lib/python3.12/lib2to3/pygram.py +0 -43
  803. package/lib/python3.12/lib2to3/pytree.py +0 -853
  804. package/lib/python3.12/lib2to3/refactor.py +0 -732
  805. package/lib/python3.12/linecache.py +0 -185
  806. package/lib/python3.12/locale.py +0 -1779
  807. package/lib/python3.12/logging/__init__.py +0 -2345
  808. package/lib/python3.12/logging/config.py +0 -1078
  809. package/lib/python3.12/logging/handlers.py +0 -1624
  810. package/lib/python3.12/lzma.py +0 -356
  811. package/lib/python3.12/mailbox.py +0 -2153
  812. package/lib/python3.12/mailcap.py +0 -302
  813. package/lib/python3.12/mimetypes.py +0 -656
  814. package/lib/python3.12/modulefinder.py +0 -666
  815. package/lib/python3.12/multiprocessing/__init__.py +0 -37
  816. package/lib/python3.12/multiprocessing/connection.py +0 -1178
  817. package/lib/python3.12/multiprocessing/context.py +0 -377
  818. package/lib/python3.12/multiprocessing/dummy/__init__.py +0 -126
  819. package/lib/python3.12/multiprocessing/dummy/connection.py +0 -75
  820. package/lib/python3.12/multiprocessing/forkserver.py +0 -350
  821. package/lib/python3.12/multiprocessing/heap.py +0 -337
  822. package/lib/python3.12/multiprocessing/managers.py +0 -1387
  823. package/lib/python3.12/multiprocessing/pool.py +0 -957
  824. package/lib/python3.12/multiprocessing/popen_fork.py +0 -83
  825. package/lib/python3.12/multiprocessing/popen_forkserver.py +0 -74
  826. package/lib/python3.12/multiprocessing/popen_spawn_posix.py +0 -72
  827. package/lib/python3.12/multiprocessing/popen_spawn_win32.py +0 -145
  828. package/lib/python3.12/multiprocessing/process.py +0 -439
  829. package/lib/python3.12/multiprocessing/queues.py +0 -401
  830. package/lib/python3.12/multiprocessing/reduction.py +0 -281
  831. package/lib/python3.12/multiprocessing/resource_sharer.py +0 -154
  832. package/lib/python3.12/multiprocessing/resource_tracker.py +0 -294
  833. package/lib/python3.12/multiprocessing/shared_memory.py +0 -534
  834. package/lib/python3.12/multiprocessing/sharedctypes.py +0 -240
  835. package/lib/python3.12/multiprocessing/spawn.py +0 -307
  836. package/lib/python3.12/multiprocessing/synchronize.py +0 -404
  837. package/lib/python3.12/multiprocessing/util.py +0 -494
  838. package/lib/python3.12/netrc.py +0 -192
  839. package/lib/python3.12/nntplib.py +0 -1093
  840. package/lib/python3.12/ntpath.py +0 -902
  841. package/lib/python3.12/nturl2path.py +0 -69
  842. package/lib/python3.12/numbers.py +0 -418
  843. package/lib/python3.12/opcode.py +0 -493
  844. package/lib/python3.12/operator.py +0 -467
  845. package/lib/python3.12/optparse.py +0 -1681
  846. package/lib/python3.12/os.py +0 -1159
  847. package/lib/python3.12/pathlib.py +0 -1435
  848. package/lib/python3.12/pdb.py +0 -1987
  849. package/lib/python3.12/pickle.py +0 -1866
  850. package/lib/python3.12/pickletools.py +0 -2904
  851. package/lib/python3.12/pipes.py +0 -250
  852. package/lib/python3.12/pkgutil.py +0 -529
  853. package/lib/python3.12/platform.py +0 -1359
  854. package/lib/python3.12/plistlib.py +0 -911
  855. package/lib/python3.12/poplib.py +0 -478
  856. package/lib/python3.12/posixpath.py +0 -573
  857. package/lib/python3.12/pprint.py +0 -658
  858. package/lib/python3.12/profile.py +0 -615
  859. package/lib/python3.12/pstats.py +0 -778
  860. package/lib/python3.12/pty.py +0 -211
  861. package/lib/python3.12/py_compile.py +0 -212
  862. package/lib/python3.12/pyclbr.py +0 -314
  863. package/lib/python3.12/pydoc.py +0 -2950
  864. package/lib/python3.12/pydoc_data/__init__.py +0 -0
  865. package/lib/python3.12/pydoc_data/_pydoc.css +0 -112
  866. package/lib/python3.12/pydoc_data/topics.py +0 -12500
  867. package/lib/python3.12/queue.py +0 -326
  868. package/lib/python3.12/quopri.py +0 -237
  869. package/lib/python3.12/random.py +0 -996
  870. package/lib/python3.12/re/__init__.py +0 -385
  871. package/lib/python3.12/re/_casefix.py +0 -106
  872. package/lib/python3.12/re/_compiler.py +0 -770
  873. package/lib/python3.12/re/_constants.py +0 -220
  874. package/lib/python3.12/re/_parser.py +0 -1080
  875. package/lib/python3.12/reprlib.py +0 -214
  876. package/lib/python3.12/rlcompleter.py +0 -219
  877. package/lib/python3.12/runpy.py +0 -319
  878. package/lib/python3.12/sched.py +0 -167
  879. package/lib/python3.12/secrets.py +0 -71
  880. package/lib/python3.12/selectors.py +0 -623
  881. package/lib/python3.12/shelve.py +0 -243
  882. package/lib/python3.12/shlex.py +0 -345
  883. package/lib/python3.12/shutil.py +0 -1566
  884. package/lib/python3.12/signal.py +0 -94
  885. package/lib/python3.12/site-packages/README.txt +0 -2
  886. package/lib/python3.12/site-packages/pip/__init__.py +0 -13
  887. package/lib/python3.12/site-packages/pip/__main__.py +0 -24
  888. package/lib/python3.12/site-packages/pip/__pip-runner__.py +0 -50
  889. package/lib/python3.12/site-packages/pip/_internal/__init__.py +0 -18
  890. package/lib/python3.12/site-packages/pip/_internal/build_env.py +0 -319
  891. package/lib/python3.12/site-packages/pip/_internal/cache.py +0 -290
  892. package/lib/python3.12/site-packages/pip/_internal/cli/__init__.py +0 -4
  893. package/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py +0 -176
  894. package/lib/python3.12/site-packages/pip/_internal/cli/base_command.py +0 -231
  895. package/lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.py +0 -1075
  896. package/lib/python3.12/site-packages/pip/_internal/cli/command_context.py +0 -27
  897. package/lib/python3.12/site-packages/pip/_internal/cli/index_command.py +0 -170
  898. package/lib/python3.12/site-packages/pip/_internal/cli/main.py +0 -80
  899. package/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py +0 -134
  900. package/lib/python3.12/site-packages/pip/_internal/cli/parser.py +0 -294
  901. package/lib/python3.12/site-packages/pip/_internal/cli/progress_bars.py +0 -94
  902. package/lib/python3.12/site-packages/pip/_internal/cli/req_command.py +0 -329
  903. package/lib/python3.12/site-packages/pip/_internal/cli/spinners.py +0 -159
  904. package/lib/python3.12/site-packages/pip/_internal/cli/status_codes.py +0 -6
  905. package/lib/python3.12/site-packages/pip/_internal/commands/__init__.py +0 -132
  906. package/lib/python3.12/site-packages/pip/_internal/commands/cache.py +0 -225
  907. package/lib/python3.12/site-packages/pip/_internal/commands/check.py +0 -67
  908. package/lib/python3.12/site-packages/pip/_internal/commands/completion.py +0 -130
  909. package/lib/python3.12/site-packages/pip/_internal/commands/configuration.py +0 -280
  910. package/lib/python3.12/site-packages/pip/_internal/commands/debug.py +0 -201
  911. package/lib/python3.12/site-packages/pip/_internal/commands/download.py +0 -146
  912. package/lib/python3.12/site-packages/pip/_internal/commands/freeze.py +0 -109
  913. package/lib/python3.12/site-packages/pip/_internal/commands/hash.py +0 -59
  914. package/lib/python3.12/site-packages/pip/_internal/commands/help.py +0 -41
  915. package/lib/python3.12/site-packages/pip/_internal/commands/index.py +0 -139
  916. package/lib/python3.12/site-packages/pip/_internal/commands/inspect.py +0 -92
  917. package/lib/python3.12/site-packages/pip/_internal/commands/install.py +0 -783
  918. package/lib/python3.12/site-packages/pip/_internal/commands/list.py +0 -375
  919. package/lib/python3.12/site-packages/pip/_internal/commands/search.py +0 -172
  920. package/lib/python3.12/site-packages/pip/_internal/commands/show.py +0 -217
  921. package/lib/python3.12/site-packages/pip/_internal/commands/uninstall.py +0 -114
  922. package/lib/python3.12/site-packages/pip/_internal/commands/wheel.py +0 -182
  923. package/lib/python3.12/site-packages/pip/_internal/configuration.py +0 -383
  924. package/lib/python3.12/site-packages/pip/_internal/distributions/__init__.py +0 -21
  925. package/lib/python3.12/site-packages/pip/_internal/distributions/base.py +0 -53
  926. package/lib/python3.12/site-packages/pip/_internal/distributions/installed.py +0 -29
  927. package/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py +0 -158
  928. package/lib/python3.12/site-packages/pip/_internal/distributions/wheel.py +0 -42
  929. package/lib/python3.12/site-packages/pip/_internal/exceptions.py +0 -809
  930. package/lib/python3.12/site-packages/pip/_internal/index/__init__.py +0 -2
  931. package/lib/python3.12/site-packages/pip/_internal/index/collector.py +0 -494
  932. package/lib/python3.12/site-packages/pip/_internal/index/package_finder.py +0 -1020
  933. package/lib/python3.12/site-packages/pip/_internal/index/sources.py +0 -284
  934. package/lib/python3.12/site-packages/pip/_internal/locations/__init__.py +0 -456
  935. package/lib/python3.12/site-packages/pip/_internal/locations/_distutils.py +0 -172
  936. package/lib/python3.12/site-packages/pip/_internal/locations/_sysconfig.py +0 -214
  937. package/lib/python3.12/site-packages/pip/_internal/locations/base.py +0 -81
  938. package/lib/python3.12/site-packages/pip/_internal/main.py +0 -12
  939. package/lib/python3.12/site-packages/pip/_internal/metadata/__init__.py +0 -128
  940. package/lib/python3.12/site-packages/pip/_internal/metadata/_json.py +0 -84
  941. package/lib/python3.12/site-packages/pip/_internal/metadata/base.py +0 -688
  942. package/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__init__.py +0 -6
  943. package/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_compat.py +0 -85
  944. package/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py +0 -221
  945. package/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_envs.py +0 -189
  946. package/lib/python3.12/site-packages/pip/_internal/metadata/pkg_resources.py +0 -301
  947. package/lib/python3.12/site-packages/pip/_internal/models/__init__.py +0 -2
  948. package/lib/python3.12/site-packages/pip/_internal/models/candidate.py +0 -25
  949. package/lib/python3.12/site-packages/pip/_internal/models/direct_url.py +0 -224
  950. package/lib/python3.12/site-packages/pip/_internal/models/format_control.py +0 -78
  951. package/lib/python3.12/site-packages/pip/_internal/models/index.py +0 -28
  952. package/lib/python3.12/site-packages/pip/_internal/models/installation_report.py +0 -56
  953. package/lib/python3.12/site-packages/pip/_internal/models/link.py +0 -590
  954. package/lib/python3.12/site-packages/pip/_internal/models/scheme.py +0 -25
  955. package/lib/python3.12/site-packages/pip/_internal/models/search_scope.py +0 -127
  956. package/lib/python3.12/site-packages/pip/_internal/models/selection_prefs.py +0 -53
  957. package/lib/python3.12/site-packages/pip/_internal/models/target_python.py +0 -121
  958. package/lib/python3.12/site-packages/pip/_internal/models/wheel.py +0 -118
  959. package/lib/python3.12/site-packages/pip/_internal/network/__init__.py +0 -2
  960. package/lib/python3.12/site-packages/pip/_internal/network/auth.py +0 -566
  961. package/lib/python3.12/site-packages/pip/_internal/network/cache.py +0 -106
  962. package/lib/python3.12/site-packages/pip/_internal/network/download.py +0 -187
  963. package/lib/python3.12/site-packages/pip/_internal/network/lazy_wheel.py +0 -210
  964. package/lib/python3.12/site-packages/pip/_internal/network/session.py +0 -522
  965. package/lib/python3.12/site-packages/pip/_internal/network/utils.py +0 -98
  966. package/lib/python3.12/site-packages/pip/_internal/network/xmlrpc.py +0 -62
  967. package/lib/python3.12/site-packages/pip/_internal/operations/__init__.py +0 -0
  968. package/lib/python3.12/site-packages/pip/_internal/operations/build/__init__.py +0 -0
  969. package/lib/python3.12/site-packages/pip/_internal/operations/build/build_tracker.py +0 -138
  970. package/lib/python3.12/site-packages/pip/_internal/operations/build/metadata.py +0 -39
  971. package/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_editable.py +0 -41
  972. package/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_legacy.py +0 -74
  973. package/lib/python3.12/site-packages/pip/_internal/operations/build/wheel.py +0 -37
  974. package/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_editable.py +0 -46
  975. package/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_legacy.py +0 -102
  976. package/lib/python3.12/site-packages/pip/_internal/operations/check.py +0 -181
  977. package/lib/python3.12/site-packages/pip/_internal/operations/freeze.py +0 -258
  978. package/lib/python3.12/site-packages/pip/_internal/operations/install/__init__.py +0 -2
  979. package/lib/python3.12/site-packages/pip/_internal/operations/install/editable_legacy.py +0 -47
  980. package/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py +0 -741
  981. package/lib/python3.12/site-packages/pip/_internal/operations/prepare.py +0 -732
  982. package/lib/python3.12/site-packages/pip/_internal/pyproject.py +0 -185
  983. package/lib/python3.12/site-packages/pip/_internal/req/__init__.py +0 -90
  984. package/lib/python3.12/site-packages/pip/_internal/req/constructors.py +0 -560
  985. package/lib/python3.12/site-packages/pip/_internal/req/req_file.py +0 -574
  986. package/lib/python3.12/site-packages/pip/_internal/req/req_install.py +0 -934
  987. package/lib/python3.12/site-packages/pip/_internal/req/req_set.py +0 -82
  988. package/lib/python3.12/site-packages/pip/_internal/req/req_uninstall.py +0 -633
  989. package/lib/python3.12/site-packages/pip/_internal/resolution/__init__.py +0 -0
  990. package/lib/python3.12/site-packages/pip/_internal/resolution/base.py +0 -20
  991. package/lib/python3.12/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
  992. package/lib/python3.12/site-packages/pip/_internal/resolution/legacy/resolver.py +0 -597
  993. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
  994. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/base.py +0 -139
  995. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py +0 -574
  996. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py +0 -823
  997. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +0 -174
  998. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/provider.py +0 -258
  999. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/reporter.py +0 -81
  1000. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/requirements.py +0 -245
  1001. package/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py +0 -317
  1002. package/lib/python3.12/site-packages/pip/_internal/self_outdated_check.py +0 -244
  1003. package/lib/python3.12/site-packages/pip/_internal/utils/__init__.py +0 -0
  1004. package/lib/python3.12/site-packages/pip/_internal/utils/_jaraco_text.py +0 -109
  1005. package/lib/python3.12/site-packages/pip/_internal/utils/_log.py +0 -38
  1006. package/lib/python3.12/site-packages/pip/_internal/utils/appdirs.py +0 -52
  1007. package/lib/python3.12/site-packages/pip/_internal/utils/compat.py +0 -79
  1008. package/lib/python3.12/site-packages/pip/_internal/utils/compatibility_tags.py +0 -188
  1009. package/lib/python3.12/site-packages/pip/_internal/utils/datetime.py +0 -11
  1010. package/lib/python3.12/site-packages/pip/_internal/utils/deprecation.py +0 -124
  1011. package/lib/python3.12/site-packages/pip/_internal/utils/direct_url_helpers.py +0 -87
  1012. package/lib/python3.12/site-packages/pip/_internal/utils/egg_link.py +0 -80
  1013. package/lib/python3.12/site-packages/pip/_internal/utils/encoding.py +0 -36
  1014. package/lib/python3.12/site-packages/pip/_internal/utils/entrypoints.py +0 -84
  1015. package/lib/python3.12/site-packages/pip/_internal/utils/filesystem.py +0 -149
  1016. package/lib/python3.12/site-packages/pip/_internal/utils/filetypes.py +0 -27
  1017. package/lib/python3.12/site-packages/pip/_internal/utils/glibc.py +0 -101
  1018. package/lib/python3.12/site-packages/pip/_internal/utils/hashes.py +0 -147
  1019. package/lib/python3.12/site-packages/pip/_internal/utils/logging.py +0 -347
  1020. package/lib/python3.12/site-packages/pip/_internal/utils/misc.py +0 -772
  1021. package/lib/python3.12/site-packages/pip/_internal/utils/packaging.py +0 -57
  1022. package/lib/python3.12/site-packages/pip/_internal/utils/retry.py +0 -42
  1023. package/lib/python3.12/site-packages/pip/_internal/utils/setuptools_build.py +0 -146
  1024. package/lib/python3.12/site-packages/pip/_internal/utils/subprocess.py +0 -245
  1025. package/lib/python3.12/site-packages/pip/_internal/utils/temp_dir.py +0 -296
  1026. package/lib/python3.12/site-packages/pip/_internal/utils/unpacking.py +0 -337
  1027. package/lib/python3.12/site-packages/pip/_internal/utils/urls.py +0 -55
  1028. package/lib/python3.12/site-packages/pip/_internal/utils/virtualenv.py +0 -104
  1029. package/lib/python3.12/site-packages/pip/_internal/utils/wheel.py +0 -134
  1030. package/lib/python3.12/site-packages/pip/_internal/vcs/__init__.py +0 -15
  1031. package/lib/python3.12/site-packages/pip/_internal/vcs/bazaar.py +0 -112
  1032. package/lib/python3.12/site-packages/pip/_internal/vcs/git.py +0 -527
  1033. package/lib/python3.12/site-packages/pip/_internal/vcs/mercurial.py +0 -163
  1034. package/lib/python3.12/site-packages/pip/_internal/vcs/subversion.py +0 -324
  1035. package/lib/python3.12/site-packages/pip/_internal/vcs/versioncontrol.py +0 -688
  1036. package/lib/python3.12/site-packages/pip/_internal/wheel_builder.py +0 -354
  1037. package/lib/python3.12/site-packages/pip/_vendor/__init__.py +0 -116
  1038. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__init__.py +0 -28
  1039. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/_cmd.py +0 -70
  1040. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/adapter.py +0 -161
  1041. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/cache.py +0 -74
  1042. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +0 -8
  1043. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +0 -182
  1044. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +0 -48
  1045. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/controller.py +0 -499
  1046. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/filewrapper.py +0 -119
  1047. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/heuristics.py +0 -154
  1048. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
  1049. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/serialize.py +0 -146
  1050. package/lib/python3.12/site-packages/pip/_vendor/cachecontrol/wrapper.py +0 -43
  1051. package/lib/python3.12/site-packages/pip/_vendor/certifi/__init__.py +0 -4
  1052. package/lib/python3.12/site-packages/pip/_vendor/certifi/__main__.py +0 -12
  1053. package/lib/python3.12/site-packages/pip/_vendor/certifi/cacert.pem +0 -4929
  1054. package/lib/python3.12/site-packages/pip/_vendor/certifi/core.py +0 -114
  1055. package/lib/python3.12/site-packages/pip/_vendor/certifi/py.typed +0 -0
  1056. package/lib/python3.12/site-packages/pip/_vendor/distlib/__init__.py +0 -33
  1057. package/lib/python3.12/site-packages/pip/_vendor/distlib/compat.py +0 -1137
  1058. package/lib/python3.12/site-packages/pip/_vendor/distlib/database.py +0 -1329
  1059. package/lib/python3.12/site-packages/pip/_vendor/distlib/index.py +0 -508
  1060. package/lib/python3.12/site-packages/pip/_vendor/distlib/locators.py +0 -1295
  1061. package/lib/python3.12/site-packages/pip/_vendor/distlib/manifest.py +0 -384
  1062. package/lib/python3.12/site-packages/pip/_vendor/distlib/markers.py +0 -162
  1063. package/lib/python3.12/site-packages/pip/_vendor/distlib/metadata.py +0 -1031
  1064. package/lib/python3.12/site-packages/pip/_vendor/distlib/resources.py +0 -358
  1065. package/lib/python3.12/site-packages/pip/_vendor/distlib/scripts.py +0 -447
  1066. package/lib/python3.12/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  1067. package/lib/python3.12/site-packages/pip/_vendor/distlib/t64-arm.exe +0 -0
  1068. package/lib/python3.12/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  1069. package/lib/python3.12/site-packages/pip/_vendor/distlib/util.py +0 -1984
  1070. package/lib/python3.12/site-packages/pip/_vendor/distlib/version.py +0 -750
  1071. package/lib/python3.12/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  1072. package/lib/python3.12/site-packages/pip/_vendor/distlib/w64-arm.exe +0 -0
  1073. package/lib/python3.12/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  1074. package/lib/python3.12/site-packages/pip/_vendor/distlib/wheel.py +0 -1100
  1075. package/lib/python3.12/site-packages/pip/_vendor/distro/__init__.py +0 -54
  1076. package/lib/python3.12/site-packages/pip/_vendor/distro/__main__.py +0 -4
  1077. package/lib/python3.12/site-packages/pip/_vendor/distro/distro.py +0 -1403
  1078. package/lib/python3.12/site-packages/pip/_vendor/distro/py.typed +0 -0
  1079. package/lib/python3.12/site-packages/pip/_vendor/idna/__init__.py +0 -44
  1080. package/lib/python3.12/site-packages/pip/_vendor/idna/codec.py +0 -118
  1081. package/lib/python3.12/site-packages/pip/_vendor/idna/compat.py +0 -13
  1082. package/lib/python3.12/site-packages/pip/_vendor/idna/core.py +0 -395
  1083. package/lib/python3.12/site-packages/pip/_vendor/idna/idnadata.py +0 -4245
  1084. package/lib/python3.12/site-packages/pip/_vendor/idna/intranges.py +0 -54
  1085. package/lib/python3.12/site-packages/pip/_vendor/idna/package_data.py +0 -2
  1086. package/lib/python3.12/site-packages/pip/_vendor/idna/py.typed +0 -0
  1087. package/lib/python3.12/site-packages/pip/_vendor/idna/uts46data.py +0 -8598
  1088. package/lib/python3.12/site-packages/pip/_vendor/msgpack/__init__.py +0 -55
  1089. package/lib/python3.12/site-packages/pip/_vendor/msgpack/exceptions.py +0 -48
  1090. package/lib/python3.12/site-packages/pip/_vendor/msgpack/ext.py +0 -168
  1091. package/lib/python3.12/site-packages/pip/_vendor/msgpack/fallback.py +0 -951
  1092. package/lib/python3.12/site-packages/pip/_vendor/packaging/__init__.py +0 -15
  1093. package/lib/python3.12/site-packages/pip/_vendor/packaging/_elffile.py +0 -110
  1094. package/lib/python3.12/site-packages/pip/_vendor/packaging/_manylinux.py +0 -262
  1095. package/lib/python3.12/site-packages/pip/_vendor/packaging/_musllinux.py +0 -85
  1096. package/lib/python3.12/site-packages/pip/_vendor/packaging/_parser.py +0 -354
  1097. package/lib/python3.12/site-packages/pip/_vendor/packaging/_structures.py +0 -61
  1098. package/lib/python3.12/site-packages/pip/_vendor/packaging/_tokenizer.py +0 -194
  1099. package/lib/python3.12/site-packages/pip/_vendor/packaging/markers.py +0 -325
  1100. package/lib/python3.12/site-packages/pip/_vendor/packaging/metadata.py +0 -804
  1101. package/lib/python3.12/site-packages/pip/_vendor/packaging/py.typed +0 -0
  1102. package/lib/python3.12/site-packages/pip/_vendor/packaging/requirements.py +0 -91
  1103. package/lib/python3.12/site-packages/pip/_vendor/packaging/specifiers.py +0 -1009
  1104. package/lib/python3.12/site-packages/pip/_vendor/packaging/tags.py +0 -627
  1105. package/lib/python3.12/site-packages/pip/_vendor/packaging/utils.py +0 -174
  1106. package/lib/python3.12/site-packages/pip/_vendor/packaging/version.py +0 -563
  1107. package/lib/python3.12/site-packages/pip/_vendor/pkg_resources/__init__.py +0 -3676
  1108. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/__init__.py +0 -627
  1109. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/__main__.py +0 -55
  1110. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/android.py +0 -249
  1111. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/api.py +0 -292
  1112. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/macos.py +0 -130
  1113. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
  1114. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/unix.py +0 -275
  1115. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/version.py +0 -16
  1116. package/lib/python3.12/site-packages/pip/_vendor/platformdirs/windows.py +0 -272
  1117. package/lib/python3.12/site-packages/pip/_vendor/pygments/__init__.py +0 -82
  1118. package/lib/python3.12/site-packages/pip/_vendor/pygments/__main__.py +0 -17
  1119. package/lib/python3.12/site-packages/pip/_vendor/pygments/cmdline.py +0 -668
  1120. package/lib/python3.12/site-packages/pip/_vendor/pygments/console.py +0 -70
  1121. package/lib/python3.12/site-packages/pip/_vendor/pygments/filter.py +0 -70
  1122. package/lib/python3.12/site-packages/pip/_vendor/pygments/filters/__init__.py +0 -940
  1123. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatter.py +0 -129
  1124. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__init__.py +0 -157
  1125. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/_mapping.py +0 -23
  1126. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/bbcode.py +0 -108
  1127. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/groff.py +0 -170
  1128. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/html.py +0 -987
  1129. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/img.py +0 -685
  1130. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/irc.py +0 -154
  1131. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/latex.py +0 -518
  1132. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/other.py +0 -160
  1133. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py +0 -83
  1134. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/rtf.py +0 -349
  1135. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/svg.py +0 -185
  1136. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/terminal.py +0 -127
  1137. package/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/terminal256.py +0 -338
  1138. package/lib/python3.12/site-packages/pip/_vendor/pygments/lexer.py +0 -963
  1139. package/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__init__.py +0 -362
  1140. package/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/_mapping.py +0 -589
  1141. package/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/python.py +0 -1198
  1142. package/lib/python3.12/site-packages/pip/_vendor/pygments/modeline.py +0 -43
  1143. package/lib/python3.12/site-packages/pip/_vendor/pygments/plugin.py +0 -72
  1144. package/lib/python3.12/site-packages/pip/_vendor/pygments/regexopt.py +0 -91
  1145. package/lib/python3.12/site-packages/pip/_vendor/pygments/scanner.py +0 -104
  1146. package/lib/python3.12/site-packages/pip/_vendor/pygments/sphinxext.py +0 -247
  1147. package/lib/python3.12/site-packages/pip/_vendor/pygments/style.py +0 -203
  1148. package/lib/python3.12/site-packages/pip/_vendor/pygments/styles/__init__.py +0 -61
  1149. package/lib/python3.12/site-packages/pip/_vendor/pygments/styles/_mapping.py +0 -54
  1150. package/lib/python3.12/site-packages/pip/_vendor/pygments/token.py +0 -214
  1151. package/lib/python3.12/site-packages/pip/_vendor/pygments/unistring.py +0 -153
  1152. package/lib/python3.12/site-packages/pip/_vendor/pygments/util.py +0 -324
  1153. package/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__init__.py +0 -23
  1154. package/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_compat.py +0 -8
  1155. package/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_impl.py +0 -330
  1156. package/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +0 -18
  1157. package/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +0 -353
  1158. package/lib/python3.12/site-packages/pip/_vendor/requests/__init__.py +0 -179
  1159. package/lib/python3.12/site-packages/pip/_vendor/requests/__version__.py +0 -14
  1160. package/lib/python3.12/site-packages/pip/_vendor/requests/_internal_utils.py +0 -50
  1161. package/lib/python3.12/site-packages/pip/_vendor/requests/adapters.py +0 -719
  1162. package/lib/python3.12/site-packages/pip/_vendor/requests/api.py +0 -157
  1163. package/lib/python3.12/site-packages/pip/_vendor/requests/auth.py +0 -314
  1164. package/lib/python3.12/site-packages/pip/_vendor/requests/certs.py +0 -24
  1165. package/lib/python3.12/site-packages/pip/_vendor/requests/compat.py +0 -78
  1166. package/lib/python3.12/site-packages/pip/_vendor/requests/cookies.py +0 -561
  1167. package/lib/python3.12/site-packages/pip/_vendor/requests/exceptions.py +0 -151
  1168. package/lib/python3.12/site-packages/pip/_vendor/requests/help.py +0 -127
  1169. package/lib/python3.12/site-packages/pip/_vendor/requests/hooks.py +0 -33
  1170. package/lib/python3.12/site-packages/pip/_vendor/requests/models.py +0 -1037
  1171. package/lib/python3.12/site-packages/pip/_vendor/requests/packages.py +0 -25
  1172. package/lib/python3.12/site-packages/pip/_vendor/requests/sessions.py +0 -831
  1173. package/lib/python3.12/site-packages/pip/_vendor/requests/status_codes.py +0 -128
  1174. package/lib/python3.12/site-packages/pip/_vendor/requests/structures.py +0 -99
  1175. package/lib/python3.12/site-packages/pip/_vendor/requests/utils.py +0 -1096
  1176. package/lib/python3.12/site-packages/pip/_vendor/resolvelib/__init__.py +0 -26
  1177. package/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
  1178. package/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +0 -6
  1179. package/lib/python3.12/site-packages/pip/_vendor/resolvelib/providers.py +0 -133
  1180. package/lib/python3.12/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
  1181. package/lib/python3.12/site-packages/pip/_vendor/resolvelib/reporters.py +0 -43
  1182. package/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py +0 -547
  1183. package/lib/python3.12/site-packages/pip/_vendor/resolvelib/structs.py +0 -170
  1184. package/lib/python3.12/site-packages/pip/_vendor/rich/__init__.py +0 -177
  1185. package/lib/python3.12/site-packages/pip/_vendor/rich/__main__.py +0 -273
  1186. package/lib/python3.12/site-packages/pip/_vendor/rich/_cell_widths.py +0 -454
  1187. package/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_codes.py +0 -3610
  1188. package/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_replace.py +0 -32
  1189. package/lib/python3.12/site-packages/pip/_vendor/rich/_export_format.py +0 -76
  1190. package/lib/python3.12/site-packages/pip/_vendor/rich/_extension.py +0 -10
  1191. package/lib/python3.12/site-packages/pip/_vendor/rich/_fileno.py +0 -24
  1192. package/lib/python3.12/site-packages/pip/_vendor/rich/_inspect.py +0 -270
  1193. package/lib/python3.12/site-packages/pip/_vendor/rich/_log_render.py +0 -94
  1194. package/lib/python3.12/site-packages/pip/_vendor/rich/_loop.py +0 -43
  1195. package/lib/python3.12/site-packages/pip/_vendor/rich/_null_file.py +0 -69
  1196. package/lib/python3.12/site-packages/pip/_vendor/rich/_palettes.py +0 -309
  1197. package/lib/python3.12/site-packages/pip/_vendor/rich/_pick.py +0 -17
  1198. package/lib/python3.12/site-packages/pip/_vendor/rich/_ratio.py +0 -159
  1199. package/lib/python3.12/site-packages/pip/_vendor/rich/_spinners.py +0 -482
  1200. package/lib/python3.12/site-packages/pip/_vendor/rich/_stack.py +0 -16
  1201. package/lib/python3.12/site-packages/pip/_vendor/rich/_timer.py +0 -19
  1202. package/lib/python3.12/site-packages/pip/_vendor/rich/_win32_console.py +0 -662
  1203. package/lib/python3.12/site-packages/pip/_vendor/rich/_windows.py +0 -71
  1204. package/lib/python3.12/site-packages/pip/_vendor/rich/_windows_renderer.py +0 -56
  1205. package/lib/python3.12/site-packages/pip/_vendor/rich/_wrap.py +0 -93
  1206. package/lib/python3.12/site-packages/pip/_vendor/rich/abc.py +0 -33
  1207. package/lib/python3.12/site-packages/pip/_vendor/rich/align.py +0 -311
  1208. package/lib/python3.12/site-packages/pip/_vendor/rich/ansi.py +0 -240
  1209. package/lib/python3.12/site-packages/pip/_vendor/rich/bar.py +0 -93
  1210. package/lib/python3.12/site-packages/pip/_vendor/rich/box.py +0 -480
  1211. package/lib/python3.12/site-packages/pip/_vendor/rich/cells.py +0 -167
  1212. package/lib/python3.12/site-packages/pip/_vendor/rich/color.py +0 -621
  1213. package/lib/python3.12/site-packages/pip/_vendor/rich/color_triplet.py +0 -38
  1214. package/lib/python3.12/site-packages/pip/_vendor/rich/columns.py +0 -187
  1215. package/lib/python3.12/site-packages/pip/_vendor/rich/console.py +0 -2633
  1216. package/lib/python3.12/site-packages/pip/_vendor/rich/constrain.py +0 -37
  1217. package/lib/python3.12/site-packages/pip/_vendor/rich/containers.py +0 -167
  1218. package/lib/python3.12/site-packages/pip/_vendor/rich/control.py +0 -225
  1219. package/lib/python3.12/site-packages/pip/_vendor/rich/default_styles.py +0 -190
  1220. package/lib/python3.12/site-packages/pip/_vendor/rich/diagnose.py +0 -37
  1221. package/lib/python3.12/site-packages/pip/_vendor/rich/emoji.py +0 -96
  1222. package/lib/python3.12/site-packages/pip/_vendor/rich/errors.py +0 -34
  1223. package/lib/python3.12/site-packages/pip/_vendor/rich/file_proxy.py +0 -57
  1224. package/lib/python3.12/site-packages/pip/_vendor/rich/filesize.py +0 -89
  1225. package/lib/python3.12/site-packages/pip/_vendor/rich/highlighter.py +0 -232
  1226. package/lib/python3.12/site-packages/pip/_vendor/rich/json.py +0 -139
  1227. package/lib/python3.12/site-packages/pip/_vendor/rich/jupyter.py +0 -101
  1228. package/lib/python3.12/site-packages/pip/_vendor/rich/layout.py +0 -442
  1229. package/lib/python3.12/site-packages/pip/_vendor/rich/live.py +0 -375
  1230. package/lib/python3.12/site-packages/pip/_vendor/rich/live_render.py +0 -112
  1231. package/lib/python3.12/site-packages/pip/_vendor/rich/logging.py +0 -289
  1232. package/lib/python3.12/site-packages/pip/_vendor/rich/markup.py +0 -251
  1233. package/lib/python3.12/site-packages/pip/_vendor/rich/measure.py +0 -151
  1234. package/lib/python3.12/site-packages/pip/_vendor/rich/padding.py +0 -141
  1235. package/lib/python3.12/site-packages/pip/_vendor/rich/pager.py +0 -34
  1236. package/lib/python3.12/site-packages/pip/_vendor/rich/palette.py +0 -100
  1237. package/lib/python3.12/site-packages/pip/_vendor/rich/panel.py +0 -312
  1238. package/lib/python3.12/site-packages/pip/_vendor/rich/pretty.py +0 -995
  1239. package/lib/python3.12/site-packages/pip/_vendor/rich/progress.py +0 -1699
  1240. package/lib/python3.12/site-packages/pip/_vendor/rich/progress_bar.py +0 -223
  1241. package/lib/python3.12/site-packages/pip/_vendor/rich/prompt.py +0 -375
  1242. package/lib/python3.12/site-packages/pip/_vendor/rich/protocol.py +0 -42
  1243. package/lib/python3.12/site-packages/pip/_vendor/rich/py.typed +0 -0
  1244. package/lib/python3.12/site-packages/pip/_vendor/rich/region.py +0 -10
  1245. package/lib/python3.12/site-packages/pip/_vendor/rich/repr.py +0 -149
  1246. package/lib/python3.12/site-packages/pip/_vendor/rich/rule.py +0 -130
  1247. package/lib/python3.12/site-packages/pip/_vendor/rich/scope.py +0 -86
  1248. package/lib/python3.12/site-packages/pip/_vendor/rich/screen.py +0 -54
  1249. package/lib/python3.12/site-packages/pip/_vendor/rich/segment.py +0 -738
  1250. package/lib/python3.12/site-packages/pip/_vendor/rich/spinner.py +0 -137
  1251. package/lib/python3.12/site-packages/pip/_vendor/rich/status.py +0 -131
  1252. package/lib/python3.12/site-packages/pip/_vendor/rich/style.py +0 -796
  1253. package/lib/python3.12/site-packages/pip/_vendor/rich/styled.py +0 -42
  1254. package/lib/python3.12/site-packages/pip/_vendor/rich/syntax.py +0 -958
  1255. package/lib/python3.12/site-packages/pip/_vendor/rich/table.py +0 -1000
  1256. package/lib/python3.12/site-packages/pip/_vendor/rich/terminal_theme.py +0 -153
  1257. package/lib/python3.12/site-packages/pip/_vendor/rich/text.py +0 -1357
  1258. package/lib/python3.12/site-packages/pip/_vendor/rich/theme.py +0 -115
  1259. package/lib/python3.12/site-packages/pip/_vendor/rich/themes.py +0 -5
  1260. package/lib/python3.12/site-packages/pip/_vendor/rich/traceback.py +0 -753
  1261. package/lib/python3.12/site-packages/pip/_vendor/rich/tree.py +0 -249
  1262. package/lib/python3.12/site-packages/pip/_vendor/tomli/__init__.py +0 -11
  1263. package/lib/python3.12/site-packages/pip/_vendor/tomli/_parser.py +0 -691
  1264. package/lib/python3.12/site-packages/pip/_vendor/tomli/_re.py +0 -107
  1265. package/lib/python3.12/site-packages/pip/_vendor/tomli/_types.py +0 -10
  1266. package/lib/python3.12/site-packages/pip/_vendor/tomli/py.typed +0 -1
  1267. package/lib/python3.12/site-packages/pip/_vendor/truststore/__init__.py +0 -36
  1268. package/lib/python3.12/site-packages/pip/_vendor/truststore/_api.py +0 -316
  1269. package/lib/python3.12/site-packages/pip/_vendor/truststore/_macos.py +0 -571
  1270. package/lib/python3.12/site-packages/pip/_vendor/truststore/_openssl.py +0 -66
  1271. package/lib/python3.12/site-packages/pip/_vendor/truststore/_ssl_constants.py +0 -31
  1272. package/lib/python3.12/site-packages/pip/_vendor/truststore/_windows.py +0 -567
  1273. package/lib/python3.12/site-packages/pip/_vendor/truststore/py.typed +0 -0
  1274. package/lib/python3.12/site-packages/pip/_vendor/typing_extensions.py +0 -3641
  1275. package/lib/python3.12/site-packages/pip/_vendor/urllib3/__init__.py +0 -102
  1276. package/lib/python3.12/site-packages/pip/_vendor/urllib3/_collections.py +0 -355
  1277. package/lib/python3.12/site-packages/pip/_vendor/urllib3/_version.py +0 -2
  1278. package/lib/python3.12/site-packages/pip/_vendor/urllib3/connection.py +0 -572
  1279. package/lib/python3.12/site-packages/pip/_vendor/urllib3/connectionpool.py +0 -1140
  1280. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  1281. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +0 -36
  1282. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  1283. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +0 -519
  1284. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +0 -397
  1285. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/appengine.py +0 -314
  1286. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +0 -130
  1287. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +0 -518
  1288. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +0 -920
  1289. package/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/socks.py +0 -216
  1290. package/lib/python3.12/site-packages/pip/_vendor/urllib3/exceptions.py +0 -323
  1291. package/lib/python3.12/site-packages/pip/_vendor/urllib3/fields.py +0 -274
  1292. package/lib/python3.12/site-packages/pip/_vendor/urllib3/filepost.py +0 -98
  1293. package/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
  1294. package/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  1295. package/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +0 -51
  1296. package/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +0 -155
  1297. package/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/six.py +0 -1076
  1298. package/lib/python3.12/site-packages/pip/_vendor/urllib3/poolmanager.py +0 -540
  1299. package/lib/python3.12/site-packages/pip/_vendor/urllib3/request.py +0 -191
  1300. package/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py +0 -879
  1301. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__init__.py +0 -49
  1302. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/connection.py +0 -149
  1303. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/proxy.py +0 -57
  1304. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/queue.py +0 -22
  1305. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/request.py +0 -137
  1306. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/response.py +0 -107
  1307. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/retry.py +0 -622
  1308. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssl_.py +0 -504
  1309. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +0 -159
  1310. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssltransport.py +0 -221
  1311. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/timeout.py +0 -271
  1312. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/url.py +0 -435
  1313. package/lib/python3.12/site-packages/pip/_vendor/urllib3/util/wait.py +0 -152
  1314. package/lib/python3.12/site-packages/pip/_vendor/vendor.txt +0 -18
  1315. package/lib/python3.12/site-packages/pip/py.typed +0 -4
  1316. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/AUTHORS.txt +0 -799
  1317. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/INSTALLER +0 -1
  1318. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/LICENSE.txt +0 -20
  1319. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/METADATA +0 -90
  1320. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/RECORD +0 -854
  1321. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/REQUESTED +0 -0
  1322. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/WHEEL +0 -5
  1323. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/direct_url.json +0 -1
  1324. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/entry_points.txt +0 -3
  1325. package/lib/python3.12/site-packages/pip-24.3.1.dist-info/top_level.txt +0 -1
  1326. package/lib/python3.12/site.py +0 -693
  1327. package/lib/python3.12/smtplib.py +0 -1109
  1328. package/lib/python3.12/sndhdr.py +0 -271
  1329. package/lib/python3.12/socket.py +0 -983
  1330. package/lib/python3.12/socketserver.py +0 -863
  1331. package/lib/python3.12/sqlite3/__init__.py +0 -70
  1332. package/lib/python3.12/sqlite3/__main__.py +0 -127
  1333. package/lib/python3.12/sqlite3/dbapi2.py +0 -108
  1334. package/lib/python3.12/sqlite3/dump.py +0 -89
  1335. package/lib/python3.12/sre_compile.py +0 -7
  1336. package/lib/python3.12/sre_constants.py +0 -7
  1337. package/lib/python3.12/sre_parse.py +0 -7
  1338. package/lib/python3.12/ssl.py +0 -1476
  1339. package/lib/python3.12/stat.py +0 -195
  1340. package/lib/python3.12/statistics.py +0 -1454
  1341. package/lib/python3.12/string.py +0 -309
  1342. package/lib/python3.12/stringprep.py +0 -272
  1343. package/lib/python3.12/struct.py +0 -15
  1344. package/lib/python3.12/subprocess.py +0 -2216
  1345. package/lib/python3.12/sunau.py +0 -533
  1346. package/lib/python3.12/symtable.py +0 -362
  1347. package/lib/python3.12/sysconfig.py +0 -894
  1348. package/lib/python3.12/tabnanny.py +0 -340
  1349. package/lib/python3.12/tarfile.py +0 -2933
  1350. package/lib/python3.12/telnetlib.py +0 -680
  1351. package/lib/python3.12/tempfile.py +0 -956
  1352. package/lib/python3.12/textwrap.py +0 -491
  1353. package/lib/python3.12/this.py +0 -28
  1354. package/lib/python3.12/threading.py +0 -1708
  1355. package/lib/python3.12/timeit.py +0 -381
  1356. package/lib/python3.12/tkinter/__init__.py +0 -4682
  1357. package/lib/python3.12/tkinter/__main__.py +0 -7
  1358. package/lib/python3.12/tkinter/colorchooser.py +0 -86
  1359. package/lib/python3.12/tkinter/commondialog.py +0 -53
  1360. package/lib/python3.12/tkinter/constants.py +0 -110
  1361. package/lib/python3.12/tkinter/dialog.py +0 -49
  1362. package/lib/python3.12/tkinter/dnd.py +0 -324
  1363. package/lib/python3.12/tkinter/filedialog.py +0 -492
  1364. package/lib/python3.12/tkinter/font.py +0 -239
  1365. package/lib/python3.12/tkinter/messagebox.py +0 -146
  1366. package/lib/python3.12/tkinter/scrolledtext.py +0 -56
  1367. package/lib/python3.12/tkinter/simpledialog.py +0 -441
  1368. package/lib/python3.12/tkinter/tix.py +0 -1948
  1369. package/lib/python3.12/tkinter/ttk.py +0 -1640
  1370. package/lib/python3.12/token.py +0 -143
  1371. package/lib/python3.12/tokenize.py +0 -594
  1372. package/lib/python3.12/tomllib/__init__.py +0 -10
  1373. package/lib/python3.12/tomllib/_parser.py +0 -691
  1374. package/lib/python3.12/tomllib/_re.py +0 -107
  1375. package/lib/python3.12/tomllib/_types.py +0 -10
  1376. package/lib/python3.12/trace.py +0 -748
  1377. package/lib/python3.12/traceback.py +0 -1187
  1378. package/lib/python3.12/tracemalloc.py +0 -560
  1379. package/lib/python3.12/tty.py +0 -73
  1380. package/lib/python3.12/turtle.py +0 -4207
  1381. package/lib/python3.12/turtledemo/__init__.py +0 -14
  1382. package/lib/python3.12/turtledemo/__main__.py +0 -404
  1383. package/lib/python3.12/turtledemo/bytedesign.py +0 -161
  1384. package/lib/python3.12/turtledemo/chaos.py +0 -59
  1385. package/lib/python3.12/turtledemo/clock.py +0 -138
  1386. package/lib/python3.12/turtledemo/colormixer.py +0 -58
  1387. package/lib/python3.12/turtledemo/forest.py +0 -108
  1388. package/lib/python3.12/turtledemo/fractalcurves.py +0 -138
  1389. package/lib/python3.12/turtledemo/lindenmayer.py +0 -119
  1390. package/lib/python3.12/turtledemo/minimal_hanoi.py +0 -79
  1391. package/lib/python3.12/turtledemo/nim.py +0 -226
  1392. package/lib/python3.12/turtledemo/paint.py +0 -54
  1393. package/lib/python3.12/turtledemo/peace.py +0 -61
  1394. package/lib/python3.12/turtledemo/penrose.py +0 -175
  1395. package/lib/python3.12/turtledemo/planet_and_moon.py +0 -111
  1396. package/lib/python3.12/turtledemo/rosette.py +0 -65
  1397. package/lib/python3.12/turtledemo/round_dance.py +0 -86
  1398. package/lib/python3.12/turtledemo/sorting_animate.py +0 -204
  1399. package/lib/python3.12/turtledemo/tree.py +0 -62
  1400. package/lib/python3.12/turtledemo/turtle.cfg +0 -10
  1401. package/lib/python3.12/turtledemo/two_canvases.py +0 -54
  1402. package/lib/python3.12/turtledemo/yinyang.py +0 -49
  1403. package/lib/python3.12/types.py +0 -333
  1404. package/lib/python3.12/typing.py +0 -3494
  1405. package/lib/python3.12/unittest/__init__.py +0 -85
  1406. package/lib/python3.12/unittest/__main__.py +0 -18
  1407. package/lib/python3.12/unittest/_log.py +0 -86
  1408. package/lib/python3.12/unittest/async_case.py +0 -143
  1409. package/lib/python3.12/unittest/case.py +0 -1456
  1410. package/lib/python3.12/unittest/loader.py +0 -497
  1411. package/lib/python3.12/unittest/main.py +0 -291
  1412. package/lib/python3.12/unittest/mock.py +0 -3054
  1413. package/lib/python3.12/unittest/result.py +0 -256
  1414. package/lib/python3.12/unittest/runner.py +0 -292
  1415. package/lib/python3.12/unittest/signals.py +0 -71
  1416. package/lib/python3.12/unittest/suite.py +0 -379
  1417. package/lib/python3.12/unittest/util.py +0 -170
  1418. package/lib/python3.12/urllib/__init__.py +0 -0
  1419. package/lib/python3.12/urllib/error.py +0 -74
  1420. package/lib/python3.12/urllib/parse.py +0 -1262
  1421. package/lib/python3.12/urllib/request.py +0 -2811
  1422. package/lib/python3.12/urllib/response.py +0 -84
  1423. package/lib/python3.12/urllib/robotparser.py +0 -275
  1424. package/lib/python3.12/uu.py +0 -216
  1425. package/lib/python3.12/uuid.py +0 -793
  1426. package/lib/python3.12/venv/__init__.py +0 -608
  1427. package/lib/python3.12/venv/__main__.py +0 -10
  1428. package/lib/python3.12/venv/scripts/common/Activate.ps1 +0 -247
  1429. package/lib/python3.12/venv/scripts/common/activate +0 -76
  1430. package/lib/python3.12/venv/scripts/posix/activate.csh +0 -27
  1431. package/lib/python3.12/venv/scripts/posix/activate.fish +0 -69
  1432. package/lib/python3.12/warnings.py +0 -598
  1433. package/lib/python3.12/wave.py +0 -653
  1434. package/lib/python3.12/weakref.py +0 -674
  1435. package/lib/python3.12/webbrowser.py +0 -689
  1436. package/lib/python3.12/wsgiref/__init__.py +0 -25
  1437. package/lib/python3.12/wsgiref/handlers.py +0 -573
  1438. package/lib/python3.12/wsgiref/headers.py +0 -184
  1439. package/lib/python3.12/wsgiref/simple_server.py +0 -165
  1440. package/lib/python3.12/wsgiref/types.py +0 -54
  1441. package/lib/python3.12/wsgiref/util.py +0 -159
  1442. package/lib/python3.12/wsgiref/validate.py +0 -438
  1443. package/lib/python3.12/xdrlib.py +0 -242
  1444. package/lib/python3.12/xml/__init__.py +0 -20
  1445. package/lib/python3.12/xml/dom/NodeFilter.py +0 -27
  1446. package/lib/python3.12/xml/dom/__init__.py +0 -140
  1447. package/lib/python3.12/xml/dom/domreg.py +0 -99
  1448. package/lib/python3.12/xml/dom/expatbuilder.py +0 -962
  1449. package/lib/python3.12/xml/dom/minicompat.py +0 -109
  1450. package/lib/python3.12/xml/dom/minidom.py +0 -2013
  1451. package/lib/python3.12/xml/dom/pulldom.py +0 -336
  1452. package/lib/python3.12/xml/dom/xmlbuilder.py +0 -389
  1453. package/lib/python3.12/xml/etree/ElementInclude.py +0 -186
  1454. package/lib/python3.12/xml/etree/ElementPath.py +0 -423
  1455. package/lib/python3.12/xml/etree/ElementTree.py +0 -2085
  1456. package/lib/python3.12/xml/etree/__init__.py +0 -33
  1457. package/lib/python3.12/xml/etree/cElementTree.py +0 -3
  1458. package/lib/python3.12/xml/parsers/__init__.py +0 -8
  1459. package/lib/python3.12/xml/parsers/expat.py +0 -8
  1460. package/lib/python3.12/xml/sax/__init__.py +0 -94
  1461. package/lib/python3.12/xml/sax/_exceptions.py +0 -127
  1462. package/lib/python3.12/xml/sax/expatreader.py +0 -454
  1463. package/lib/python3.12/xml/sax/handler.py +0 -387
  1464. package/lib/python3.12/xml/sax/saxutils.py +0 -369
  1465. package/lib/python3.12/xml/sax/xmlreader.py +0 -378
  1466. package/lib/python3.12/xmlrpc/__init__.py +0 -1
  1467. package/lib/python3.12/xmlrpc/client.py +0 -1529
  1468. package/lib/python3.12/xmlrpc/server.py +0 -1002
  1469. package/lib/python3.12/zipapp.py +0 -206
  1470. package/lib/python3.12/zipfile/__init__.py +0 -2327
  1471. package/lib/python3.12/zipfile/__main__.py +0 -4
  1472. package/lib/python3.12/zipfile/_path/__init__.py +0 -412
  1473. package/lib/python3.12/zipfile/_path/glob.py +0 -53
  1474. package/lib/python3.12/zipimport.py +0 -712
  1475. package/lib/python3.12/zoneinfo/__init__.py +0 -31
  1476. package/lib/python3.12/zoneinfo/_common.py +0 -164
  1477. package/lib/python3.12/zoneinfo/_tzpath.py +0 -181
  1478. package/lib/python3.12/zoneinfo/_zoneinfo.py +0 -772
  1479. package/lib/tcl8/8.4/platform/shell-1.1.4.tm +0 -241
  1480. package/lib/tcl8/8.4/platform-1.0.19.tm +0 -450
  1481. package/lib/tcl8/8.5/msgcat-1.6.1.tm +0 -1210
  1482. package/lib/tcl8/8.5/tcltest-2.5.7.tm +0 -3584
  1483. package/lib/tcl8/8.6/http-2.9.8.tm +0 -3604
  1484. package/lib/tcl8.6/auto.tcl +0 -648
  1485. package/lib/tcl8.6/clock.tcl +0 -4551
  1486. package/lib/tcl8.6/encoding/ascii.enc +0 -20
  1487. package/lib/tcl8.6/encoding/big5.enc +0 -1516
  1488. package/lib/tcl8.6/encoding/cns11643.enc +0 -1584
  1489. package/lib/tcl8.6/encoding/cp1250.enc +0 -20
  1490. package/lib/tcl8.6/encoding/cp1251.enc +0 -20
  1491. package/lib/tcl8.6/encoding/cp1252.enc +0 -20
  1492. package/lib/tcl8.6/encoding/cp1253.enc +0 -20
  1493. package/lib/tcl8.6/encoding/cp1254.enc +0 -20
  1494. package/lib/tcl8.6/encoding/cp1255.enc +0 -20
  1495. package/lib/tcl8.6/encoding/cp1256.enc +0 -20
  1496. package/lib/tcl8.6/encoding/cp1257.enc +0 -20
  1497. package/lib/tcl8.6/encoding/cp1258.enc +0 -20
  1498. package/lib/tcl8.6/encoding/cp437.enc +0 -20
  1499. package/lib/tcl8.6/encoding/cp737.enc +0 -20
  1500. package/lib/tcl8.6/encoding/cp775.enc +0 -20
  1501. package/lib/tcl8.6/encoding/cp850.enc +0 -20
  1502. package/lib/tcl8.6/encoding/cp852.enc +0 -20
  1503. package/lib/tcl8.6/encoding/cp855.enc +0 -20
  1504. package/lib/tcl8.6/encoding/cp857.enc +0 -20
  1505. package/lib/tcl8.6/encoding/cp860.enc +0 -20
  1506. package/lib/tcl8.6/encoding/cp861.enc +0 -20
  1507. package/lib/tcl8.6/encoding/cp862.enc +0 -20
  1508. package/lib/tcl8.6/encoding/cp863.enc +0 -20
  1509. package/lib/tcl8.6/encoding/cp864.enc +0 -20
  1510. package/lib/tcl8.6/encoding/cp865.enc +0 -20
  1511. package/lib/tcl8.6/encoding/cp866.enc +0 -20
  1512. package/lib/tcl8.6/encoding/cp869.enc +0 -20
  1513. package/lib/tcl8.6/encoding/cp874.enc +0 -20
  1514. package/lib/tcl8.6/encoding/cp932.enc +0 -801
  1515. package/lib/tcl8.6/encoding/cp936.enc +0 -2162
  1516. package/lib/tcl8.6/encoding/cp949.enc +0 -2128
  1517. package/lib/tcl8.6/encoding/cp950.enc +0 -1499
  1518. package/lib/tcl8.6/encoding/dingbats.enc +0 -20
  1519. package/lib/tcl8.6/encoding/ebcdic.enc +0 -19
  1520. package/lib/tcl8.6/encoding/euc-cn.enc +0 -1397
  1521. package/lib/tcl8.6/encoding/euc-jp.enc +0 -1353
  1522. package/lib/tcl8.6/encoding/euc-kr.enc +0 -1533
  1523. package/lib/tcl8.6/encoding/gb12345.enc +0 -1414
  1524. package/lib/tcl8.6/encoding/gb1988.enc +0 -20
  1525. package/lib/tcl8.6/encoding/gb2312-raw.enc +0 -1380
  1526. package/lib/tcl8.6/encoding/gb2312.enc +0 -1397
  1527. package/lib/tcl8.6/encoding/iso2022-jp.enc +0 -12
  1528. package/lib/tcl8.6/encoding/iso2022-kr.enc +0 -7
  1529. package/lib/tcl8.6/encoding/iso2022.enc +0 -14
  1530. package/lib/tcl8.6/encoding/iso8859-1.enc +0 -20
  1531. package/lib/tcl8.6/encoding/iso8859-10.enc +0 -20
  1532. package/lib/tcl8.6/encoding/iso8859-11.enc +0 -20
  1533. package/lib/tcl8.6/encoding/iso8859-13.enc +0 -20
  1534. package/lib/tcl8.6/encoding/iso8859-14.enc +0 -20
  1535. package/lib/tcl8.6/encoding/iso8859-15.enc +0 -20
  1536. package/lib/tcl8.6/encoding/iso8859-16.enc +0 -20
  1537. package/lib/tcl8.6/encoding/iso8859-2.enc +0 -20
  1538. package/lib/tcl8.6/encoding/iso8859-3.enc +0 -20
  1539. package/lib/tcl8.6/encoding/iso8859-4.enc +0 -20
  1540. package/lib/tcl8.6/encoding/iso8859-5.enc +0 -20
  1541. package/lib/tcl8.6/encoding/iso8859-6.enc +0 -20
  1542. package/lib/tcl8.6/encoding/iso8859-7.enc +0 -20
  1543. package/lib/tcl8.6/encoding/iso8859-8.enc +0 -20
  1544. package/lib/tcl8.6/encoding/iso8859-9.enc +0 -20
  1545. package/lib/tcl8.6/encoding/jis0201.enc +0 -20
  1546. package/lib/tcl8.6/encoding/jis0208.enc +0 -1319
  1547. package/lib/tcl8.6/encoding/jis0212.enc +0 -1159
  1548. package/lib/tcl8.6/encoding/koi8-r.enc +0 -20
  1549. package/lib/tcl8.6/encoding/koi8-u.enc +0 -20
  1550. package/lib/tcl8.6/encoding/ksc5601.enc +0 -1516
  1551. package/lib/tcl8.6/encoding/macCentEuro.enc +0 -20
  1552. package/lib/tcl8.6/encoding/macCroatian.enc +0 -20
  1553. package/lib/tcl8.6/encoding/macCyrillic.enc +0 -20
  1554. package/lib/tcl8.6/encoding/macDingbats.enc +0 -20
  1555. package/lib/tcl8.6/encoding/macGreek.enc +0 -20
  1556. package/lib/tcl8.6/encoding/macIceland.enc +0 -20
  1557. package/lib/tcl8.6/encoding/macJapan.enc +0 -785
  1558. package/lib/tcl8.6/encoding/macRoman.enc +0 -20
  1559. package/lib/tcl8.6/encoding/macRomania.enc +0 -20
  1560. package/lib/tcl8.6/encoding/macThai.enc +0 -20
  1561. package/lib/tcl8.6/encoding/macTurkish.enc +0 -20
  1562. package/lib/tcl8.6/encoding/macUkraine.enc +0 -20
  1563. package/lib/tcl8.6/encoding/shiftjis.enc +0 -690
  1564. package/lib/tcl8.6/encoding/symbol.enc +0 -20
  1565. package/lib/tcl8.6/encoding/tis-620.enc +0 -20
  1566. package/lib/tcl8.6/history.tcl +0 -335
  1567. package/lib/tcl8.6/http1.0/http.tcl +0 -377
  1568. package/lib/tcl8.6/http1.0/pkgIndex.tcl +0 -11
  1569. package/lib/tcl8.6/init.tcl +0 -827
  1570. package/lib/tcl8.6/msgs/af.msg +0 -49
  1571. package/lib/tcl8.6/msgs/af_za.msg +0 -6
  1572. package/lib/tcl8.6/msgs/ar.msg +0 -54
  1573. package/lib/tcl8.6/msgs/ar_in.msg +0 -6
  1574. package/lib/tcl8.6/msgs/ar_jo.msg +0 -39
  1575. package/lib/tcl8.6/msgs/ar_lb.msg +0 -39
  1576. package/lib/tcl8.6/msgs/ar_sy.msg +0 -39
  1577. package/lib/tcl8.6/msgs/be.msg +0 -52
  1578. package/lib/tcl8.6/msgs/bg.msg +0 -52
  1579. package/lib/tcl8.6/msgs/bn.msg +0 -49
  1580. package/lib/tcl8.6/msgs/bn_in.msg +0 -6
  1581. package/lib/tcl8.6/msgs/ca.msg +0 -50
  1582. package/lib/tcl8.6/msgs/cs.msg +0 -54
  1583. package/lib/tcl8.6/msgs/da.msg +0 -52
  1584. package/lib/tcl8.6/msgs/de.msg +0 -54
  1585. package/lib/tcl8.6/msgs/de_at.msg +0 -35
  1586. package/lib/tcl8.6/msgs/de_be.msg +0 -53
  1587. package/lib/tcl8.6/msgs/el.msg +0 -52
  1588. package/lib/tcl8.6/msgs/en_au.msg +0 -7
  1589. package/lib/tcl8.6/msgs/en_be.msg +0 -7
  1590. package/lib/tcl8.6/msgs/en_bw.msg +0 -6
  1591. package/lib/tcl8.6/msgs/en_ca.msg +0 -7
  1592. package/lib/tcl8.6/msgs/en_gb.msg +0 -7
  1593. package/lib/tcl8.6/msgs/en_hk.msg +0 -8
  1594. package/lib/tcl8.6/msgs/en_ie.msg +0 -7
  1595. package/lib/tcl8.6/msgs/en_in.msg +0 -8
  1596. package/lib/tcl8.6/msgs/en_nz.msg +0 -7
  1597. package/lib/tcl8.6/msgs/en_ph.msg +0 -8
  1598. package/lib/tcl8.6/msgs/en_sg.msg +0 -6
  1599. package/lib/tcl8.6/msgs/en_za.msg +0 -6
  1600. package/lib/tcl8.6/msgs/en_zw.msg +0 -6
  1601. package/lib/tcl8.6/msgs/eo.msg +0 -54
  1602. package/lib/tcl8.6/msgs/es.msg +0 -52
  1603. package/lib/tcl8.6/msgs/es_ar.msg +0 -6
  1604. package/lib/tcl8.6/msgs/es_bo.msg +0 -6
  1605. package/lib/tcl8.6/msgs/es_cl.msg +0 -6
  1606. package/lib/tcl8.6/msgs/es_co.msg +0 -6
  1607. package/lib/tcl8.6/msgs/es_cr.msg +0 -6
  1608. package/lib/tcl8.6/msgs/es_do.msg +0 -6
  1609. package/lib/tcl8.6/msgs/es_ec.msg +0 -6
  1610. package/lib/tcl8.6/msgs/es_gt.msg +0 -6
  1611. package/lib/tcl8.6/msgs/es_hn.msg +0 -6
  1612. package/lib/tcl8.6/msgs/es_mx.msg +0 -6
  1613. package/lib/tcl8.6/msgs/es_ni.msg +0 -6
  1614. package/lib/tcl8.6/msgs/es_pa.msg +0 -6
  1615. package/lib/tcl8.6/msgs/es_pe.msg +0 -6
  1616. package/lib/tcl8.6/msgs/es_pr.msg +0 -6
  1617. package/lib/tcl8.6/msgs/es_py.msg +0 -6
  1618. package/lib/tcl8.6/msgs/es_sv.msg +0 -6
  1619. package/lib/tcl8.6/msgs/es_uy.msg +0 -6
  1620. package/lib/tcl8.6/msgs/es_ve.msg +0 -6
  1621. package/lib/tcl8.6/msgs/et.msg +0 -52
  1622. package/lib/tcl8.6/msgs/eu.msg +0 -47
  1623. package/lib/tcl8.6/msgs/eu_es.msg +0 -7
  1624. package/lib/tcl8.6/msgs/fa.msg +0 -47
  1625. package/lib/tcl8.6/msgs/fa_in.msg +0 -52
  1626. package/lib/tcl8.6/msgs/fa_ir.msg +0 -9
  1627. package/lib/tcl8.6/msgs/fi.msg +0 -50
  1628. package/lib/tcl8.6/msgs/fo.msg +0 -47
  1629. package/lib/tcl8.6/msgs/fo_fo.msg +0 -7
  1630. package/lib/tcl8.6/msgs/fr.msg +0 -52
  1631. package/lib/tcl8.6/msgs/fr_be.msg +0 -7
  1632. package/lib/tcl8.6/msgs/fr_ca.msg +0 -7
  1633. package/lib/tcl8.6/msgs/fr_ch.msg +0 -7
  1634. package/lib/tcl8.6/msgs/ga.msg +0 -47
  1635. package/lib/tcl8.6/msgs/ga_ie.msg +0 -7
  1636. package/lib/tcl8.6/msgs/gl.msg +0 -47
  1637. package/lib/tcl8.6/msgs/gl_es.msg +0 -6
  1638. package/lib/tcl8.6/msgs/gv.msg +0 -47
  1639. package/lib/tcl8.6/msgs/gv_gb.msg +0 -6
  1640. package/lib/tcl8.6/msgs/he.msg +0 -52
  1641. package/lib/tcl8.6/msgs/hi.msg +0 -39
  1642. package/lib/tcl8.6/msgs/hi_in.msg +0 -6
  1643. package/lib/tcl8.6/msgs/hr.msg +0 -50
  1644. package/lib/tcl8.6/msgs/hu.msg +0 -54
  1645. package/lib/tcl8.6/msgs/id.msg +0 -47
  1646. package/lib/tcl8.6/msgs/id_id.msg +0 -6
  1647. package/lib/tcl8.6/msgs/is.msg +0 -50
  1648. package/lib/tcl8.6/msgs/it.msg +0 -54
  1649. package/lib/tcl8.6/msgs/it_ch.msg +0 -6
  1650. package/lib/tcl8.6/msgs/ja.msg +0 -44
  1651. package/lib/tcl8.6/msgs/kl.msg +0 -47
  1652. package/lib/tcl8.6/msgs/kl_gl.msg +0 -7
  1653. package/lib/tcl8.6/msgs/ko.msg +0 -55
  1654. package/lib/tcl8.6/msgs/ko_kr.msg +0 -8
  1655. package/lib/tcl8.6/msgs/kok.msg +0 -39
  1656. package/lib/tcl8.6/msgs/kok_in.msg +0 -6
  1657. package/lib/tcl8.6/msgs/kw.msg +0 -47
  1658. package/lib/tcl8.6/msgs/kw_gb.msg +0 -6
  1659. package/lib/tcl8.6/msgs/lt.msg +0 -52
  1660. package/lib/tcl8.6/msgs/lv.msg +0 -52
  1661. package/lib/tcl8.6/msgs/mk.msg +0 -52
  1662. package/lib/tcl8.6/msgs/mr.msg +0 -39
  1663. package/lib/tcl8.6/msgs/mr_in.msg +0 -6
  1664. package/lib/tcl8.6/msgs/ms.msg +0 -47
  1665. package/lib/tcl8.6/msgs/ms_my.msg +0 -6
  1666. package/lib/tcl8.6/msgs/mt.msg +0 -27
  1667. package/lib/tcl8.6/msgs/nb.msg +0 -52
  1668. package/lib/tcl8.6/msgs/nl.msg +0 -50
  1669. package/lib/tcl8.6/msgs/nl_be.msg +0 -7
  1670. package/lib/tcl8.6/msgs/nn.msg +0 -52
  1671. package/lib/tcl8.6/msgs/pl.msg +0 -52
  1672. package/lib/tcl8.6/msgs/pt.msg +0 -50
  1673. package/lib/tcl8.6/msgs/pt_br.msg +0 -7
  1674. package/lib/tcl8.6/msgs/ro.msg +0 -52
  1675. package/lib/tcl8.6/msgs/ru.msg +0 -52
  1676. package/lib/tcl8.6/msgs/ru_ua.msg +0 -6
  1677. package/lib/tcl8.6/msgs/sh.msg +0 -52
  1678. package/lib/tcl8.6/msgs/sk.msg +0 -52
  1679. package/lib/tcl8.6/msgs/sl.msg +0 -52
  1680. package/lib/tcl8.6/msgs/sq.msg +0 -54
  1681. package/lib/tcl8.6/msgs/sr.msg +0 -52
  1682. package/lib/tcl8.6/msgs/sv.msg +0 -52
  1683. package/lib/tcl8.6/msgs/sw.msg +0 -49
  1684. package/lib/tcl8.6/msgs/ta.msg +0 -39
  1685. package/lib/tcl8.6/msgs/ta_in.msg +0 -6
  1686. package/lib/tcl8.6/msgs/te.msg +0 -47
  1687. package/lib/tcl8.6/msgs/te_in.msg +0 -8
  1688. package/lib/tcl8.6/msgs/th.msg +0 -54
  1689. package/lib/tcl8.6/msgs/tr.msg +0 -50
  1690. package/lib/tcl8.6/msgs/uk.msg +0 -52
  1691. package/lib/tcl8.6/msgs/vi.msg +0 -50
  1692. package/lib/tcl8.6/msgs/zh.msg +0 -55
  1693. package/lib/tcl8.6/msgs/zh_cn.msg +0 -7
  1694. package/lib/tcl8.6/msgs/zh_hk.msg +0 -28
  1695. package/lib/tcl8.6/msgs/zh_sg.msg +0 -8
  1696. package/lib/tcl8.6/msgs/zh_tw.msg +0 -8
  1697. package/lib/tcl8.6/opt0.4/optparse.tcl +0 -1072
  1698. package/lib/tcl8.6/opt0.4/pkgIndex.tcl +0 -12
  1699. package/lib/tcl8.6/package.tcl +0 -751
  1700. package/lib/tcl8.6/parray.tcl +0 -28
  1701. package/lib/tcl8.6/safe.tcl +0 -1289
  1702. package/lib/tcl8.6/tclAppInit.c +0 -176
  1703. package/lib/tcl8.6/tclIndex +0 -79
  1704. package/lib/tcl8.6/tm.tcl +0 -380
  1705. package/lib/tcl8.6/word.tcl +0 -154
  1706. package/lib/thread2.8.9/libthread2.8.9.a +0 -0
  1707. package/lib/thread2.8.9/ttrace.tcl +0 -942
  1708. package/lib/tk8.6/bgerror.tcl +0 -272
  1709. package/lib/tk8.6/button.tcl +0 -782
  1710. package/lib/tk8.6/choosedir.tcl +0 -310
  1711. package/lib/tk8.6/clrpick.tcl +0 -694
  1712. package/lib/tk8.6/comdlg.tcl +0 -322
  1713. package/lib/tk8.6/console.tcl +0 -1154
  1714. package/lib/tk8.6/demos/README +0 -44
  1715. package/lib/tk8.6/demos/anilabel.tcl +0 -160
  1716. package/lib/tk8.6/demos/aniwave.tcl +0 -104
  1717. package/lib/tk8.6/demos/arrow.tcl +0 -241
  1718. package/lib/tk8.6/demos/bind.tcl +0 -78
  1719. package/lib/tk8.6/demos/bitmap.tcl +0 -52
  1720. package/lib/tk8.6/demos/browse +0 -66
  1721. package/lib/tk8.6/demos/button.tcl +0 -47
  1722. package/lib/tk8.6/demos/check.tcl +0 -71
  1723. package/lib/tk8.6/demos/clrpick.tcl +0 -54
  1724. package/lib/tk8.6/demos/colors.tcl +0 -99
  1725. package/lib/tk8.6/demos/combo.tcl +0 -61
  1726. package/lib/tk8.6/demos/cscroll.tcl +0 -172
  1727. package/lib/tk8.6/demos/ctext.tcl +0 -176
  1728. package/lib/tk8.6/demos/dialog1.tcl +0 -25
  1729. package/lib/tk8.6/demos/dialog2.tcl +0 -18
  1730. package/lib/tk8.6/demos/en.msg +0 -97
  1731. package/lib/tk8.6/demos/entry1.tcl +0 -34
  1732. package/lib/tk8.6/demos/entry2.tcl +0 -46
  1733. package/lib/tk8.6/demos/entry3.tcl +0 -185
  1734. package/lib/tk8.6/demos/filebox.tcl +0 -81
  1735. package/lib/tk8.6/demos/floor.tcl +0 -1372
  1736. package/lib/tk8.6/demos/fontchoose.tcl +0 -67
  1737. package/lib/tk8.6/demos/form.tcl +0 -38
  1738. package/lib/tk8.6/demos/goldberg.tcl +0 -1834
  1739. package/lib/tk8.6/demos/hello +0 -22
  1740. package/lib/tk8.6/demos/hscale.tcl +0 -45
  1741. package/lib/tk8.6/demos/icon.tcl +0 -51
  1742. package/lib/tk8.6/demos/image1.tcl +0 -35
  1743. package/lib/tk8.6/demos/image2.tcl +0 -108
  1744. package/lib/tk8.6/demos/images/earth.gif +0 -0
  1745. package/lib/tk8.6/demos/images/earthmenu.png +0 -0
  1746. package/lib/tk8.6/demos/images/earthris.gif +0 -0
  1747. package/lib/tk8.6/demos/images/flagdown.xbm +0 -27
  1748. package/lib/tk8.6/demos/images/flagup.xbm +0 -27
  1749. package/lib/tk8.6/demos/images/gray25.xbm +0 -6
  1750. package/lib/tk8.6/demos/images/letters.xbm +0 -27
  1751. package/lib/tk8.6/demos/images/noletter.xbm +0 -27
  1752. package/lib/tk8.6/demos/images/ouster.png +0 -0
  1753. package/lib/tk8.6/demos/images/pattern.xbm +0 -6
  1754. package/lib/tk8.6/demos/images/tcllogo.gif +0 -0
  1755. package/lib/tk8.6/demos/images/teapot.ppm +0 -56
  1756. package/lib/tk8.6/demos/items.tcl +0 -302
  1757. package/lib/tk8.6/demos/ixset +0 -328
  1758. package/lib/tk8.6/demos/knightstour.tcl +0 -268
  1759. package/lib/tk8.6/demos/label.tcl +0 -40
  1760. package/lib/tk8.6/demos/labelframe.tcl +0 -76
  1761. package/lib/tk8.6/demos/license.terms +0 -40
  1762. package/lib/tk8.6/demos/mclist.tcl +0 -119
  1763. package/lib/tk8.6/demos/menu.tcl +0 -177
  1764. package/lib/tk8.6/demos/menubu.tcl +0 -87
  1765. package/lib/tk8.6/demos/msgbox.tcl +0 -62
  1766. package/lib/tk8.6/demos/nl.msg +0 -125
  1767. package/lib/tk8.6/demos/paned1.tcl +0 -32
  1768. package/lib/tk8.6/demos/paned2.tcl +0 -74
  1769. package/lib/tk8.6/demos/pendulum.tcl +0 -197
  1770. package/lib/tk8.6/demos/plot.tcl +0 -97
  1771. package/lib/tk8.6/demos/puzzle.tcl +0 -82
  1772. package/lib/tk8.6/demos/radio.tcl +0 -66
  1773. package/lib/tk8.6/demos/rmt +0 -210
  1774. package/lib/tk8.6/demos/rolodex +0 -204
  1775. package/lib/tk8.6/demos/ruler.tcl +0 -175
  1776. package/lib/tk8.6/demos/sayings.tcl +0 -44
  1777. package/lib/tk8.6/demos/search.tcl +0 -139
  1778. package/lib/tk8.6/demos/spin.tcl +0 -53
  1779. package/lib/tk8.6/demos/states.tcl +0 -54
  1780. package/lib/tk8.6/demos/style.tcl +0 -155
  1781. package/lib/tk8.6/demos/tclIndex +0 -67
  1782. package/lib/tk8.6/demos/tcolor +0 -358
  1783. package/lib/tk8.6/demos/text.tcl +0 -113
  1784. package/lib/tk8.6/demos/textpeer.tcl +0 -62
  1785. package/lib/tk8.6/demos/timer +0 -47
  1786. package/lib/tk8.6/demos/toolbar.tcl +0 -92
  1787. package/lib/tk8.6/demos/tree.tcl +0 -89
  1788. package/lib/tk8.6/demos/ttkbut.tcl +0 -84
  1789. package/lib/tk8.6/demos/ttkmenu.tcl +0 -53
  1790. package/lib/tk8.6/demos/ttknote.tcl +0 -57
  1791. package/lib/tk8.6/demos/ttkpane.tcl +0 -112
  1792. package/lib/tk8.6/demos/ttkprogress.tcl +0 -46
  1793. package/lib/tk8.6/demos/ttkscale.tcl +0 -39
  1794. package/lib/tk8.6/demos/twind.tcl +0 -351
  1795. package/lib/tk8.6/demos/unicodeout.tcl +0 -145
  1796. package/lib/tk8.6/demos/vscale.tcl +0 -46
  1797. package/lib/tk8.6/demos/widget +0 -734
  1798. package/lib/tk8.6/dialog.tcl +0 -175
  1799. package/lib/tk8.6/entry.tcl +0 -699
  1800. package/lib/tk8.6/focus.tcl +0 -178
  1801. package/lib/tk8.6/fontchooser.tcl +0 -515
  1802. package/lib/tk8.6/iconlist.tcl +0 -715
  1803. package/lib/tk8.6/icons.tcl +0 -153
  1804. package/lib/tk8.6/images/README +0 -7
  1805. package/lib/tk8.6/images/logo.eps +0 -2091
  1806. package/lib/tk8.6/images/logo100.gif +0 -0
  1807. package/lib/tk8.6/images/logo64.gif +0 -0
  1808. package/lib/tk8.6/images/logoLarge.gif +0 -0
  1809. package/lib/tk8.6/images/logoMed.gif +0 -0
  1810. package/lib/tk8.6/images/pwrdLogo.eps +0 -1897
  1811. package/lib/tk8.6/images/pwrdLogo100.gif +0 -0
  1812. package/lib/tk8.6/images/pwrdLogo150.gif +0 -0
  1813. package/lib/tk8.6/images/pwrdLogo175.gif +0 -0
  1814. package/lib/tk8.6/images/pwrdLogo200.gif +0 -0
  1815. package/lib/tk8.6/images/pwrdLogo75.gif +0 -0
  1816. package/lib/tk8.6/images/tai-ku.gif +0 -0
  1817. package/lib/tk8.6/listbox.tcl +0 -560
  1818. package/lib/tk8.6/megawidget.tcl +0 -297
  1819. package/lib/tk8.6/menu.tcl +0 -1387
  1820. package/lib/tk8.6/mkpsenc.tcl +0 -1488
  1821. package/lib/tk8.6/msgbox.tcl +0 -427
  1822. package/lib/tk8.6/msgs/cs.msg +0 -77
  1823. package/lib/tk8.6/msgs/da.msg +0 -78
  1824. package/lib/tk8.6/msgs/de.msg +0 -91
  1825. package/lib/tk8.6/msgs/el.msg +0 -86
  1826. package/lib/tk8.6/msgs/en.msg +0 -91
  1827. package/lib/tk8.6/msgs/en_gb.msg +0 -3
  1828. package/lib/tk8.6/msgs/eo.msg +0 -75
  1829. package/lib/tk8.6/msgs/es.msg +0 -76
  1830. package/lib/tk8.6/msgs/fi.msg +0 -89
  1831. package/lib/tk8.6/msgs/fr.msg +0 -72
  1832. package/lib/tk8.6/msgs/hu.msg +0 -78
  1833. package/lib/tk8.6/msgs/it.msg +0 -73
  1834. package/lib/tk8.6/msgs/nl.msg +0 -91
  1835. package/lib/tk8.6/msgs/pl.msg +0 -91
  1836. package/lib/tk8.6/msgs/pt.msg +0 -74
  1837. package/lib/tk8.6/msgs/ru.msg +0 -93
  1838. package/lib/tk8.6/msgs/sv.msg +0 -76
  1839. package/lib/tk8.6/msgs/zh_cn.msg +0 -92
  1840. package/lib/tk8.6/obsolete.tcl +0 -178
  1841. package/lib/tk8.6/optMenu.tcl +0 -43
  1842. package/lib/tk8.6/palette.tcl +0 -244
  1843. package/lib/tk8.6/panedwindow.tcl +0 -194
  1844. package/lib/tk8.6/safetk.tcl +0 -262
  1845. package/lib/tk8.6/scale.tcl +0 -307
  1846. package/lib/tk8.6/scrlbar.tcl +0 -456
  1847. package/lib/tk8.6/spinbox.tcl +0 -594
  1848. package/lib/tk8.6/tclIndex +0 -253
  1849. package/lib/tk8.6/tearoff.tcl +0 -157
  1850. package/lib/tk8.6/text.tcl +0 -1242
  1851. package/lib/tk8.6/tk.tcl +0 -708
  1852. package/lib/tk8.6/tkAppInit.c +0 -177
  1853. package/lib/tk8.6/tkfbox.tcl +0 -1241
  1854. package/lib/tk8.6/ttk/altTheme.tcl +0 -109
  1855. package/lib/tk8.6/ttk/aquaTheme.tcl +0 -119
  1856. package/lib/tk8.6/ttk/button.tcl +0 -83
  1857. package/lib/tk8.6/ttk/clamTheme.tcl +0 -147
  1858. package/lib/tk8.6/ttk/classicTheme.tcl +0 -115
  1859. package/lib/tk8.6/ttk/combobox.tcl +0 -448
  1860. package/lib/tk8.6/ttk/cursors.tcl +0 -205
  1861. package/lib/tk8.6/ttk/defaults.tcl +0 -143
  1862. package/lib/tk8.6/ttk/entry.tcl +0 -641
  1863. package/lib/tk8.6/ttk/fonts.tcl +0 -154
  1864. package/lib/tk8.6/ttk/menubutton.tcl +0 -233
  1865. package/lib/tk8.6/ttk/notebook.tcl +0 -201
  1866. package/lib/tk8.6/ttk/panedwindow.tcl +0 -91
  1867. package/lib/tk8.6/ttk/progress.tcl +0 -49
  1868. package/lib/tk8.6/ttk/scale.tcl +0 -94
  1869. package/lib/tk8.6/ttk/scrollbar.tcl +0 -126
  1870. package/lib/tk8.6/ttk/sizegrip.tcl +0 -102
  1871. package/lib/tk8.6/ttk/spinbox.tcl +0 -192
  1872. package/lib/tk8.6/ttk/treeview.tcl +0 -383
  1873. package/lib/tk8.6/ttk/ttk.tcl +0 -176
  1874. package/lib/tk8.6/ttk/utils.tcl +0 -337
  1875. package/lib/tk8.6/ttk/vistaTheme.tcl +0 -229
  1876. package/lib/tk8.6/ttk/winTheme.tcl +0 -84
  1877. package/lib/tk8.6/ttk/xpTheme.tcl +0 -67
  1878. package/lib/tk8.6/unsupported.tcl +0 -269
  1879. package/lib/tk8.6/xmfbox.tcl +0 -989
  1880. package/share/man/man1/python3.1 +0 -630
  1881. package/share/man/man1/python3.12.1 +0 -630
  1882. package/ssl/cacert.pem +0 -3959
@@ -1,2408 +0,0 @@
1
- """IDLE Configuration Dialog: support user customization of IDLE by GUI
2
-
3
- Customize font faces, sizes, and colorization attributes. Set indentation
4
- defaults. Customize keybindings. Colorization and keybindings can be
5
- saved as user defined sets. Select startup options including shell/editor
6
- and default window size. Define additional help sources.
7
-
8
- Note that tab width in IDLE is currently fixed at eight due to Tk issues.
9
- Refer to comments in EditorWindow autoindent code for details.
10
-
11
- """
12
- import re
13
-
14
- from tkinter import (Toplevel, Listbox, Canvas,
15
- StringVar, BooleanVar, IntVar, TRUE, FALSE,
16
- TOP, BOTTOM, RIGHT, LEFT, SOLID, GROOVE,
17
- NONE, BOTH, X, Y, W, E, EW, NS, NSEW, NW,
18
- HORIZONTAL, VERTICAL, ANCHOR, ACTIVE, END, TclError)
19
- from tkinter.ttk import (Frame, LabelFrame, Button, Checkbutton, Entry, Label,
20
- OptionMenu, Notebook, Radiobutton, Scrollbar, Style,
21
- Spinbox, Combobox)
22
- from tkinter import colorchooser
23
- import tkinter.font as tkfont
24
- from tkinter import messagebox
25
-
26
- from idlelib.config import idleConf, ConfigChanges
27
- from idlelib.config_key import GetKeysWindow
28
- from idlelib.dynoption import DynOptionMenu
29
- from idlelib import macosx
30
- from idlelib.query import SectionName, HelpSource
31
- from idlelib.textview import view_text
32
- from idlelib.autocomplete import AutoComplete
33
- from idlelib.codecontext import CodeContext
34
- from idlelib.parenmatch import ParenMatch
35
- from idlelib.format import FormatParagraph
36
- from idlelib.squeezer import Squeezer
37
- from idlelib.textview import ScrollableTextFrame
38
-
39
- changes = ConfigChanges()
40
- # Reload changed options in the following classes.
41
- reloadables = (AutoComplete, CodeContext, ParenMatch, FormatParagraph,
42
- Squeezer)
43
-
44
-
45
- class ConfigDialog(Toplevel):
46
- """Config dialog for IDLE.
47
- """
48
-
49
- def __init__(self, parent, title='', *, _htest=False, _utest=False):
50
- """Show the tabbed dialog for user configuration.
51
-
52
- Args:
53
- parent - parent of this dialog
54
- title - string which is the title of this popup dialog
55
- _htest - bool, change box location when running htest
56
- _utest - bool, don't wait_window when running unittest
57
-
58
- Note: Focus set on font page fontlist.
59
-
60
- Methods:
61
- create_widgets
62
- cancel: Bound to DELETE_WINDOW protocol.
63
- """
64
- Toplevel.__init__(self, parent)
65
- self.parent = parent
66
- if _htest:
67
- parent.instance_dict = {}
68
- if not _utest:
69
- self.withdraw()
70
-
71
- self.title(title or 'IDLE Preferences')
72
- x = parent.winfo_rootx() + 20
73
- y = parent.winfo_rooty() + (30 if not _htest else 150)
74
- self.geometry(f'+{x}+{y}')
75
- # Each theme element key is its display name.
76
- # The first value of the tuple is the sample area tag name.
77
- # The second value is the display name list sort index.
78
- self.create_widgets()
79
- self.resizable(height=FALSE, width=FALSE)
80
- self.transient(parent)
81
- self.protocol("WM_DELETE_WINDOW", self.cancel)
82
- self.fontpage.fontlist.focus_set()
83
- # XXX Decide whether to keep or delete these key bindings.
84
- # Key bindings for this dialog.
85
- # self.bind('<Escape>', self.Cancel) #dismiss dialog, no save
86
- # self.bind('<Alt-a>', self.Apply) #apply changes, save
87
- # self.bind('<F1>', self.Help) #context help
88
- # Attach callbacks after loading config to avoid calling them.
89
- tracers.attach()
90
-
91
- if not _utest:
92
- self.grab_set()
93
- self.wm_deiconify()
94
- self.wait_window()
95
-
96
- def create_widgets(self):
97
- """Create and place widgets for tabbed dialog.
98
-
99
- Widgets Bound to self:
100
- frame: encloses all other widgets
101
- note: Notebook
102
- highpage: HighPage
103
- fontpage: FontPage
104
- keyspage: KeysPage
105
- winpage: WinPage
106
- shedpage: ShedPage
107
- extpage: ExtPage
108
-
109
- Methods:
110
- create_action_buttons
111
- load_configs: Load pages except for extensions.
112
- activate_config_changes: Tell editors to reload.
113
- """
114
- self.frame = frame = Frame(self, padding=5)
115
- self.frame.grid(sticky="nwes")
116
- self.note = note = Notebook(frame)
117
- self.extpage = ExtPage(note)
118
- self.highpage = HighPage(note, self.extpage)
119
- self.fontpage = FontPage(note, self.highpage)
120
- self.keyspage = KeysPage(note, self.extpage)
121
- self.winpage = WinPage(note)
122
- self.shedpage = ShedPage(note)
123
-
124
- note.add(self.fontpage, text=' Fonts ')
125
- note.add(self.highpage, text='Highlights')
126
- note.add(self.keyspage, text=' Keys ')
127
- note.add(self.winpage, text=' Windows ')
128
- note.add(self.shedpage, text=' Shell/Ed ')
129
- note.add(self.extpage, text='Extensions')
130
- note.enable_traversal()
131
- note.pack(side=TOP, expand=TRUE, fill=BOTH)
132
- self.create_action_buttons().pack(side=BOTTOM)
133
-
134
- def create_action_buttons(self):
135
- """Return frame of action buttons for dialog.
136
-
137
- Methods:
138
- ok
139
- apply
140
- cancel
141
- help
142
-
143
- Widget Structure:
144
- outer: Frame
145
- buttons: Frame
146
- (no assignment): Button (ok)
147
- (no assignment): Button (apply)
148
- (no assignment): Button (cancel)
149
- (no assignment): Button (help)
150
- (no assignment): Frame
151
- """
152
- if macosx.isAquaTk():
153
- # Changing the default padding on OSX results in unreadable
154
- # text in the buttons.
155
- padding_args = {}
156
- else:
157
- padding_args = {'padding': (6, 3)}
158
- outer = Frame(self.frame, padding=2)
159
- buttons_frame = Frame(outer, padding=2)
160
- self.buttons = {}
161
- for txt, cmd in (
162
- ('Ok', self.ok),
163
- ('Apply', self.apply),
164
- ('Cancel', self.cancel),
165
- ('Help', self.help)):
166
- self.buttons[txt] = Button(buttons_frame, text=txt, command=cmd,
167
- takefocus=FALSE, **padding_args)
168
- self.buttons[txt].pack(side=LEFT, padx=5)
169
- # Add space above buttons.
170
- Frame(outer, height=2, borderwidth=0).pack(side=TOP)
171
- buttons_frame.pack(side=BOTTOM)
172
- return outer
173
-
174
- def ok(self):
175
- """Apply config changes, then dismiss dialog."""
176
- self.apply()
177
- self.destroy()
178
-
179
- def apply(self):
180
- """Apply config changes and leave dialog open."""
181
- self.deactivate_current_config()
182
- changes.save_all()
183
- self.extpage.save_all_changed_extensions()
184
- self.activate_config_changes()
185
-
186
- def cancel(self):
187
- """Dismiss config dialog.
188
-
189
- Methods:
190
- destroy: inherited
191
- """
192
- changes.clear()
193
- self.destroy()
194
-
195
- def destroy(self):
196
- global font_sample_text
197
- font_sample_text = self.fontpage.font_sample.get('1.0', 'end')
198
- self.grab_release()
199
- super().destroy()
200
-
201
- def help(self):
202
- """Create textview for config dialog help.
203
-
204
- Attributes accessed:
205
- note
206
- Methods:
207
- view_text: Method from textview module.
208
- """
209
- page = self.note.tab(self.note.select(), option='text').strip()
210
- view_text(self, title='Help for IDLE preferences',
211
- contents=help_common+help_pages.get(page, ''))
212
-
213
- def deactivate_current_config(self):
214
- """Remove current key bindings in current windows."""
215
- for instance in self.parent.instance_dict:
216
- instance.RemoveKeybindings()
217
-
218
- def activate_config_changes(self):
219
- """Apply configuration changes to current windows.
220
-
221
- Dynamically update the current parent window instances
222
- with some of the configuration changes.
223
- """
224
- for instance in self.parent.instance_dict:
225
- instance.ResetColorizer()
226
- instance.ResetFont()
227
- instance.set_notabs_indentwidth()
228
- instance.ApplyKeybindings()
229
- instance.reset_help_menu_entries()
230
- instance.update_cursor_blink()
231
- for klass in reloadables:
232
- klass.reload()
233
-
234
-
235
- # class TabPage(Frame): # A template for Page classes.
236
- # def __init__(self, master):
237
- # super().__init__(master)
238
- # self.create_page_tab()
239
- # self.load_tab_cfg()
240
- # def create_page_tab(self):
241
- # # Define tk vars and register var and callback with tracers.
242
- # # Create subframes and widgets.
243
- # # Pack widgets.
244
- # def load_tab_cfg(self):
245
- # # Initialize widgets with data from idleConf.
246
- # def var_changed_var_name():
247
- # # For each tk var that needs other than default callback.
248
- # def other_methods():
249
- # # Define tab-specific behavior.
250
-
251
- font_sample_text = (
252
- '<ASCII/Latin1>\n'
253
- 'AaBbCcDdEeFfGgHhIiJj\n1234567890#:+=(){}[]\n'
254
- '\u00a2\u00a3\u00a5\u00a7\u00a9\u00ab\u00ae\u00b6\u00bd\u011e'
255
- '\u00c0\u00c1\u00c2\u00c3\u00c4\u00c5\u00c7\u00d0\u00d8\u00df\n'
256
- '\n<IPA,Greek,Cyrillic>\n'
257
- '\u0250\u0255\u0258\u025e\u025f\u0264\u026b\u026e\u0270\u0277'
258
- '\u027b\u0281\u0283\u0286\u028e\u029e\u02a2\u02ab\u02ad\u02af\n'
259
- '\u0391\u03b1\u0392\u03b2\u0393\u03b3\u0394\u03b4\u0395\u03b5'
260
- '\u0396\u03b6\u0397\u03b7\u0398\u03b8\u0399\u03b9\u039a\u03ba\n'
261
- '\u0411\u0431\u0414\u0434\u0416\u0436\u041f\u043f\u0424\u0444'
262
- '\u0427\u0447\u042a\u044a\u042d\u044d\u0460\u0464\u046c\u04dc\n'
263
- '\n<Hebrew, Arabic>\n'
264
- '\u05d0\u05d1\u05d2\u05d3\u05d4\u05d5\u05d6\u05d7\u05d8\u05d9'
265
- '\u05da\u05db\u05dc\u05dd\u05de\u05df\u05e0\u05e1\u05e2\u05e3\n'
266
- '\u0627\u0628\u062c\u062f\u0647\u0648\u0632\u062d\u0637\u064a'
267
- '\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\n'
268
- '\n<Devanagari, Tamil>\n'
269
- '\u0966\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f'
270
- '\u0905\u0906\u0907\u0908\u0909\u090a\u090f\u0910\u0913\u0914\n'
271
- '\u0be6\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef'
272
- '\u0b85\u0b87\u0b89\u0b8e\n'
273
- '\n<East Asian>\n'
274
- '\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\n'
275
- '\u6c49\u5b57\u6f22\u5b57\u4eba\u6728\u706b\u571f\u91d1\u6c34\n'
276
- '\uac00\ub0d0\ub354\ub824\ubaa8\ubd64\uc218\uc720\uc988\uce58\n'
277
- '\u3042\u3044\u3046\u3048\u304a\u30a2\u30a4\u30a6\u30a8\u30aa\n'
278
- )
279
-
280
-
281
- class FontPage(Frame):
282
-
283
- def __init__(self, master, highpage):
284
- super().__init__(master)
285
- self.highlight_sample = highpage.highlight_sample
286
- self.create_page_font()
287
- self.load_font_cfg()
288
-
289
- def create_page_font(self):
290
- """Return frame of widgets for Font tab.
291
-
292
- Fonts: Enable users to provisionally change font face, size, or
293
- boldness and to see the consequence of proposed choices. Each
294
- action set 3 options in changes structuree and changes the
295
- corresponding aspect of the font sample on this page and
296
- highlight sample on highlight page.
297
-
298
- Function load_font_cfg initializes font vars and widgets from
299
- idleConf entries and tk.
300
-
301
- Fontlist: mouse button 1 click or up or down key invoke
302
- on_fontlist_select(), which sets var font_name.
303
-
304
- Sizelist: clicking the menubutton opens the dropdown menu. A
305
- mouse button 1 click or return key sets var font_size.
306
-
307
- Bold_toggle: clicking the box toggles var font_bold.
308
-
309
- Changing any of the font vars invokes var_changed_font, which
310
- adds all 3 font options to changes and calls set_samples.
311
- Set_samples applies a new font constructed from the font vars to
312
- font_sample and to highlight_sample on the highlight page.
313
-
314
- Widgets for FontPage(Frame): (*) widgets bound to self
315
- frame_font: LabelFrame
316
- frame_font_name: Frame
317
- font_name_title: Label
318
- (*)fontlist: ListBox - font_name
319
- scroll_font: Scrollbar
320
- frame_font_param: Frame
321
- font_size_title: Label
322
- (*)sizelist: DynOptionMenu - font_size
323
- (*)bold_toggle: Checkbutton - font_bold
324
- frame_sample: LabelFrame
325
- (*)font_sample: Label
326
- """
327
- self.font_name = tracers.add(StringVar(self), self.var_changed_font)
328
- self.font_size = tracers.add(StringVar(self), self.var_changed_font)
329
- self.font_bold = tracers.add(BooleanVar(self), self.var_changed_font)
330
-
331
- # Define frames and widgets.
332
- frame_font = LabelFrame(self, borderwidth=2, relief=GROOVE,
333
- text=' Shell/Editor Font ')
334
- frame_sample = LabelFrame(self, borderwidth=2, relief=GROOVE,
335
- text=' Font Sample (Editable) ')
336
- # frame_font.
337
- frame_font_name = Frame(frame_font)
338
- frame_font_param = Frame(frame_font)
339
- font_name_title = Label(
340
- frame_font_name, justify=LEFT, text='Font Face :')
341
- self.fontlist = Listbox(frame_font_name, height=15,
342
- takefocus=True, exportselection=FALSE)
343
- self.fontlist.bind('<ButtonRelease-1>', self.on_fontlist_select)
344
- self.fontlist.bind('<KeyRelease-Up>', self.on_fontlist_select)
345
- self.fontlist.bind('<KeyRelease-Down>', self.on_fontlist_select)
346
- scroll_font = Scrollbar(frame_font_name)
347
- scroll_font.config(command=self.fontlist.yview)
348
- self.fontlist.config(yscrollcommand=scroll_font.set)
349
- font_size_title = Label(frame_font_param, text='Size :')
350
- self.sizelist = DynOptionMenu(frame_font_param, self.font_size, None)
351
- self.bold_toggle = Checkbutton(
352
- frame_font_param, variable=self.font_bold,
353
- onvalue=1, offvalue=0, text='Bold')
354
- # frame_sample.
355
- font_sample_frame = ScrollableTextFrame(frame_sample)
356
- self.font_sample = font_sample_frame.text
357
- self.font_sample.config(wrap=NONE, width=1, height=1)
358
- self.font_sample.insert(END, font_sample_text)
359
-
360
- # Grid and pack widgets:
361
- self.columnconfigure(1, weight=1)
362
- self.rowconfigure(2, weight=1)
363
- frame_font.grid(row=0, column=0, padx=5, pady=5)
364
- frame_sample.grid(row=0, column=1, rowspan=3, padx=5, pady=5,
365
- sticky='nsew')
366
- # frame_font.
367
- frame_font_name.pack(side=TOP, padx=5, pady=5, fill=X)
368
- frame_font_param.pack(side=TOP, padx=5, pady=5, fill=X)
369
- font_name_title.pack(side=TOP, anchor=W)
370
- self.fontlist.pack(side=LEFT, expand=TRUE, fill=X)
371
- scroll_font.pack(side=LEFT, fill=Y)
372
- font_size_title.pack(side=LEFT, anchor=W)
373
- self.sizelist.pack(side=LEFT, anchor=W)
374
- self.bold_toggle.pack(side=LEFT, anchor=W, padx=20)
375
- # frame_sample.
376
- font_sample_frame.pack(expand=TRUE, fill=BOTH)
377
-
378
- def load_font_cfg(self):
379
- """Load current configuration settings for the font options.
380
-
381
- Retrieve current font with idleConf.GetFont and font families
382
- from tk. Setup fontlist and set font_name. Setup sizelist,
383
- which sets font_size. Set font_bold. Call set_samples.
384
- """
385
- configured_font = idleConf.GetFont(self, 'main', 'EditorWindow')
386
- font_name = configured_font[0].lower()
387
- font_size = configured_font[1]
388
- font_bold = configured_font[2]=='bold'
389
-
390
- # Set sorted no-duplicate editor font selection list and font_name.
391
- fonts = sorted(set(tkfont.families(self)))
392
- for font in fonts:
393
- self.fontlist.insert(END, font)
394
- self.font_name.set(font_name)
395
- lc_fonts = [s.lower() for s in fonts]
396
- try:
397
- current_font_index = lc_fonts.index(font_name)
398
- self.fontlist.see(current_font_index)
399
- self.fontlist.select_set(current_font_index)
400
- self.fontlist.select_anchor(current_font_index)
401
- self.fontlist.activate(current_font_index)
402
- except ValueError:
403
- pass
404
- # Set font size dropdown.
405
- self.sizelist.SetMenu(('7', '8', '9', '10', '11', '12', '13', '14',
406
- '16', '18', '20', '22', '25', '29', '34', '40'),
407
- font_size)
408
- # Set font weight.
409
- self.font_bold.set(font_bold)
410
- self.set_samples()
411
-
412
- def var_changed_font(self, *params):
413
- """Store changes to font attributes.
414
-
415
- When one font attribute changes, save them all, as they are
416
- not independent from each other. In particular, when we are
417
- overriding the default font, we need to write out everything.
418
- """
419
- value = self.font_name.get()
420
- changes.add_option('main', 'EditorWindow', 'font', value)
421
- value = self.font_size.get()
422
- changes.add_option('main', 'EditorWindow', 'font-size', value)
423
- value = self.font_bold.get()
424
- changes.add_option('main', 'EditorWindow', 'font-bold', value)
425
- self.set_samples()
426
-
427
- def on_fontlist_select(self, event):
428
- """Handle selecting a font from the list.
429
-
430
- Event can result from either mouse click or Up or Down key.
431
- Set font_name and example displays to selection.
432
- """
433
- font = self.fontlist.get(
434
- ACTIVE if event.type.name == 'KeyRelease' else ANCHOR)
435
- self.font_name.set(font.lower())
436
-
437
- def set_samples(self, event=None):
438
- """Update update both screen samples with the font settings.
439
-
440
- Called on font initialization and change events.
441
- Accesses font_name, font_size, and font_bold Variables.
442
- Updates font_sample and highlight page highlight_sample.
443
- """
444
- font_name = self.font_name.get()
445
- font_weight = tkfont.BOLD if self.font_bold.get() else tkfont.NORMAL
446
- new_font = (font_name, self.font_size.get(), font_weight)
447
- self.font_sample['font'] = new_font
448
- self.highlight_sample['font'] = new_font
449
-
450
-
451
- class HighPage(Frame):
452
-
453
- def __init__(self, master, extpage):
454
- super().__init__(master)
455
- self.extpage = extpage
456
- self.cd = master.winfo_toplevel()
457
- self.style = Style(master)
458
- self.create_page_highlight()
459
- self.load_theme_cfg()
460
-
461
- def create_page_highlight(self):
462
- """Return frame of widgets for Highlights tab.
463
-
464
- Enable users to provisionally change foreground and background
465
- colors applied to textual tags. Color mappings are stored in
466
- complete listings called themes. Built-in themes in
467
- idlelib/config-highlight.def are fixed as far as the dialog is
468
- concerned. Any theme can be used as the base for a new custom
469
- theme, stored in .idlerc/config-highlight.cfg.
470
-
471
- Function load_theme_cfg() initializes tk variables and theme
472
- lists and calls paint_theme_sample() and set_highlight_target()
473
- for the current theme. Radiobuttons builtin_theme_on and
474
- custom_theme_on toggle var theme_source, which controls if the
475
- current set of colors are from a builtin or custom theme.
476
- DynOptionMenus builtinlist and customlist contain lists of the
477
- builtin and custom themes, respectively, and the current item
478
- from each list is stored in vars builtin_name and custom_name.
479
-
480
- Function paint_theme_sample() applies the colors from the theme
481
- to the tags in text widget highlight_sample and then invokes
482
- set_color_sample(). Function set_highlight_target() sets the state
483
- of the radiobuttons fg_on and bg_on based on the tag and it also
484
- invokes set_color_sample().
485
-
486
- Function set_color_sample() sets the background color for the frame
487
- holding the color selector. This provides a larger visual of the
488
- color for the current tag and plane (foreground/background).
489
-
490
- Note: set_color_sample() is called from many places and is often
491
- called more than once when a change is made. It is invoked when
492
- foreground or background is selected (radiobuttons), from
493
- paint_theme_sample() (theme is changed or load_cfg is called), and
494
- from set_highlight_target() (target tag is changed or load_cfg called).
495
-
496
- Button delete_custom invokes delete_custom() to delete
497
- a custom theme from idleConf.userCfg['highlight'] and changes.
498
- Button save_custom invokes save_as_new_theme() which calls
499
- get_new_theme_name() and create_new() to save a custom theme
500
- and its colors to idleConf.userCfg['highlight'].
501
-
502
- Radiobuttons fg_on and bg_on toggle var fg_bg_toggle to control
503
- if the current selected color for a tag is for the foreground or
504
- background.
505
-
506
- DynOptionMenu targetlist contains a readable description of the
507
- tags applied to Python source within IDLE. Selecting one of the
508
- tags from this list populates highlight_target, which has a callback
509
- function set_highlight_target().
510
-
511
- Text widget highlight_sample displays a block of text (which is
512
- mock Python code) in which is embedded the defined tags and reflects
513
- the color attributes of the current theme and changes for those tags.
514
- Mouse button 1 allows for selection of a tag and updates
515
- highlight_target with that tag value.
516
-
517
- Note: The font in highlight_sample is set through the config in
518
- the fonts tab.
519
-
520
- In other words, a tag can be selected either from targetlist or
521
- by clicking on the sample text within highlight_sample. The
522
- plane (foreground/background) is selected via the radiobutton.
523
- Together, these two (tag and plane) control what color is
524
- shown in set_color_sample() for the current theme. Button set_color
525
- invokes get_color() which displays a ColorChooser to change the
526
- color for the selected tag/plane. If a new color is picked,
527
- it will be saved to changes and the highlight_sample and
528
- frame background will be updated.
529
-
530
- Tk Variables:
531
- color: Color of selected target.
532
- builtin_name: Menu variable for built-in theme.
533
- custom_name: Menu variable for custom theme.
534
- fg_bg_toggle: Toggle for foreground/background color.
535
- Note: this has no callback.
536
- theme_source: Selector for built-in or custom theme.
537
- highlight_target: Menu variable for the highlight tag target.
538
-
539
- Instance Data Attributes:
540
- theme_elements: Dictionary of tags for text highlighting.
541
- The key is the display name and the value is a tuple of
542
- (tag name, display sort order).
543
-
544
- Methods [attachment]:
545
- load_theme_cfg: Load current highlight colors.
546
- get_color: Invoke colorchooser [button_set_color].
547
- set_color_sample_binding: Call set_color_sample [fg_bg_toggle].
548
- set_highlight_target: set fg_bg_toggle, set_color_sample().
549
- set_color_sample: Set frame background to target.
550
- on_new_color_set: Set new color and add option.
551
- paint_theme_sample: Recolor sample.
552
- get_new_theme_name: Get from popup.
553
- create_new: Combine theme with changes and save.
554
- save_as_new_theme: Save [button_save_custom].
555
- set_theme_type: Command for [theme_source].
556
- delete_custom: Activate default [button_delete_custom].
557
- save_new: Save to userCfg['theme'] (is function).
558
-
559
- Widgets of highlights page frame: (*) widgets bound to self
560
- frame_custom: LabelFrame
561
- (*)highlight_sample: Text
562
- (*)frame_color_set: Frame
563
- (*)button_set_color: Button
564
- (*)targetlist: DynOptionMenu - highlight_target
565
- frame_fg_bg_toggle: Frame
566
- (*)fg_on: Radiobutton - fg_bg_toggle
567
- (*)bg_on: Radiobutton - fg_bg_toggle
568
- (*)button_save_custom: Button
569
- frame_theme: LabelFrame
570
- theme_type_title: Label
571
- (*)builtin_theme_on: Radiobutton - theme_source
572
- (*)custom_theme_on: Radiobutton - theme_source
573
- (*)builtinlist: DynOptionMenu - builtin_name
574
- (*)customlist: DynOptionMenu - custom_name
575
- (*)button_delete_custom: Button
576
- (*)theme_message: Label
577
- """
578
- self.theme_elements = {
579
- # Display-name: internal-config-tag-name.
580
- 'Normal Code or Text': 'normal',
581
- 'Code Context': 'context',
582
- 'Python Keywords': 'keyword',
583
- 'Python Definitions': 'definition',
584
- 'Python Builtins': 'builtin',
585
- 'Python Comments': 'comment',
586
- 'Python Strings': 'string',
587
- 'Selected Text': 'hilite',
588
- 'Found Text': 'hit',
589
- 'Cursor': 'cursor',
590
- 'Editor Breakpoint': 'break',
591
- 'Shell Prompt': 'console',
592
- 'Error Text': 'error',
593
- 'Shell User Output': 'stdout',
594
- 'Shell User Exception': 'stderr',
595
- 'Line Number': 'linenumber',
596
- }
597
- self.builtin_name = tracers.add(
598
- StringVar(self), self.var_changed_builtin_name)
599
- self.custom_name = tracers.add(
600
- StringVar(self), self.var_changed_custom_name)
601
- self.fg_bg_toggle = BooleanVar(self)
602
- self.color = tracers.add(
603
- StringVar(self), self.var_changed_color)
604
- self.theme_source = tracers.add(
605
- BooleanVar(self), self.var_changed_theme_source)
606
- self.highlight_target = tracers.add(
607
- StringVar(self), self.var_changed_highlight_target)
608
-
609
- # Create widgets:
610
- # body frame and section frames.
611
- frame_custom = LabelFrame(self, borderwidth=2, relief=GROOVE,
612
- text=' Custom Highlighting ')
613
- frame_theme = LabelFrame(self, borderwidth=2, relief=GROOVE,
614
- text=' Highlighting Theme ')
615
- # frame_custom.
616
- sample_frame = ScrollableTextFrame(
617
- frame_custom, relief=SOLID, borderwidth=1)
618
- text = self.highlight_sample = sample_frame.text
619
- text.configure(
620
- font=('courier', 12, ''), cursor='hand2', width=1, height=1,
621
- takefocus=FALSE, highlightthickness=0, wrap=NONE)
622
- # Prevent perhaps invisible selection of word or slice.
623
- text.bind('<Double-Button-1>', lambda e: 'break')
624
- text.bind('<B1-Motion>', lambda e: 'break')
625
- string_tags=(
626
- ('# Click selects item.', 'comment'), ('\n', 'normal'),
627
- ('code context section', 'context'), ('\n', 'normal'),
628
- ('| cursor', 'cursor'), ('\n', 'normal'),
629
- ('def', 'keyword'), (' ', 'normal'),
630
- ('func', 'definition'), ('(param):\n ', 'normal'),
631
- ('"Return None."', 'string'), ('\n var0 = ', 'normal'),
632
- ("'string'", 'string'), ('\n var1 = ', 'normal'),
633
- ("'selected'", 'hilite'), ('\n var2 = ', 'normal'),
634
- ("'found'", 'hit'), ('\n var3 = ', 'normal'),
635
- ('list', 'builtin'), ('(', 'normal'),
636
- ('None', 'keyword'), (')\n', 'normal'),
637
- (' breakpoint("line")', 'break'), ('\n\n', 'normal'),
638
- ('>>>', 'console'), (' 3.14**2\n', 'normal'),
639
- ('9.8596', 'stdout'), ('\n', 'normal'),
640
- ('>>>', 'console'), (' pri ', 'normal'),
641
- ('n', 'error'), ('t(\n', 'normal'),
642
- ('SyntaxError', 'stderr'), ('\n', 'normal'))
643
- for string, tag in string_tags:
644
- text.insert(END, string, tag)
645
- n_lines = len(text.get('1.0', END).splitlines())
646
- for lineno in range(1, n_lines):
647
- text.insert(f'{lineno}.0',
648
- f'{lineno:{len(str(n_lines))}d} ',
649
- 'linenumber')
650
- for element in self.theme_elements:
651
- def tem(event, elem=element):
652
- # event.widget.winfo_top_level().highlight_target.set(elem)
653
- self.highlight_target.set(elem)
654
- text.tag_bind(
655
- self.theme_elements[element], '<ButtonPress-1>', tem)
656
- text['state'] = 'disabled'
657
- self.style.configure('frame_color_set.TFrame', borderwidth=1,
658
- relief='solid')
659
- self.frame_color_set = Frame(frame_custom, style='frame_color_set.TFrame')
660
- frame_fg_bg_toggle = Frame(frame_custom)
661
- self.button_set_color = Button(
662
- self.frame_color_set, text='Choose Color for :',
663
- command=self.get_color)
664
- self.targetlist = DynOptionMenu(
665
- self.frame_color_set, self.highlight_target, None,
666
- highlightthickness=0) #, command=self.set_highlight_targetBinding
667
- self.fg_on = Radiobutton(
668
- frame_fg_bg_toggle, variable=self.fg_bg_toggle, value=1,
669
- text='Foreground', command=self.set_color_sample_binding)
670
- self.bg_on = Radiobutton(
671
- frame_fg_bg_toggle, variable=self.fg_bg_toggle, value=0,
672
- text='Background', command=self.set_color_sample_binding)
673
- self.fg_bg_toggle.set(1)
674
- self.button_save_custom = Button(
675
- frame_custom, text='Save as New Custom Theme',
676
- command=self.save_as_new_theme)
677
- # frame_theme.
678
- theme_type_title = Label(frame_theme, text='Select : ')
679
- self.builtin_theme_on = Radiobutton(
680
- frame_theme, variable=self.theme_source, value=1,
681
- command=self.set_theme_type, text='a Built-in Theme')
682
- self.custom_theme_on = Radiobutton(
683
- frame_theme, variable=self.theme_source, value=0,
684
- command=self.set_theme_type, text='a Custom Theme')
685
- self.builtinlist = DynOptionMenu(
686
- frame_theme, self.builtin_name, None, command=None)
687
- self.customlist = DynOptionMenu(
688
- frame_theme, self.custom_name, None, command=None)
689
- self.button_delete_custom = Button(
690
- frame_theme, text='Delete Custom Theme',
691
- command=self.delete_custom)
692
- self.theme_message = Label(frame_theme, borderwidth=2)
693
- # Pack widgets:
694
- # body.
695
- frame_custom.pack(side=LEFT, padx=5, pady=5, expand=TRUE, fill=BOTH)
696
- frame_theme.pack(side=TOP, padx=5, pady=5, fill=X)
697
- # frame_custom.
698
- self.frame_color_set.pack(side=TOP, padx=5, pady=5, fill=X)
699
- frame_fg_bg_toggle.pack(side=TOP, padx=5, pady=0)
700
- sample_frame.pack(
701
- side=TOP, padx=5, pady=5, expand=TRUE, fill=BOTH)
702
- self.button_set_color.pack(side=TOP, expand=TRUE, fill=X, padx=8, pady=4)
703
- self.targetlist.pack(side=TOP, expand=TRUE, fill=X, padx=8, pady=3)
704
- self.fg_on.pack(side=LEFT, anchor=E)
705
- self.bg_on.pack(side=RIGHT, anchor=W)
706
- self.button_save_custom.pack(side=BOTTOM, fill=X, padx=5, pady=5)
707
- # frame_theme.
708
- theme_type_title.pack(side=TOP, anchor=W, padx=5, pady=5)
709
- self.builtin_theme_on.pack(side=TOP, anchor=W, padx=5)
710
- self.custom_theme_on.pack(side=TOP, anchor=W, padx=5, pady=2)
711
- self.builtinlist.pack(side=TOP, fill=X, padx=5, pady=5)
712
- self.customlist.pack(side=TOP, fill=X, anchor=W, padx=5, pady=5)
713
- self.button_delete_custom.pack(side=TOP, fill=X, padx=5, pady=5)
714
- self.theme_message.pack(side=TOP, fill=X, pady=5)
715
-
716
- def load_theme_cfg(self):
717
- """Load current configuration settings for the theme options.
718
-
719
- Based on the theme_source toggle, the theme is set as
720
- either builtin or custom and the initial widget values
721
- reflect the current settings from idleConf.
722
-
723
- Attributes updated:
724
- theme_source: Set from idleConf.
725
- builtinlist: List of default themes from idleConf.
726
- customlist: List of custom themes from idleConf.
727
- custom_theme_on: Disabled if there are no custom themes.
728
- custom_theme: Message with additional information.
729
- targetlist: Create menu from self.theme_elements.
730
-
731
- Methods:
732
- set_theme_type
733
- paint_theme_sample
734
- set_highlight_target
735
- """
736
- # Set current theme type radiobutton.
737
- self.theme_source.set(idleConf.GetOption(
738
- 'main', 'Theme', 'default', type='bool', default=1))
739
- # Set current theme.
740
- current_option = idleConf.CurrentTheme()
741
- # Load available theme option menus.
742
- if self.theme_source.get(): # Default theme selected.
743
- item_list = idleConf.GetSectionList('default', 'highlight')
744
- item_list.sort()
745
- self.builtinlist.SetMenu(item_list, current_option)
746
- item_list = idleConf.GetSectionList('user', 'highlight')
747
- item_list.sort()
748
- if not item_list:
749
- self.custom_theme_on.state(('disabled',))
750
- self.custom_name.set('- no custom themes -')
751
- else:
752
- self.customlist.SetMenu(item_list, item_list[0])
753
- else: # User theme selected.
754
- item_list = idleConf.GetSectionList('user', 'highlight')
755
- item_list.sort()
756
- self.customlist.SetMenu(item_list, current_option)
757
- item_list = idleConf.GetSectionList('default', 'highlight')
758
- item_list.sort()
759
- self.builtinlist.SetMenu(item_list, item_list[0])
760
- self.set_theme_type()
761
- # Load theme element option menu.
762
- theme_names = list(self.theme_elements)
763
- self.targetlist.SetMenu(theme_names, theme_names[0])
764
- self.paint_theme_sample()
765
- self.set_highlight_target()
766
-
767
- def var_changed_builtin_name(self, *params):
768
- """Process new builtin theme selection.
769
-
770
- Add the changed theme's name to the changed_items and recreate
771
- the sample with the values from the selected theme.
772
- """
773
- old_themes = ('IDLE Classic', 'IDLE New')
774
- value = self.builtin_name.get()
775
- if value not in old_themes:
776
- if idleConf.GetOption('main', 'Theme', 'name') not in old_themes:
777
- changes.add_option('main', 'Theme', 'name', old_themes[0])
778
- changes.add_option('main', 'Theme', 'name2', value)
779
- self.theme_message['text'] = 'New theme, see Help'
780
- else:
781
- changes.add_option('main', 'Theme', 'name', value)
782
- changes.add_option('main', 'Theme', 'name2', '')
783
- self.theme_message['text'] = ''
784
- self.paint_theme_sample()
785
-
786
- def var_changed_custom_name(self, *params):
787
- """Process new custom theme selection.
788
-
789
- If a new custom theme is selected, add the name to the
790
- changed_items and apply the theme to the sample.
791
- """
792
- value = self.custom_name.get()
793
- if value != '- no custom themes -':
794
- changes.add_option('main', 'Theme', 'name', value)
795
- self.paint_theme_sample()
796
-
797
- def var_changed_theme_source(self, *params):
798
- """Process toggle between builtin and custom theme.
799
-
800
- Update the default toggle value and apply the newly
801
- selected theme type.
802
- """
803
- value = self.theme_source.get()
804
- changes.add_option('main', 'Theme', 'default', value)
805
- if value:
806
- self.var_changed_builtin_name()
807
- else:
808
- self.var_changed_custom_name()
809
-
810
- def var_changed_color(self, *params):
811
- "Process change to color choice."
812
- self.on_new_color_set()
813
-
814
- def var_changed_highlight_target(self, *params):
815
- "Process selection of new target tag for highlighting."
816
- self.set_highlight_target()
817
-
818
- def set_theme_type(self):
819
- """Set available screen options based on builtin or custom theme.
820
-
821
- Attributes accessed:
822
- theme_source
823
-
824
- Attributes updated:
825
- builtinlist
826
- customlist
827
- button_delete_custom
828
- custom_theme_on
829
-
830
- Called from:
831
- handler for builtin_theme_on and custom_theme_on
832
- delete_custom
833
- create_new
834
- load_theme_cfg
835
- """
836
- if self.theme_source.get():
837
- self.builtinlist['state'] = 'normal'
838
- self.customlist['state'] = 'disabled'
839
- self.button_delete_custom.state(('disabled',))
840
- else:
841
- self.builtinlist['state'] = 'disabled'
842
- self.custom_theme_on.state(('!disabled',))
843
- self.customlist['state'] = 'normal'
844
- self.button_delete_custom.state(('!disabled',))
845
-
846
- def get_color(self):
847
- """Handle button to select a new color for the target tag.
848
-
849
- If a new color is selected while using a builtin theme, a
850
- name must be supplied to create a custom theme.
851
-
852
- Attributes accessed:
853
- highlight_target
854
- frame_color_set
855
- theme_source
856
-
857
- Attributes updated:
858
- color
859
-
860
- Methods:
861
- get_new_theme_name
862
- create_new
863
- """
864
- target = self.highlight_target.get()
865
- prev_color = self.style.lookup(self.frame_color_set['style'],
866
- 'background')
867
- rgbTuplet, color_string = colorchooser.askcolor(
868
- parent=self, title='Pick new color for : '+target,
869
- initialcolor=prev_color)
870
- if color_string and (color_string != prev_color):
871
- # User didn't cancel and they chose a new color.
872
- if self.theme_source.get(): # Current theme is a built-in.
873
- message = ('Your changes will be saved as a new Custom Theme. '
874
- 'Enter a name for your new Custom Theme below.')
875
- new_theme = self.get_new_theme_name(message)
876
- if not new_theme: # User cancelled custom theme creation.
877
- return
878
- else: # Create new custom theme based on previously active theme.
879
- self.create_new(new_theme)
880
- self.color.set(color_string)
881
- else: # Current theme is user defined.
882
- self.color.set(color_string)
883
-
884
- def on_new_color_set(self):
885
- "Display sample of new color selection on the dialog."
886
- new_color = self.color.get()
887
- self.style.configure('frame_color_set.TFrame', background=new_color)
888
- plane = 'foreground' if self.fg_bg_toggle.get() else 'background'
889
- sample_element = self.theme_elements[self.highlight_target.get()]
890
- self.highlight_sample.tag_config(sample_element, **{plane: new_color})
891
- theme = self.custom_name.get()
892
- theme_element = sample_element + '-' + plane
893
- changes.add_option('highlight', theme, theme_element, new_color)
894
-
895
- def get_new_theme_name(self, message):
896
- "Return name of new theme from query popup."
897
- used_names = (idleConf.GetSectionList('user', 'highlight') +
898
- idleConf.GetSectionList('default', 'highlight'))
899
- new_theme = SectionName(
900
- self, 'New Custom Theme', message, used_names).result
901
- return new_theme
902
-
903
- def save_as_new_theme(self):
904
- """Prompt for new theme name and create the theme.
905
-
906
- Methods:
907
- get_new_theme_name
908
- create_new
909
- """
910
- new_theme_name = self.get_new_theme_name('New Theme Name:')
911
- if new_theme_name:
912
- self.create_new(new_theme_name)
913
-
914
- def create_new(self, new_theme_name):
915
- """Create a new custom theme with the given name.
916
-
917
- Create the new theme based on the previously active theme
918
- with the current changes applied. Once it is saved, then
919
- activate the new theme.
920
-
921
- Attributes accessed:
922
- builtin_name
923
- custom_name
924
-
925
- Attributes updated:
926
- customlist
927
- theme_source
928
-
929
- Method:
930
- save_new
931
- set_theme_type
932
- """
933
- if self.theme_source.get():
934
- theme_type = 'default'
935
- theme_name = self.builtin_name.get()
936
- else:
937
- theme_type = 'user'
938
- theme_name = self.custom_name.get()
939
- new_theme = idleConf.GetThemeDict(theme_type, theme_name)
940
- # Apply any of the old theme's unsaved changes to the new theme.
941
- if theme_name in changes['highlight']:
942
- theme_changes = changes['highlight'][theme_name]
943
- for element in theme_changes:
944
- new_theme[element] = theme_changes[element]
945
- # Save the new theme.
946
- self.save_new(new_theme_name, new_theme)
947
- # Change GUI over to the new theme.
948
- custom_theme_list = idleConf.GetSectionList('user', 'highlight')
949
- custom_theme_list.sort()
950
- self.customlist.SetMenu(custom_theme_list, new_theme_name)
951
- self.theme_source.set(0)
952
- self.set_theme_type()
953
-
954
- def set_highlight_target(self):
955
- """Set fg/bg toggle and color based on highlight tag target.
956
-
957
- Instance variables accessed:
958
- highlight_target
959
-
960
- Attributes updated:
961
- fg_on
962
- bg_on
963
- fg_bg_toggle
964
-
965
- Methods:
966
- set_color_sample
967
-
968
- Called from:
969
- var_changed_highlight_target
970
- load_theme_cfg
971
- """
972
- if self.highlight_target.get() == 'Cursor': # bg not possible
973
- self.fg_on.state(('disabled',))
974
- self.bg_on.state(('disabled',))
975
- self.fg_bg_toggle.set(1)
976
- else: # Both fg and bg can be set.
977
- self.fg_on.state(('!disabled',))
978
- self.bg_on.state(('!disabled',))
979
- self.fg_bg_toggle.set(1)
980
- self.set_color_sample()
981
-
982
- def set_color_sample_binding(self, *args):
983
- """Change color sample based on foreground/background toggle.
984
-
985
- Methods:
986
- set_color_sample
987
- """
988
- self.set_color_sample()
989
-
990
- def set_color_sample(self):
991
- """Set the color of the frame background to reflect the selected target.
992
-
993
- Instance variables accessed:
994
- theme_elements
995
- highlight_target
996
- fg_bg_toggle
997
- highlight_sample
998
-
999
- Attributes updated:
1000
- frame_color_set
1001
- """
1002
- # Set the color sample area.
1003
- tag = self.theme_elements[self.highlight_target.get()]
1004
- plane = 'foreground' if self.fg_bg_toggle.get() else 'background'
1005
- color = self.highlight_sample.tag_cget(tag, plane)
1006
- self.style.configure('frame_color_set.TFrame', background=color)
1007
-
1008
- def paint_theme_sample(self):
1009
- """Apply the theme colors to each element tag in the sample text.
1010
-
1011
- Instance attributes accessed:
1012
- theme_elements
1013
- theme_source
1014
- builtin_name
1015
- custom_name
1016
-
1017
- Attributes updated:
1018
- highlight_sample: Set the tag elements to the theme.
1019
-
1020
- Methods:
1021
- set_color_sample
1022
-
1023
- Called from:
1024
- var_changed_builtin_name
1025
- var_changed_custom_name
1026
- load_theme_cfg
1027
- """
1028
- if self.theme_source.get(): # Default theme
1029
- theme = self.builtin_name.get()
1030
- else: # User theme
1031
- theme = self.custom_name.get()
1032
- for element_title in self.theme_elements:
1033
- element = self.theme_elements[element_title]
1034
- colors = idleConf.GetHighlight(theme, element)
1035
- if element == 'cursor': # Cursor sample needs special painting.
1036
- colors['background'] = idleConf.GetHighlight(
1037
- theme, 'normal')['background']
1038
- # Handle any unsaved changes to this theme.
1039
- if theme in changes['highlight']:
1040
- theme_dict = changes['highlight'][theme]
1041
- if element + '-foreground' in theme_dict:
1042
- colors['foreground'] = theme_dict[element + '-foreground']
1043
- if element + '-background' in theme_dict:
1044
- colors['background'] = theme_dict[element + '-background']
1045
- self.highlight_sample.tag_config(element, **colors)
1046
- self.set_color_sample()
1047
-
1048
- def save_new(self, theme_name, theme):
1049
- """Save a newly created theme to idleConf.
1050
-
1051
- theme_name - string, the name of the new theme
1052
- theme - dictionary containing the new theme
1053
- """
1054
- idleConf.userCfg['highlight'].AddSection(theme_name)
1055
- for element in theme:
1056
- value = theme[element]
1057
- idleConf.userCfg['highlight'].SetOption(theme_name, element, value)
1058
-
1059
- def askyesno(self, *args, **kwargs):
1060
- # Make testing easier. Could change implementation.
1061
- return messagebox.askyesno(*args, **kwargs)
1062
-
1063
- def delete_custom(self):
1064
- """Handle event to delete custom theme.
1065
-
1066
- The current theme is deactivated and the default theme is
1067
- activated. The custom theme is permanently removed from
1068
- the config file.
1069
-
1070
- Attributes accessed:
1071
- custom_name
1072
-
1073
- Attributes updated:
1074
- custom_theme_on
1075
- customlist
1076
- theme_source
1077
- builtin_name
1078
-
1079
- Methods:
1080
- deactivate_current_config
1081
- save_all_changed_extensions
1082
- activate_config_changes
1083
- set_theme_type
1084
- """
1085
- theme_name = self.custom_name.get()
1086
- delmsg = 'Are you sure you wish to delete the theme %r ?'
1087
- if not self.askyesno(
1088
- 'Delete Theme', delmsg % theme_name, parent=self):
1089
- return
1090
- self.cd.deactivate_current_config()
1091
- # Remove theme from changes, config, and file.
1092
- changes.delete_section('highlight', theme_name)
1093
- # Reload user theme list.
1094
- item_list = idleConf.GetSectionList('user', 'highlight')
1095
- item_list.sort()
1096
- if not item_list:
1097
- self.custom_theme_on.state(('disabled',))
1098
- self.customlist.SetMenu(item_list, '- no custom themes -')
1099
- else:
1100
- self.customlist.SetMenu(item_list, item_list[0])
1101
- # Revert to default theme.
1102
- self.theme_source.set(idleConf.defaultCfg['main'].Get('Theme', 'default'))
1103
- self.builtin_name.set(idleConf.defaultCfg['main'].Get('Theme', 'name'))
1104
- # User can't back out of these changes, they must be applied now.
1105
- changes.save_all()
1106
- self.extpage.save_all_changed_extensions()
1107
- self.cd.activate_config_changes()
1108
- self.set_theme_type()
1109
-
1110
-
1111
- class KeysPage(Frame):
1112
-
1113
- def __init__(self, master, extpage):
1114
- super().__init__(master)
1115
- self.extpage = extpage
1116
- self.cd = master.winfo_toplevel()
1117
- self.create_page_keys()
1118
- self.load_key_cfg()
1119
-
1120
- def create_page_keys(self):
1121
- """Return frame of widgets for Keys tab.
1122
-
1123
- Enable users to provisionally change both individual and sets of
1124
- keybindings (shortcut keys). Except for features implemented as
1125
- extensions, keybindings are stored in complete sets called
1126
- keysets. Built-in keysets in idlelib/config-keys.def are fixed
1127
- as far as the dialog is concerned. Any keyset can be used as the
1128
- base for a new custom keyset, stored in .idlerc/config-keys.cfg.
1129
-
1130
- Function load_key_cfg() initializes tk variables and keyset
1131
- lists and calls load_keys_list for the current keyset.
1132
- Radiobuttons builtin_keyset_on and custom_keyset_on toggle var
1133
- keyset_source, which controls if the current set of keybindings
1134
- are from a builtin or custom keyset. DynOptionMenus builtinlist
1135
- and customlist contain lists of the builtin and custom keysets,
1136
- respectively, and the current item from each list is stored in
1137
- vars builtin_name and custom_name.
1138
-
1139
- Button delete_custom_keys invokes delete_custom_keys() to delete
1140
- a custom keyset from idleConf.userCfg['keys'] and changes. Button
1141
- save_custom_keys invokes save_as_new_key_set() which calls
1142
- get_new_keys_name() and create_new_key_set() to save a custom keyset
1143
- and its keybindings to idleConf.userCfg['keys'].
1144
-
1145
- Listbox bindingslist contains all of the keybindings for the
1146
- selected keyset. The keybindings are loaded in load_keys_list()
1147
- and are pairs of (event, [keys]) where keys can be a list
1148
- of one or more key combinations to bind to the same event.
1149
- Mouse button 1 click invokes on_bindingslist_select(), which
1150
- allows button_new_keys to be clicked.
1151
-
1152
- So, an item is selected in listbindings, which activates
1153
- button_new_keys, and clicking button_new_keys calls function
1154
- get_new_keys(). Function get_new_keys() gets the key mappings from the
1155
- current keyset for the binding event item that was selected. The
1156
- function then displays another dialog, GetKeysDialog, with the
1157
- selected binding event and current keys and allows new key sequences
1158
- to be entered for that binding event. If the keys aren't
1159
- changed, nothing happens. If the keys are changed and the keyset
1160
- is a builtin, function get_new_keys_name() will be called
1161
- for input of a custom keyset name. If no name is given, then the
1162
- change to the keybinding will abort and no updates will be made. If
1163
- a custom name is entered in the prompt or if the current keyset was
1164
- already custom (and thus didn't require a prompt), then
1165
- idleConf.userCfg['keys'] is updated in function create_new_key_set()
1166
- with the change to the event binding. The item listing in bindingslist
1167
- is updated with the new keys. Var keybinding is also set which invokes
1168
- the callback function, var_changed_keybinding, to add the change to
1169
- the 'keys' or 'extensions' changes tracker based on the binding type.
1170
-
1171
- Tk Variables:
1172
- keybinding: Action/key bindings.
1173
-
1174
- Methods:
1175
- load_keys_list: Reload active set.
1176
- create_new_key_set: Combine active keyset and changes.
1177
- set_keys_type: Command for keyset_source.
1178
- save_new_key_set: Save to idleConf.userCfg['keys'] (is function).
1179
- deactivate_current_config: Remove keys bindings in editors.
1180
-
1181
- Widgets for KeysPage(frame): (*) widgets bound to self
1182
- frame_key_sets: LabelFrame
1183
- frames[0]: Frame
1184
- (*)builtin_keyset_on: Radiobutton - var keyset_source
1185
- (*)custom_keyset_on: Radiobutton - var keyset_source
1186
- (*)builtinlist: DynOptionMenu - var builtin_name,
1187
- func keybinding_selected
1188
- (*)customlist: DynOptionMenu - var custom_name,
1189
- func keybinding_selected
1190
- (*)keys_message: Label
1191
- frames[1]: Frame
1192
- (*)button_delete_custom_keys: Button - delete_custom_keys
1193
- (*)button_save_custom_keys: Button - save_as_new_key_set
1194
- frame_custom: LabelFrame
1195
- frame_target: Frame
1196
- target_title: Label
1197
- scroll_target_y: Scrollbar
1198
- scroll_target_x: Scrollbar
1199
- (*)bindingslist: ListBox - on_bindingslist_select
1200
- (*)button_new_keys: Button - get_new_keys & ..._name
1201
- """
1202
- self.builtin_name = tracers.add(
1203
- StringVar(self), self.var_changed_builtin_name)
1204
- self.custom_name = tracers.add(
1205
- StringVar(self), self.var_changed_custom_name)
1206
- self.keyset_source = tracers.add(
1207
- BooleanVar(self), self.var_changed_keyset_source)
1208
- self.keybinding = tracers.add(
1209
- StringVar(self), self.var_changed_keybinding)
1210
-
1211
- # Create widgets:
1212
- # body and section frames.
1213
- frame_custom = LabelFrame(
1214
- self, borderwidth=2, relief=GROOVE,
1215
- text=' Custom Key Bindings ')
1216
- frame_key_sets = LabelFrame(
1217
- self, borderwidth=2, relief=GROOVE, text=' Key Set ')
1218
- # frame_custom.
1219
- frame_target = Frame(frame_custom)
1220
- target_title = Label(frame_target, text='Action - Key(s)')
1221
- scroll_target_y = Scrollbar(frame_target)
1222
- scroll_target_x = Scrollbar(frame_target, orient=HORIZONTAL)
1223
- self.bindingslist = Listbox(
1224
- frame_target, takefocus=FALSE, exportselection=FALSE)
1225
- self.bindingslist.bind('<ButtonRelease-1>',
1226
- self.on_bindingslist_select)
1227
- scroll_target_y['command'] = self.bindingslist.yview
1228
- scroll_target_x['command'] = self.bindingslist.xview
1229
- self.bindingslist['yscrollcommand'] = scroll_target_y.set
1230
- self.bindingslist['xscrollcommand'] = scroll_target_x.set
1231
- self.button_new_keys = Button(
1232
- frame_custom, text='Get New Keys for Selection',
1233
- command=self.get_new_keys, state='disabled')
1234
- # frame_key_sets.
1235
- frames = [Frame(frame_key_sets, padding=2, borderwidth=0)
1236
- for i in range(2)]
1237
- self.builtin_keyset_on = Radiobutton(
1238
- frames[0], variable=self.keyset_source, value=1,
1239
- command=self.set_keys_type, text='Use a Built-in Key Set')
1240
- self.custom_keyset_on = Radiobutton(
1241
- frames[0], variable=self.keyset_source, value=0,
1242
- command=self.set_keys_type, text='Use a Custom Key Set')
1243
- self.builtinlist = DynOptionMenu(
1244
- frames[0], self.builtin_name, None, command=None)
1245
- self.customlist = DynOptionMenu(
1246
- frames[0], self.custom_name, None, command=None)
1247
- self.button_delete_custom_keys = Button(
1248
- frames[1], text='Delete Custom Key Set',
1249
- command=self.delete_custom_keys)
1250
- self.button_save_custom_keys = Button(
1251
- frames[1], text='Save as New Custom Key Set',
1252
- command=self.save_as_new_key_set)
1253
- self.keys_message = Label(frames[0], borderwidth=2)
1254
-
1255
- # Pack widgets:
1256
- # body.
1257
- frame_custom.pack(side=BOTTOM, padx=5, pady=5, expand=TRUE, fill=BOTH)
1258
- frame_key_sets.pack(side=BOTTOM, padx=5, pady=5, fill=BOTH)
1259
- # frame_custom.
1260
- self.button_new_keys.pack(side=BOTTOM, fill=X, padx=5, pady=5)
1261
- frame_target.pack(side=LEFT, padx=5, pady=5, expand=TRUE, fill=BOTH)
1262
- # frame_target.
1263
- frame_target.columnconfigure(0, weight=1)
1264
- frame_target.rowconfigure(1, weight=1)
1265
- target_title.grid(row=0, column=0, columnspan=2, sticky=W)
1266
- self.bindingslist.grid(row=1, column=0, sticky=NSEW)
1267
- scroll_target_y.grid(row=1, column=1, sticky=NS)
1268
- scroll_target_x.grid(row=2, column=0, sticky=EW)
1269
- # frame_key_sets.
1270
- self.builtin_keyset_on.grid(row=0, column=0, sticky=W+NS)
1271
- self.custom_keyset_on.grid(row=1, column=0, sticky=W+NS)
1272
- self.builtinlist.grid(row=0, column=1, sticky=NSEW)
1273
- self.customlist.grid(row=1, column=1, sticky=NSEW)
1274
- self.keys_message.grid(row=0, column=2, sticky=NSEW, padx=5, pady=5)
1275
- self.button_delete_custom_keys.pack(side=LEFT, fill=X, expand=True, padx=2)
1276
- self.button_save_custom_keys.pack(side=LEFT, fill=X, expand=True, padx=2)
1277
- frames[0].pack(side=TOP, fill=BOTH, expand=True)
1278
- frames[1].pack(side=TOP, fill=X, expand=True, pady=2)
1279
-
1280
- def load_key_cfg(self):
1281
- "Load current configuration settings for the keybinding options."
1282
- # Set current keys type radiobutton.
1283
- self.keyset_source.set(idleConf.GetOption(
1284
- 'main', 'Keys', 'default', type='bool', default=1))
1285
- # Set current keys.
1286
- current_option = idleConf.CurrentKeys()
1287
- # Load available keyset option menus.
1288
- if self.keyset_source.get(): # Default theme selected.
1289
- item_list = idleConf.GetSectionList('default', 'keys')
1290
- item_list.sort()
1291
- self.builtinlist.SetMenu(item_list, current_option)
1292
- item_list = idleConf.GetSectionList('user', 'keys')
1293
- item_list.sort()
1294
- if not item_list:
1295
- self.custom_keyset_on.state(('disabled',))
1296
- self.custom_name.set('- no custom keys -')
1297
- else:
1298
- self.customlist.SetMenu(item_list, item_list[0])
1299
- else: # User key set selected.
1300
- item_list = idleConf.GetSectionList('user', 'keys')
1301
- item_list.sort()
1302
- self.customlist.SetMenu(item_list, current_option)
1303
- item_list = idleConf.GetSectionList('default', 'keys')
1304
- item_list.sort()
1305
- self.builtinlist.SetMenu(item_list, idleConf.default_keys())
1306
- self.set_keys_type()
1307
- # Load keyset element list.
1308
- keyset_name = idleConf.CurrentKeys()
1309
- self.load_keys_list(keyset_name)
1310
-
1311
- def var_changed_builtin_name(self, *params):
1312
- "Process selection of builtin key set."
1313
- old_keys = (
1314
- 'IDLE Classic Windows',
1315
- 'IDLE Classic Unix',
1316
- 'IDLE Classic Mac',
1317
- 'IDLE Classic OSX',
1318
- )
1319
- value = self.builtin_name.get()
1320
- if value not in old_keys:
1321
- if idleConf.GetOption('main', 'Keys', 'name') not in old_keys:
1322
- changes.add_option('main', 'Keys', 'name', old_keys[0])
1323
- changes.add_option('main', 'Keys', 'name2', value)
1324
- self.keys_message['text'] = 'New key set, see Help'
1325
- else:
1326
- changes.add_option('main', 'Keys', 'name', value)
1327
- changes.add_option('main', 'Keys', 'name2', '')
1328
- self.keys_message['text'] = ''
1329
- self.load_keys_list(value)
1330
-
1331
- def var_changed_custom_name(self, *params):
1332
- "Process selection of custom key set."
1333
- value = self.custom_name.get()
1334
- if value != '- no custom keys -':
1335
- changes.add_option('main', 'Keys', 'name', value)
1336
- self.load_keys_list(value)
1337
-
1338
- def var_changed_keyset_source(self, *params):
1339
- "Process toggle between builtin key set and custom key set."
1340
- value = self.keyset_source.get()
1341
- changes.add_option('main', 'Keys', 'default', value)
1342
- if value:
1343
- self.var_changed_builtin_name()
1344
- else:
1345
- self.var_changed_custom_name()
1346
-
1347
- def var_changed_keybinding(self, *params):
1348
- "Store change to a keybinding."
1349
- value = self.keybinding.get()
1350
- key_set = self.custom_name.get()
1351
- event = self.bindingslist.get(ANCHOR).split()[0]
1352
- if idleConf.IsCoreBinding(event):
1353
- changes.add_option('keys', key_set, event, value)
1354
- else: # Event is an extension binding.
1355
- ext_name = idleConf.GetExtnNameForEvent(event)
1356
- ext_keybind_section = ext_name + '_cfgBindings'
1357
- changes.add_option('extensions', ext_keybind_section, event, value)
1358
-
1359
- def set_keys_type(self):
1360
- "Set available screen options based on builtin or custom key set."
1361
- if self.keyset_source.get():
1362
- self.builtinlist['state'] = 'normal'
1363
- self.customlist['state'] = 'disabled'
1364
- self.button_delete_custom_keys.state(('disabled',))
1365
- else:
1366
- self.builtinlist['state'] = 'disabled'
1367
- self.custom_keyset_on.state(('!disabled',))
1368
- self.customlist['state'] = 'normal'
1369
- self.button_delete_custom_keys.state(('!disabled',))
1370
-
1371
- def get_new_keys(self):
1372
- """Handle event to change key binding for selected line.
1373
-
1374
- A selection of a key/binding in the list of current
1375
- bindings pops up a dialog to enter a new binding. If
1376
- the current key set is builtin and a binding has
1377
- changed, then a name for a custom key set needs to be
1378
- entered for the change to be applied.
1379
- """
1380
- list_index = self.bindingslist.index(ANCHOR)
1381
- binding = self.bindingslist.get(list_index)
1382
- bind_name = binding.split()[0]
1383
- if self.keyset_source.get():
1384
- current_key_set_name = self.builtin_name.get()
1385
- else:
1386
- current_key_set_name = self.custom_name.get()
1387
- current_bindings = idleConf.GetCurrentKeySet()
1388
- if current_key_set_name in changes['keys']: # unsaved changes
1389
- key_set_changes = changes['keys'][current_key_set_name]
1390
- for event in key_set_changes:
1391
- current_bindings[event] = key_set_changes[event].split()
1392
- current_key_sequences = list(current_bindings.values())
1393
- new_keys = GetKeysWindow(self, 'Get New Keys', bind_name,
1394
- current_key_sequences).result
1395
- if new_keys:
1396
- if self.keyset_source.get(): # Current key set is a built-in.
1397
- message = ('Your changes will be saved as a new Custom Key Set.'
1398
- ' Enter a name for your new Custom Key Set below.')
1399
- new_keyset = self.get_new_keys_name(message)
1400
- if not new_keyset: # User cancelled custom key set creation.
1401
- self.bindingslist.select_set(list_index)
1402
- self.bindingslist.select_anchor(list_index)
1403
- return
1404
- else: # Create new custom key set based on previously active key set.
1405
- self.create_new_key_set(new_keyset)
1406
- self.bindingslist.delete(list_index)
1407
- self.bindingslist.insert(list_index, bind_name+' - '+new_keys)
1408
- self.bindingslist.select_set(list_index)
1409
- self.bindingslist.select_anchor(list_index)
1410
- self.keybinding.set(new_keys)
1411
- else:
1412
- self.bindingslist.select_set(list_index)
1413
- self.bindingslist.select_anchor(list_index)
1414
-
1415
- def get_new_keys_name(self, message):
1416
- "Return new key set name from query popup."
1417
- used_names = (idleConf.GetSectionList('user', 'keys') +
1418
- idleConf.GetSectionList('default', 'keys'))
1419
- new_keyset = SectionName(
1420
- self, 'New Custom Key Set', message, used_names).result
1421
- return new_keyset
1422
-
1423
- def save_as_new_key_set(self):
1424
- "Prompt for name of new key set and save changes using that name."
1425
- new_keys_name = self.get_new_keys_name('New Key Set Name:')
1426
- if new_keys_name:
1427
- self.create_new_key_set(new_keys_name)
1428
-
1429
- def on_bindingslist_select(self, event):
1430
- "Activate button to assign new keys to selected action."
1431
- self.button_new_keys.state(('!disabled',))
1432
-
1433
- def create_new_key_set(self, new_key_set_name):
1434
- """Create a new custom key set with the given name.
1435
-
1436
- Copy the bindings/keys from the previously active keyset
1437
- to the new keyset and activate the new custom keyset.
1438
- """
1439
- if self.keyset_source.get():
1440
- prev_key_set_name = self.builtin_name.get()
1441
- else:
1442
- prev_key_set_name = self.custom_name.get()
1443
- prev_keys = idleConf.GetCoreKeys(prev_key_set_name)
1444
- new_keys = {}
1445
- for event in prev_keys: # Add key set to changed items.
1446
- event_name = event[2:-2] # Trim off the angle brackets.
1447
- binding = ' '.join(prev_keys[event])
1448
- new_keys[event_name] = binding
1449
- # Handle any unsaved changes to prev key set.
1450
- if prev_key_set_name in changes['keys']:
1451
- key_set_changes = changes['keys'][prev_key_set_name]
1452
- for event in key_set_changes:
1453
- new_keys[event] = key_set_changes[event]
1454
- # Save the new key set.
1455
- self.save_new_key_set(new_key_set_name, new_keys)
1456
- # Change GUI over to the new key set.
1457
- custom_key_list = idleConf.GetSectionList('user', 'keys')
1458
- custom_key_list.sort()
1459
- self.customlist.SetMenu(custom_key_list, new_key_set_name)
1460
- self.keyset_source.set(0)
1461
- self.set_keys_type()
1462
-
1463
- def load_keys_list(self, keyset_name):
1464
- """Reload the list of action/key binding pairs for the active key set.
1465
-
1466
- An action/key binding can be selected to change the key binding.
1467
- """
1468
- reselect = False
1469
- if self.bindingslist.curselection():
1470
- reselect = True
1471
- list_index = self.bindingslist.index(ANCHOR)
1472
- keyset = idleConf.GetKeySet(keyset_name)
1473
- # 'set' is dict mapping virtual event to list of key events.
1474
- bind_names = list(keyset)
1475
- bind_names.sort()
1476
- self.bindingslist.delete(0, END)
1477
- for bind_name in bind_names:
1478
- key = ' '.join(keyset[bind_name])
1479
- bind_name = bind_name[2:-2] # Trim double angle brackets.
1480
- if keyset_name in changes['keys']:
1481
- # Handle any unsaved changes to this key set.
1482
- if bind_name in changes['keys'][keyset_name]:
1483
- key = changes['keys'][keyset_name][bind_name]
1484
- self.bindingslist.insert(END, bind_name+' - '+key)
1485
- if reselect:
1486
- self.bindingslist.see(list_index)
1487
- self.bindingslist.select_set(list_index)
1488
- self.bindingslist.select_anchor(list_index)
1489
-
1490
- @staticmethod
1491
- def save_new_key_set(keyset_name, keyset):
1492
- """Save a newly created core key set.
1493
-
1494
- Add keyset to idleConf.userCfg['keys'], not to disk.
1495
- If the keyset doesn't exist, it is created. The
1496
- binding/keys are taken from the keyset argument.
1497
-
1498
- keyset_name - string, the name of the new key set
1499
- keyset - dictionary containing the new keybindings
1500
- """
1501
- idleConf.userCfg['keys'].AddSection(keyset_name)
1502
- for event in keyset:
1503
- value = keyset[event]
1504
- idleConf.userCfg['keys'].SetOption(keyset_name, event, value)
1505
-
1506
- def askyesno(self, *args, **kwargs):
1507
- # Make testing easier. Could change implementation.
1508
- return messagebox.askyesno(*args, **kwargs)
1509
-
1510
- def delete_custom_keys(self):
1511
- """Handle event to delete a custom key set.
1512
-
1513
- Applying the delete deactivates the current configuration and
1514
- reverts to the default. The custom key set is permanently
1515
- deleted from the config file.
1516
- """
1517
- keyset_name = self.custom_name.get()
1518
- delmsg = 'Are you sure you wish to delete the key set %r ?'
1519
- if not self.askyesno(
1520
- 'Delete Key Set', delmsg % keyset_name, parent=self):
1521
- return
1522
- self.cd.deactivate_current_config()
1523
- # Remove key set from changes, config, and file.
1524
- changes.delete_section('keys', keyset_name)
1525
- # Reload user key set list.
1526
- item_list = idleConf.GetSectionList('user', 'keys')
1527
- item_list.sort()
1528
- if not item_list:
1529
- self.custom_keyset_on.state(('disabled',))
1530
- self.customlist.SetMenu(item_list, '- no custom keys -')
1531
- else:
1532
- self.customlist.SetMenu(item_list, item_list[0])
1533
- # Revert to default key set.
1534
- self.keyset_source.set(idleConf.defaultCfg['main']
1535
- .Get('Keys', 'default'))
1536
- self.builtin_name.set(idleConf.defaultCfg['main'].Get('Keys', 'name')
1537
- or idleConf.default_keys())
1538
- # User can't back out of these changes, they must be applied now.
1539
- changes.save_all()
1540
- self.extpage.save_all_changed_extensions()
1541
- self.cd.activate_config_changes()
1542
- self.set_keys_type()
1543
-
1544
-
1545
- class WinPage(Frame):
1546
-
1547
- def __init__(self, master):
1548
- super().__init__(master)
1549
-
1550
- self.init_validators()
1551
- self.create_page_windows()
1552
- self.load_windows_cfg()
1553
-
1554
- def init_validators(self):
1555
- digits_or_empty_re = re.compile(r'[0-9]*')
1556
- def is_digits_or_empty(s):
1557
- "Return 's is blank or contains only digits'"
1558
- return digits_or_empty_re.fullmatch(s) is not None
1559
- self.digits_only = (self.register(is_digits_or_empty), '%P',)
1560
-
1561
- def create_page_windows(self):
1562
- """Return frame of widgets for Windows tab.
1563
-
1564
- Enable users to provisionally change general window options.
1565
- Function load_windows_cfg initializes tk variable idleConf.
1566
- Radiobuttons startup_shell_on and startup_editor_on set var
1567
- startup_edit. Entry boxes win_width_int and win_height_int set var
1568
- win_width and win_height. Setting var_name invokes the default
1569
- callback that adds option to changes.
1570
-
1571
- Widgets for WinPage(Frame): > vars, bound to self
1572
- frame_window: LabelFrame
1573
- frame_run: Frame
1574
- startup_title: Label
1575
- startup_editor_on: Radiobutton > startup_edit
1576
- startup_shell_on: Radiobutton > startup_edit
1577
- frame_win_size: Frame
1578
- win_size_title: Label
1579
- win_width_title: Label
1580
- win_width_int: Entry > win_width
1581
- win_height_title: Label
1582
- win_height_int: Entry > win_height
1583
- frame_cursor: Frame
1584
- indent_title: Label
1585
- indent_chooser: Spinbox > indent_spaces
1586
- blink_on: Checkbutton > cursor_blink
1587
- frame_autocomplete: Frame
1588
- auto_wait_title: Label
1589
- auto_wait_int: Entry > autocomplete_wait
1590
- frame_paren1: Frame
1591
- paren_style_title: Label
1592
- paren_style_type: OptionMenu > paren_style
1593
- frame_paren2: Frame
1594
- paren_time_title: Label
1595
- paren_flash_time: Entry > flash_delay
1596
- bell_on: Checkbutton > paren_bell
1597
- frame_format: Frame
1598
- format_width_title: Label
1599
- format_width_int: Entry > format_width
1600
- """
1601
- # Integer values need StringVar because int('') raises.
1602
- self.startup_edit = tracers.add(
1603
- IntVar(self), ('main', 'General', 'editor-on-startup'))
1604
- self.win_width = tracers.add(
1605
- StringVar(self), ('main', 'EditorWindow', 'width'))
1606
- self.win_height = tracers.add(
1607
- StringVar(self), ('main', 'EditorWindow', 'height'))
1608
- self.indent_spaces = tracers.add(
1609
- StringVar(self), ('main', 'Indent', 'num-spaces'))
1610
- self.cursor_blink = tracers.add(
1611
- BooleanVar(self), ('main', 'EditorWindow', 'cursor-blink'))
1612
- self.autocomplete_wait = tracers.add(
1613
- StringVar(self), ('extensions', 'AutoComplete', 'popupwait'))
1614
- self.paren_style = tracers.add(
1615
- StringVar(self), ('extensions', 'ParenMatch', 'style'))
1616
- self.flash_delay = tracers.add(
1617
- StringVar(self), ('extensions', 'ParenMatch', 'flash-delay'))
1618
- self.paren_bell = tracers.add(
1619
- BooleanVar(self), ('extensions', 'ParenMatch', 'bell'))
1620
- self.format_width = tracers.add(
1621
- StringVar(self), ('extensions', 'FormatParagraph', 'max-width'))
1622
-
1623
- # Create widgets:
1624
- frame_window = LabelFrame(self, borderwidth=2, relief=GROOVE,
1625
- text=' Window Preferences')
1626
-
1627
- frame_run = Frame(frame_window, borderwidth=0)
1628
- startup_title = Label(frame_run, text='At Startup')
1629
- self.startup_editor_on = Radiobutton(
1630
- frame_run, variable=self.startup_edit, value=1,
1631
- text="Open Edit Window")
1632
- self.startup_shell_on = Radiobutton(
1633
- frame_run, variable=self.startup_edit, value=0,
1634
- text='Open Shell Window')
1635
-
1636
- frame_win_size = Frame(frame_window, borderwidth=0)
1637
- win_size_title = Label(
1638
- frame_win_size, text='Initial Window Size (in characters)')
1639
- win_width_title = Label(frame_win_size, text='Width')
1640
- self.win_width_int = Entry(
1641
- frame_win_size, textvariable=self.win_width, width=3,
1642
- validatecommand=self.digits_only, validate='key',
1643
- )
1644
- win_height_title = Label(frame_win_size, text='Height')
1645
- self.win_height_int = Entry(
1646
- frame_win_size, textvariable=self.win_height, width=3,
1647
- validatecommand=self.digits_only, validate='key',
1648
- )
1649
-
1650
- frame_cursor = Frame(frame_window, borderwidth=0)
1651
- indent_title = Label(frame_cursor,
1652
- text='Indent spaces (4 is standard)')
1653
- try:
1654
- self.indent_chooser = Spinbox(
1655
- frame_cursor, textvariable=self.indent_spaces,
1656
- from_=1, to=10, width=2,
1657
- validatecommand=self.digits_only, validate='key')
1658
- except TclError:
1659
- self.indent_chooser = Combobox(
1660
- frame_cursor, textvariable=self.indent_spaces,
1661
- state="readonly", values=list(range(1,11)), width=3)
1662
- cursor_blink_title = Label(frame_cursor, text='Cursor Blink')
1663
- self.cursor_blink_bool = Checkbutton(frame_cursor, text="Cursor blink",
1664
- variable=self.cursor_blink)
1665
-
1666
- frame_autocomplete = Frame(frame_window, borderwidth=0,)
1667
- auto_wait_title = Label(frame_autocomplete,
1668
- text='Completions Popup Wait (milliseconds)')
1669
- self.auto_wait_int = Entry(
1670
- frame_autocomplete, textvariable=self.autocomplete_wait,
1671
- width=6, validatecommand=self.digits_only, validate='key')
1672
-
1673
- frame_paren1 = Frame(frame_window, borderwidth=0)
1674
- paren_style_title = Label(frame_paren1, text='Paren Match Style')
1675
- self.paren_style_type = OptionMenu(
1676
- frame_paren1, self.paren_style, 'expression',
1677
- "opener","parens","expression")
1678
- frame_paren2 = Frame(frame_window, borderwidth=0)
1679
- paren_time_title = Label(
1680
- frame_paren2, text='Time Match Displayed (milliseconds)\n'
1681
- '(0 is until next input)')
1682
- self.paren_flash_time = Entry(
1683
- frame_paren2, textvariable=self.flash_delay, width=6,
1684
- validatecommand=self.digits_only, validate='key')
1685
- self.bell_on = Checkbutton(
1686
- frame_paren2, text="Bell on Mismatch", variable=self.paren_bell)
1687
- frame_format = Frame(frame_window, borderwidth=0)
1688
- format_width_title = Label(frame_format,
1689
- text='Format Paragraph Max Width')
1690
- self.format_width_int = Entry(
1691
- frame_format, textvariable=self.format_width, width=4,
1692
- validatecommand=self.digits_only, validate='key',
1693
- )
1694
-
1695
- # Pack widgets:
1696
- frame_window.pack(side=TOP, padx=5, pady=5, expand=TRUE, fill=BOTH)
1697
- # frame_run.
1698
- frame_run.pack(side=TOP, padx=5, pady=0, fill=X)
1699
- startup_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1700
- self.startup_shell_on.pack(side=RIGHT, anchor=W, padx=5, pady=5)
1701
- self.startup_editor_on.pack(side=RIGHT, anchor=W, padx=5, pady=5)
1702
- # frame_win_size.
1703
- frame_win_size.pack(side=TOP, padx=5, pady=0, fill=X)
1704
- win_size_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1705
- self.win_height_int.pack(side=RIGHT, anchor=E, padx=10, pady=5)
1706
- win_height_title.pack(side=RIGHT, anchor=E, pady=5)
1707
- self.win_width_int.pack(side=RIGHT, anchor=E, padx=10, pady=5)
1708
- win_width_title.pack(side=RIGHT, anchor=E, pady=5)
1709
- # frame_cursor.
1710
- frame_cursor.pack(side=TOP, padx=5, pady=0, fill=X)
1711
- indent_title.pack(side=LEFT, anchor=W, padx=5)
1712
- self.indent_chooser.pack(side=LEFT, anchor=W, padx=10)
1713
- self.cursor_blink_bool.pack(side=RIGHT, anchor=E, padx=15, pady=5)
1714
- # frame_autocomplete.
1715
- frame_autocomplete.pack(side=TOP, padx=5, pady=0, fill=X)
1716
- auto_wait_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1717
- self.auto_wait_int.pack(side=TOP, padx=10, pady=5)
1718
- # frame_paren.
1719
- frame_paren1.pack(side=TOP, padx=5, pady=0, fill=X)
1720
- paren_style_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1721
- self.paren_style_type.pack(side=TOP, padx=10, pady=5)
1722
- frame_paren2.pack(side=TOP, padx=5, pady=0, fill=X)
1723
- paren_time_title.pack(side=LEFT, anchor=W, padx=5)
1724
- self.bell_on.pack(side=RIGHT, anchor=E, padx=15, pady=5)
1725
- self.paren_flash_time.pack(side=TOP, anchor=W, padx=15, pady=5)
1726
- # frame_format.
1727
- frame_format.pack(side=TOP, padx=5, pady=0, fill=X)
1728
- format_width_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1729
- self.format_width_int.pack(side=TOP, padx=10, pady=5)
1730
-
1731
- def load_windows_cfg(self):
1732
- # Set variables for all windows.
1733
- self.startup_edit.set(idleConf.GetOption(
1734
- 'main', 'General', 'editor-on-startup', type='bool'))
1735
- self.win_width.set(idleConf.GetOption(
1736
- 'main', 'EditorWindow', 'width', type='int'))
1737
- self.win_height.set(idleConf.GetOption(
1738
- 'main', 'EditorWindow', 'height', type='int'))
1739
- self.indent_spaces.set(idleConf.GetOption(
1740
- 'main', 'Indent', 'num-spaces', type='int'))
1741
- self.cursor_blink.set(idleConf.GetOption(
1742
- 'main', 'EditorWindow', 'cursor-blink', type='bool'))
1743
- self.autocomplete_wait.set(idleConf.GetOption(
1744
- 'extensions', 'AutoComplete', 'popupwait', type='int'))
1745
- self.paren_style.set(idleConf.GetOption(
1746
- 'extensions', 'ParenMatch', 'style'))
1747
- self.flash_delay.set(idleConf.GetOption(
1748
- 'extensions', 'ParenMatch', 'flash-delay', type='int'))
1749
- self.paren_bell.set(idleConf.GetOption(
1750
- 'extensions', 'ParenMatch', 'bell'))
1751
- self.format_width.set(idleConf.GetOption(
1752
- 'extensions', 'FormatParagraph', 'max-width', type='int'))
1753
-
1754
-
1755
- class ShedPage(Frame):
1756
-
1757
- def __init__(self, master):
1758
- super().__init__(master)
1759
-
1760
- self.init_validators()
1761
- self.create_page_shed()
1762
- self.load_shelled_cfg()
1763
-
1764
- def init_validators(self):
1765
- digits_or_empty_re = re.compile(r'[0-9]*')
1766
- def is_digits_or_empty(s):
1767
- "Return 's is blank or contains only digits'"
1768
- return digits_or_empty_re.fullmatch(s) is not None
1769
- self.digits_only = (self.register(is_digits_or_empty), '%P',)
1770
-
1771
- def create_page_shed(self):
1772
- """Return frame of widgets for Shell/Ed tab.
1773
-
1774
- Enable users to provisionally change shell and editor options.
1775
- Function load_shed_cfg initializes tk variables using idleConf.
1776
- Entry box auto_squeeze_min_lines_int sets
1777
- auto_squeeze_min_lines_int. Setting var_name invokes the
1778
- default callback that adds option to changes.
1779
-
1780
- Widgets for ShedPage(Frame): (*) widgets bound to self
1781
- frame_shell: LabelFrame
1782
- frame_auto_squeeze_min_lines: Frame
1783
- auto_squeeze_min_lines_title: Label
1784
- (*)auto_squeeze_min_lines_int: Entry -
1785
- auto_squeeze_min_lines
1786
- frame_editor: LabelFrame
1787
- frame_save: Frame
1788
- run_save_title: Label
1789
- (*)save_ask_on: Radiobutton - autosave
1790
- (*)save_auto_on: Radiobutton - autosave
1791
- frame_format: Frame
1792
- format_width_title: Label
1793
- (*)format_width_int: Entry - format_width
1794
- frame_line_numbers_default: Frame
1795
- line_numbers_default_title: Label
1796
- (*)line_numbers_default_bool: Checkbutton - line_numbers_default
1797
- frame_context: Frame
1798
- context_title: Label
1799
- (*)context_int: Entry - context_lines
1800
- """
1801
- # Integer values need StringVar because int('') raises.
1802
- self.auto_squeeze_min_lines = tracers.add(
1803
- StringVar(self), ('main', 'PyShell', 'auto-squeeze-min-lines'))
1804
-
1805
- self.autosave = tracers.add(
1806
- IntVar(self), ('main', 'General', 'autosave'))
1807
- self.line_numbers_default = tracers.add(
1808
- BooleanVar(self),
1809
- ('main', 'EditorWindow', 'line-numbers-default'))
1810
- self.context_lines = tracers.add(
1811
- StringVar(self), ('extensions', 'CodeContext', 'maxlines'))
1812
-
1813
- # Create widgets:
1814
- frame_shell = LabelFrame(self, borderwidth=2, relief=GROOVE,
1815
- text=' Shell Preferences')
1816
- frame_editor = LabelFrame(self, borderwidth=2, relief=GROOVE,
1817
- text=' Editor Preferences')
1818
- # Frame_shell.
1819
- frame_auto_squeeze_min_lines = Frame(frame_shell, borderwidth=0)
1820
- auto_squeeze_min_lines_title = Label(frame_auto_squeeze_min_lines,
1821
- text='Auto-Squeeze Min. Lines:')
1822
- self.auto_squeeze_min_lines_int = Entry(
1823
- frame_auto_squeeze_min_lines, width=4,
1824
- textvariable=self.auto_squeeze_min_lines,
1825
- validatecommand=self.digits_only, validate='key',
1826
- )
1827
- # Frame_editor.
1828
- frame_save = Frame(frame_editor, borderwidth=0)
1829
- run_save_title = Label(frame_save, text='At Start of Run (F5) ')
1830
-
1831
- self.save_ask_on = Radiobutton(
1832
- frame_save, variable=self.autosave, value=0,
1833
- text="Prompt to Save")
1834
- self.save_auto_on = Radiobutton(
1835
- frame_save, variable=self.autosave, value=1,
1836
- text='No Prompt')
1837
-
1838
- frame_line_numbers_default = Frame(frame_editor, borderwidth=0)
1839
- line_numbers_default_title = Label(
1840
- frame_line_numbers_default, text='Show line numbers in new windows')
1841
- self.line_numbers_default_bool = Checkbutton(
1842
- frame_line_numbers_default,
1843
- variable=self.line_numbers_default,
1844
- width=1)
1845
-
1846
- frame_context = Frame(frame_editor, borderwidth=0)
1847
- context_title = Label(frame_context, text='Max Context Lines :')
1848
- self.context_int = Entry(
1849
- frame_context, textvariable=self.context_lines, width=3,
1850
- validatecommand=self.digits_only, validate='key',
1851
- )
1852
-
1853
- # Pack widgets:
1854
- frame_shell.pack(side=TOP, padx=5, pady=5, fill=BOTH)
1855
- Label(self).pack() # Spacer -- better solution?
1856
- frame_editor.pack(side=TOP, padx=5, pady=5, fill=BOTH)
1857
- # frame_auto_squeeze_min_lines
1858
- frame_auto_squeeze_min_lines.pack(side=TOP, padx=5, pady=0, fill=X)
1859
- auto_squeeze_min_lines_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1860
- self.auto_squeeze_min_lines_int.pack(side=TOP, padx=5, pady=5)
1861
- # frame_save.
1862
- frame_save.pack(side=TOP, padx=5, pady=0, fill=X)
1863
- run_save_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1864
- self.save_auto_on.pack(side=RIGHT, anchor=W, padx=5, pady=5)
1865
- self.save_ask_on.pack(side=RIGHT, anchor=W, padx=5, pady=5)
1866
- # frame_line_numbers_default.
1867
- frame_line_numbers_default.pack(side=TOP, padx=5, pady=0, fill=X)
1868
- line_numbers_default_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1869
- self.line_numbers_default_bool.pack(side=LEFT, padx=5, pady=5)
1870
- # frame_context.
1871
- frame_context.pack(side=TOP, padx=5, pady=0, fill=X)
1872
- context_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
1873
- self.context_int.pack(side=TOP, padx=5, pady=5)
1874
-
1875
- def load_shelled_cfg(self):
1876
- # Set variables for shell windows.
1877
- self.auto_squeeze_min_lines.set(idleConf.GetOption(
1878
- 'main', 'PyShell', 'auto-squeeze-min-lines', type='int'))
1879
- # Set variables for editor windows.
1880
- self.autosave.set(idleConf.GetOption(
1881
- 'main', 'General', 'autosave', default=0, type='bool'))
1882
- self.line_numbers_default.set(idleConf.GetOption(
1883
- 'main', 'EditorWindow', 'line-numbers-default', type='bool'))
1884
- self.context_lines.set(idleConf.GetOption(
1885
- 'extensions', 'CodeContext', 'maxlines', type='int'))
1886
-
1887
-
1888
- class ExtPage(Frame):
1889
- def __init__(self, master):
1890
- super().__init__(master)
1891
- self.ext_defaultCfg = idleConf.defaultCfg['extensions']
1892
- self.ext_userCfg = idleConf.userCfg['extensions']
1893
- self.is_int = self.register(is_int)
1894
- self.load_extensions()
1895
- self.create_page_extensions() # Requires extension names.
1896
-
1897
- def create_page_extensions(self):
1898
- """Configure IDLE feature extensions and help menu extensions.
1899
-
1900
- List the feature extensions and a configuration box for the
1901
- selected extension. Help menu extensions are in a HelpFrame.
1902
-
1903
- This code reads the current configuration using idleConf,
1904
- supplies a GUI interface to change the configuration values,
1905
- and saves the changes using idleConf.
1906
-
1907
- Some changes may require restarting IDLE. This depends on each
1908
- extension's implementation.
1909
-
1910
- All values are treated as text, and it is up to the user to
1911
- supply reasonable values. The only exception to this are the
1912
- 'enable*' options, which are boolean, and can be toggled with a
1913
- True/False button.
1914
-
1915
- Methods:
1916
- extension_selected: Handle selection from list.
1917
- create_extension_frame: Hold widgets for one extension.
1918
- set_extension_value: Set in userCfg['extensions'].
1919
- save_all_changed_extensions: Call extension page Save().
1920
- """
1921
- self.extension_names = StringVar(self)
1922
-
1923
- frame_ext = LabelFrame(self, borderwidth=2, relief=GROOVE,
1924
- text=' Feature Extensions ')
1925
- self.frame_help = HelpFrame(self, borderwidth=2, relief=GROOVE,
1926
- text=' Help Menu Extensions ')
1927
-
1928
- frame_ext.rowconfigure(0, weight=1)
1929
- frame_ext.columnconfigure(2, weight=1)
1930
- self.extension_list = Listbox(frame_ext, listvariable=self.extension_names,
1931
- selectmode='browse')
1932
- self.extension_list.bind('<<ListboxSelect>>', self.extension_selected)
1933
- scroll = Scrollbar(frame_ext, command=self.extension_list.yview)
1934
- self.extension_list.yscrollcommand=scroll.set
1935
- self.details_frame = LabelFrame(frame_ext, width=250, height=250)
1936
- self.extension_list.grid(column=0, row=0, sticky='nws')
1937
- scroll.grid(column=1, row=0, sticky='ns')
1938
- self.details_frame.grid(column=2, row=0, sticky='nsew', padx=[10, 0])
1939
- frame_ext.configure(padding=10)
1940
- self.config_frame = {}
1941
- self.current_extension = None
1942
-
1943
- self.outerframe = self # TEMPORARY
1944
- self.tabbed_page_set = self.extension_list # TEMPORARY
1945
-
1946
- # Create the frame holding controls for each extension.
1947
- ext_names = ''
1948
- for ext_name in sorted(self.extensions):
1949
- self.create_extension_frame(ext_name)
1950
- ext_names = ext_names + '{' + ext_name + '} '
1951
- self.extension_names.set(ext_names)
1952
- self.extension_list.selection_set(0)
1953
- self.extension_selected(None)
1954
-
1955
-
1956
- frame_ext.grid(row=0, column=0, sticky='nsew')
1957
- Label(self).grid(row=1, column=0) # Spacer. Replace with config?
1958
- self.frame_help.grid(row=2, column=0, sticky='sew')
1959
-
1960
- def load_extensions(self):
1961
- "Fill self.extensions with data from the default and user configs."
1962
- self.extensions = {}
1963
- for ext_name in idleConf.GetExtensions(active_only=False):
1964
- # Former built-in extensions are already filtered out.
1965
- self.extensions[ext_name] = []
1966
-
1967
- for ext_name in self.extensions:
1968
- opt_list = sorted(self.ext_defaultCfg.GetOptionList(ext_name))
1969
-
1970
- # Bring 'enable' options to the beginning of the list.
1971
- enables = [opt_name for opt_name in opt_list
1972
- if opt_name.startswith('enable')]
1973
- for opt_name in enables:
1974
- opt_list.remove(opt_name)
1975
- opt_list = enables + opt_list
1976
-
1977
- for opt_name in opt_list:
1978
- def_str = self.ext_defaultCfg.Get(
1979
- ext_name, opt_name, raw=True)
1980
- try:
1981
- def_obj = {'True':True, 'False':False}[def_str]
1982
- opt_type = 'bool'
1983
- except KeyError:
1984
- try:
1985
- def_obj = int(def_str)
1986
- opt_type = 'int'
1987
- except ValueError:
1988
- def_obj = def_str
1989
- opt_type = None
1990
- try:
1991
- value = self.ext_userCfg.Get(
1992
- ext_name, opt_name, type=opt_type, raw=True,
1993
- default=def_obj)
1994
- except ValueError: # Need this until .Get fixed.
1995
- value = def_obj # Bad values overwritten by entry.
1996
- var = StringVar(self)
1997
- var.set(str(value))
1998
-
1999
- self.extensions[ext_name].append({'name': opt_name,
2000
- 'type': opt_type,
2001
- 'default': def_str,
2002
- 'value': value,
2003
- 'var': var,
2004
- })
2005
-
2006
- def extension_selected(self, event):
2007
- "Handle selection of an extension from the list."
2008
- newsel = self.extension_list.curselection()
2009
- if newsel:
2010
- newsel = self.extension_list.get(newsel)
2011
- if newsel is None or newsel != self.current_extension:
2012
- if self.current_extension:
2013
- self.details_frame.config(text='')
2014
- self.config_frame[self.current_extension].grid_forget()
2015
- self.current_extension = None
2016
- if newsel:
2017
- self.details_frame.config(text=newsel)
2018
- self.config_frame[newsel].grid(column=0, row=0, sticky='nsew')
2019
- self.current_extension = newsel
2020
-
2021
- def create_extension_frame(self, ext_name):
2022
- """Create a frame holding the widgets to configure one extension"""
2023
- f = VerticalScrolledFrame(self.details_frame, height=250, width=250)
2024
- self.config_frame[ext_name] = f
2025
- entry_area = f.interior
2026
- # Create an entry for each configuration option.
2027
- for row, opt in enumerate(self.extensions[ext_name]):
2028
- # Create a row with a label and entry/checkbutton.
2029
- label = Label(entry_area, text=opt['name'])
2030
- label.grid(row=row, column=0, sticky=NW)
2031
- var = opt['var']
2032
- if opt['type'] == 'bool':
2033
- Checkbutton(entry_area, variable=var,
2034
- onvalue='True', offvalue='False', width=8
2035
- ).grid(row=row, column=1, sticky=W, padx=7)
2036
- elif opt['type'] == 'int':
2037
- Entry(entry_area, textvariable=var, validate='key',
2038
- validatecommand=(self.is_int, '%P'), width=10
2039
- ).grid(row=row, column=1, sticky=NSEW, padx=7)
2040
-
2041
- else: # type == 'str'
2042
- # Limit size to fit non-expanding space with larger font.
2043
- Entry(entry_area, textvariable=var, width=15
2044
- ).grid(row=row, column=1, sticky=NSEW, padx=7)
2045
- return
2046
-
2047
- def set_extension_value(self, section, opt):
2048
- """Return True if the configuration was added or changed.
2049
-
2050
- If the value is the same as the default, then remove it
2051
- from user config file.
2052
- """
2053
- name = opt['name']
2054
- default = opt['default']
2055
- value = opt['var'].get().strip() or default
2056
- opt['var'].set(value)
2057
- # if self.defaultCfg.has_section(section):
2058
- # Currently, always true; if not, indent to return.
2059
- if (value == default):
2060
- return self.ext_userCfg.RemoveOption(section, name)
2061
- # Set the option.
2062
- return self.ext_userCfg.SetOption(section, name, value)
2063
-
2064
- def save_all_changed_extensions(self):
2065
- """Save configuration changes to the user config file.
2066
-
2067
- Attributes accessed:
2068
- extensions
2069
-
2070
- Methods:
2071
- set_extension_value
2072
- """
2073
- has_changes = False
2074
- for ext_name in self.extensions:
2075
- options = self.extensions[ext_name]
2076
- for opt in options:
2077
- if self.set_extension_value(ext_name, opt):
2078
- has_changes = True
2079
- if has_changes:
2080
- self.ext_userCfg.Save()
2081
-
2082
-
2083
- class HelpFrame(LabelFrame):
2084
-
2085
- def __init__(self, master, **cfg):
2086
- super().__init__(master, **cfg)
2087
- self.create_frame_help()
2088
- self.load_helplist()
2089
-
2090
- def create_frame_help(self):
2091
- """Create LabelFrame for additional help menu sources.
2092
-
2093
- load_helplist loads list user_helplist with
2094
- name, position pairs and copies names to listbox helplist.
2095
- Clicking a name invokes help_source selected. Clicking
2096
- button_helplist_name invokes helplist_item_name, which also
2097
- changes user_helplist. These functions all call
2098
- set_add_delete_state. All but load call update_help_changes to
2099
- rewrite changes['main']['HelpFiles'].
2100
-
2101
- Widgets for HelpFrame(LabelFrame): (*) widgets bound to self
2102
- frame_helplist: Frame
2103
- (*)helplist: ListBox
2104
- scroll_helplist: Scrollbar
2105
- frame_buttons: Frame
2106
- (*)button_helplist_edit
2107
- (*)button_helplist_add
2108
- (*)button_helplist_remove
2109
- """
2110
- # self = frame_help in dialog (until ExtPage class).
2111
- frame_helplist = Frame(self)
2112
- self.helplist = Listbox(
2113
- frame_helplist, height=5, takefocus=True,
2114
- exportselection=FALSE)
2115
- scroll_helplist = Scrollbar(frame_helplist)
2116
- scroll_helplist['command'] = self.helplist.yview
2117
- self.helplist['yscrollcommand'] = scroll_helplist.set
2118
- self.helplist.bind('<ButtonRelease-1>', self.help_source_selected)
2119
-
2120
- frame_buttons = Frame(self)
2121
- self.button_helplist_edit = Button(
2122
- frame_buttons, text='Edit', state='disabled',
2123
- width=8, command=self.helplist_item_edit)
2124
- self.button_helplist_add = Button(
2125
- frame_buttons, text='Add',
2126
- width=8, command=self.helplist_item_add)
2127
- self.button_helplist_remove = Button(
2128
- frame_buttons, text='Remove', state='disabled',
2129
- width=8, command=self.helplist_item_remove)
2130
-
2131
- # Pack frame_help.
2132
- frame_helplist.pack(side=LEFT, padx=5, pady=5, expand=TRUE, fill=BOTH)
2133
- self.helplist.pack(side=LEFT, anchor=E, expand=TRUE, fill=BOTH)
2134
- scroll_helplist.pack(side=RIGHT, anchor=W, fill=Y)
2135
- frame_buttons.pack(side=RIGHT, padx=5, pady=5, fill=Y)
2136
- self.button_helplist_edit.pack(side=TOP, anchor=W, pady=5)
2137
- self.button_helplist_add.pack(side=TOP, anchor=W)
2138
- self.button_helplist_remove.pack(side=TOP, anchor=W, pady=5)
2139
-
2140
- def help_source_selected(self, event):
2141
- "Handle event for selecting additional help."
2142
- self.set_add_delete_state()
2143
-
2144
- def set_add_delete_state(self):
2145
- "Toggle the state for the help list buttons based on list entries."
2146
- if self.helplist.size() < 1: # No entries in list.
2147
- self.button_helplist_edit.state(('disabled',))
2148
- self.button_helplist_remove.state(('disabled',))
2149
- else: # Some entries.
2150
- if self.helplist.curselection(): # There currently is a selection.
2151
- self.button_helplist_edit.state(('!disabled',))
2152
- self.button_helplist_remove.state(('!disabled',))
2153
- else: # There currently is not a selection.
2154
- self.button_helplist_edit.state(('disabled',))
2155
- self.button_helplist_remove.state(('disabled',))
2156
-
2157
- def helplist_item_add(self):
2158
- """Handle add button for the help list.
2159
-
2160
- Query for name and location of new help sources and add
2161
- them to the list.
2162
- """
2163
- help_source = HelpSource(self, 'New Help Source').result
2164
- if help_source:
2165
- self.user_helplist.append(help_source)
2166
- self.helplist.insert(END, help_source[0])
2167
- self.update_help_changes()
2168
-
2169
- def helplist_item_edit(self):
2170
- """Handle edit button for the help list.
2171
-
2172
- Query with existing help source information and update
2173
- config if the values are changed.
2174
- """
2175
- item_index = self.helplist.index(ANCHOR)
2176
- help_source = self.user_helplist[item_index]
2177
- new_help_source = HelpSource(
2178
- self, 'Edit Help Source',
2179
- menuitem=help_source[0],
2180
- filepath=help_source[1],
2181
- ).result
2182
- if new_help_source and new_help_source != help_source:
2183
- self.user_helplist[item_index] = new_help_source
2184
- self.helplist.delete(item_index)
2185
- self.helplist.insert(item_index, new_help_source[0])
2186
- self.update_help_changes()
2187
- self.set_add_delete_state() # Selected will be un-selected
2188
-
2189
- def helplist_item_remove(self):
2190
- """Handle remove button for the help list.
2191
-
2192
- Delete the help list item from config.
2193
- """
2194
- item_index = self.helplist.index(ANCHOR)
2195
- del(self.user_helplist[item_index])
2196
- self.helplist.delete(item_index)
2197
- self.update_help_changes()
2198
- self.set_add_delete_state()
2199
-
2200
- def update_help_changes(self):
2201
- "Clear and rebuild the HelpFiles section in changes"
2202
- changes['main']['HelpFiles'] = {}
2203
- for num in range(1, len(self.user_helplist) + 1):
2204
- changes.add_option(
2205
- 'main', 'HelpFiles', str(num),
2206
- ';'.join(self.user_helplist[num-1][:2]))
2207
-
2208
- def load_helplist(self):
2209
- # Set additional help sources.
2210
- self.user_helplist = idleConf.GetAllExtraHelpSourcesList()
2211
- self.helplist.delete(0, 'end')
2212
- for help_item in self.user_helplist:
2213
- self.helplist.insert(END, help_item[0])
2214
- self.set_add_delete_state()
2215
-
2216
-
2217
- class VarTrace:
2218
- """Maintain Tk variables trace state."""
2219
-
2220
- def __init__(self):
2221
- """Store Tk variables and callbacks.
2222
-
2223
- untraced: List of tuples (var, callback)
2224
- that do not have the callback attached
2225
- to the Tk var.
2226
- traced: List of tuples (var, callback) where
2227
- that callback has been attached to the var.
2228
- """
2229
- self.untraced = []
2230
- self.traced = []
2231
-
2232
- def clear(self):
2233
- "Clear lists (for tests)."
2234
- # Call after all tests in a module to avoid memory leaks.
2235
- self.untraced.clear()
2236
- self.traced.clear()
2237
-
2238
- def add(self, var, callback):
2239
- """Add (var, callback) tuple to untraced list.
2240
-
2241
- Args:
2242
- var: Tk variable instance.
2243
- callback: Either function name to be used as a callback
2244
- or a tuple with IdleConf config-type, section, and
2245
- option names used in the default callback.
2246
-
2247
- Return:
2248
- Tk variable instance.
2249
- """
2250
- if isinstance(callback, tuple):
2251
- callback = self.make_callback(var, callback)
2252
- self.untraced.append((var, callback))
2253
- return var
2254
-
2255
- @staticmethod
2256
- def make_callback(var, config):
2257
- "Return default callback function to add values to changes instance."
2258
- def default_callback(*params):
2259
- "Add config values to changes instance."
2260
- changes.add_option(*config, var.get())
2261
- return default_callback
2262
-
2263
- def attach(self):
2264
- "Attach callback to all vars that are not traced."
2265
- while self.untraced:
2266
- var, callback = self.untraced.pop()
2267
- var.trace_add('write', callback)
2268
- self.traced.append((var, callback))
2269
-
2270
- def detach(self):
2271
- "Remove callback from traced vars."
2272
- while self.traced:
2273
- var, callback = self.traced.pop()
2274
- var.trace_remove('write', var.trace_info()[0][1])
2275
- self.untraced.append((var, callback))
2276
-
2277
-
2278
- tracers = VarTrace()
2279
-
2280
- help_common = '''\
2281
- When you click either the Apply or Ok buttons, settings in this
2282
- dialog that are different from IDLE's default are saved in
2283
- a .idlerc directory in your home directory. Except as noted,
2284
- these changes apply to all versions of IDLE installed on this
2285
- machine. [Cancel] only cancels changes made since the last save.
2286
- '''
2287
- help_pages = {
2288
- 'Fonts/Tabs':'''
2289
- Font sample: This shows what a selection of Basic Multilingual Plane
2290
- unicode characters look like for the current font selection. If the
2291
- selected font does not define a character, Tk attempts to find another
2292
- font that does. Substitute glyphs depend on what is available on a
2293
- particular system and will not necessarily have the same size as the
2294
- font selected. Line contains 20 characters up to Devanagari, 14 for
2295
- Tamil, and 10 for East Asia.
2296
-
2297
- Hebrew and Arabic letters should display right to left, starting with
2298
- alef, \u05d0 and \u0627. Arabic digits display left to right. The
2299
- Devanagari and Tamil lines start with digits. The East Asian lines
2300
- are Chinese digits, Chinese Hanzi, Korean Hangul, and Japanese
2301
- Hiragana and Katakana.
2302
-
2303
- You can edit the font sample. Changes remain until IDLE is closed.
2304
- ''',
2305
- 'Highlights': '''
2306
- Highlighting:
2307
- The IDLE Dark color theme is new in October 2015. It can only
2308
- be used with older IDLE releases if it is saved as a custom
2309
- theme, with a different name.
2310
- ''',
2311
- 'Keys': '''
2312
- Keys:
2313
- The IDLE Modern Unix key set is new in June 2016. It can only
2314
- be used with older IDLE releases if it is saved as a custom
2315
- key set, with a different name.
2316
- ''',
2317
- 'General': '''
2318
- General:
2319
-
2320
- AutoComplete: Popupwait is milliseconds to wait after key char, without
2321
- cursor movement, before popping up completion box. Key char is '.' after
2322
- identifier or a '/' (or '\\' on Windows) within a string.
2323
-
2324
- FormatParagraph: Max-width is max chars in lines after re-formatting.
2325
- Use with paragraphs in both strings and comment blocks.
2326
-
2327
- ParenMatch: Style indicates what is highlighted when closer is entered:
2328
- 'opener' - opener '({[' corresponding to closer; 'parens' - both chars;
2329
- 'expression' (default) - also everything in between. Flash-delay is how
2330
- long to highlight if cursor is not moved (0 means forever).
2331
-
2332
- CodeContext: Maxlines is the maximum number of code context lines to
2333
- display when Code Context is turned on for an editor window.
2334
-
2335
- Shell Preferences: Auto-Squeeze Min. Lines is the minimum number of lines
2336
- of output to automatically "squeeze".
2337
- ''',
2338
- 'Extensions': '''
2339
- ZzDummy: This extension is provided as an example for how to create and
2340
- use an extension. Enable indicates whether the extension is active or
2341
- not; likewise enable_editor and enable_shell indicate which windows it
2342
- will be active on. For this extension, z-text is the text that will be
2343
- inserted at or removed from the beginning of the lines of selected text,
2344
- or the current line if no selection.
2345
- ''',
2346
- }
2347
-
2348
-
2349
- def is_int(s):
2350
- "Return 's is blank or represents an int'"
2351
- if not s:
2352
- return True
2353
- try:
2354
- int(s)
2355
- return True
2356
- except ValueError:
2357
- return False
2358
-
2359
-
2360
- class VerticalScrolledFrame(Frame):
2361
- """A pure Tkinter vertically scrollable frame.
2362
-
2363
- * Use the 'interior' attribute to place widgets inside the scrollable frame
2364
- * Construct and pack/place/grid normally
2365
- * This frame only allows vertical scrolling
2366
- """
2367
- def __init__(self, parent, *args, **kw):
2368
- Frame.__init__(self, parent, *args, **kw)
2369
-
2370
- # Create a canvas object and a vertical scrollbar for scrolling it.
2371
- vscrollbar = Scrollbar(self, orient=VERTICAL)
2372
- vscrollbar.pack(fill=Y, side=RIGHT, expand=FALSE)
2373
- canvas = Canvas(self, borderwidth=0, highlightthickness=0,
2374
- yscrollcommand=vscrollbar.set, width=240)
2375
- canvas.pack(side=LEFT, fill=BOTH, expand=TRUE)
2376
- vscrollbar.config(command=canvas.yview)
2377
-
2378
- # Reset the view.
2379
- canvas.xview_moveto(0)
2380
- canvas.yview_moveto(0)
2381
-
2382
- # Create a frame inside the canvas which will be scrolled with it.
2383
- self.interior = interior = Frame(canvas)
2384
- interior_id = canvas.create_window(0, 0, window=interior, anchor=NW)
2385
-
2386
- # Track changes to the canvas and frame width and sync them,
2387
- # also updating the scrollbar.
2388
- def _configure_interior(event):
2389
- # Update the scrollbars to match the size of the inner frame.
2390
- size = (interior.winfo_reqwidth(), interior.winfo_reqheight())
2391
- canvas.config(scrollregion="0 0 %s %s" % size)
2392
- interior.bind('<Configure>', _configure_interior)
2393
-
2394
- def _configure_canvas(event):
2395
- if interior.winfo_reqwidth() != canvas.winfo_width():
2396
- # Update the inner frame's width to fill the canvas.
2397
- canvas.itemconfigure(interior_id, width=canvas.winfo_width())
2398
- canvas.bind('<Configure>', _configure_canvas)
2399
-
2400
- return
2401
-
2402
-
2403
- if __name__ == '__main__':
2404
- from unittest import main
2405
- main('idlelib.idle_test.test_configdialog', verbosity=2, exit=False)
2406
-
2407
- from idlelib.idle_test.htest import run
2408
- run(ConfigDialog)