@simplexai/localmodels-darwin-arm64 0.1.0-dev.31.build.gitb5579b4b26f273bf03468c6aedf61b327fa6c245 → 0.1.0-dev.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (583) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +10 -582
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/METADATA +1 -1
  5. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/RECORD +7 -7
  6. package/package.json +1 -1
  7. package/tool.json +1 -1
  8. package/python/bin/2to3 +0 -7
  9. package/python/bin/2to3-3.12 +0 -7
  10. package/python/bin/idle3 +0 -7
  11. package/python/bin/idle3.12 +0 -7
  12. package/python/bin/pip +0 -8
  13. package/python/bin/pip3 +0 -8
  14. package/python/bin/pip3.12 +0 -8
  15. package/python/bin/pydoc3 +0 -7
  16. package/python/bin/pydoc3.12 +0 -7
  17. package/python/bin/python +0 -0
  18. package/python/bin/python3 +0 -0
  19. package/python/bin/python3-config +0 -76
  20. package/python/bin/python3.12-config +0 -76
  21. package/python/include/python3.12/Python.h +0 -109
  22. package/python/include/python3.12/abstract.h +0 -899
  23. package/python/include/python3.12/bltinmodule.h +0 -14
  24. package/python/include/python3.12/boolobject.h +0 -42
  25. package/python/include/python3.12/bytearrayobject.h +0 -44
  26. package/python/include/python3.12/bytesobject.h +0 -69
  27. package/python/include/python3.12/ceval.h +0 -168
  28. package/python/include/python3.12/codecs.h +0 -248
  29. package/python/include/python3.12/compile.h +0 -22
  30. package/python/include/python3.12/complexobject.h +0 -30
  31. package/python/include/python3.12/cpython/abstract.h +0 -206
  32. package/python/include/python3.12/cpython/bytearrayobject.h +0 -34
  33. package/python/include/python3.12/cpython/bytesobject.h +0 -133
  34. package/python/include/python3.12/cpython/cellobject.h +0 -44
  35. package/python/include/python3.12/cpython/ceval.h +0 -35
  36. package/python/include/python3.12/cpython/classobject.h +0 -71
  37. package/python/include/python3.12/cpython/code.h +0 -389
  38. package/python/include/python3.12/cpython/compile.h +0 -69
  39. package/python/include/python3.12/cpython/complexobject.h +0 -44
  40. package/python/include/python3.12/cpython/context.h +0 -78
  41. package/python/include/python3.12/cpython/descrobject.h +0 -64
  42. package/python/include/python3.12/cpython/dictobject.h +0 -118
  43. package/python/include/python3.12/cpython/fileobject.h +0 -19
  44. package/python/include/python3.12/cpython/fileutils.h +0 -8
  45. package/python/include/python3.12/cpython/floatobject.h +0 -27
  46. package/python/include/python3.12/cpython/frameobject.h +0 -29
  47. package/python/include/python3.12/cpython/funcobject.h +0 -190
  48. package/python/include/python3.12/cpython/genobject.h +0 -89
  49. package/python/include/python3.12/cpython/import.h +0 -46
  50. package/python/include/python3.12/cpython/initconfig.h +0 -256
  51. package/python/include/python3.12/cpython/interpreteridobject.h +0 -11
  52. package/python/include/python3.12/cpython/listobject.h +0 -47
  53. package/python/include/python3.12/cpython/longintrepr.h +0 -133
  54. package/python/include/python3.12/cpython/longobject.h +0 -100
  55. package/python/include/python3.12/cpython/memoryobject.h +0 -52
  56. package/python/include/python3.12/cpython/methodobject.h +0 -66
  57. package/python/include/python3.12/cpython/modsupport.h +0 -109
  58. package/python/include/python3.12/cpython/object.h +0 -575
  59. package/python/include/python3.12/cpython/objimpl.h +0 -95
  60. package/python/include/python3.12/cpython/odictobject.h +0 -43
  61. package/python/include/python3.12/cpython/picklebufobject.h +0 -31
  62. package/python/include/python3.12/cpython/pthread_stubs.h +0 -88
  63. package/python/include/python3.12/cpython/pyctype.h +0 -39
  64. package/python/include/python3.12/cpython/pydebug.h +0 -38
  65. package/python/include/python3.12/cpython/pyerrors.h +0 -178
  66. package/python/include/python3.12/cpython/pyfpe.h +0 -15
  67. package/python/include/python3.12/cpython/pyframe.h +0 -35
  68. package/python/include/python3.12/cpython/pylifecycle.h +0 -111
  69. package/python/include/python3.12/cpython/pymem.h +0 -98
  70. package/python/include/python3.12/cpython/pystate.h +0 -456
  71. package/python/include/python3.12/cpython/pythonrun.h +0 -121
  72. package/python/include/python3.12/cpython/pythread.h +0 -42
  73. package/python/include/python3.12/cpython/pytime.h +0 -331
  74. package/python/include/python3.12/cpython/setobject.h +0 -72
  75. package/python/include/python3.12/cpython/sysmodule.h +0 -16
  76. package/python/include/python3.12/cpython/traceback.h +0 -16
  77. package/python/include/python3.12/cpython/tupleobject.h +0 -39
  78. package/python/include/python3.12/cpython/unicodeobject.h +0 -976
  79. package/python/include/python3.12/cpython/warnings.h +0 -20
  80. package/python/include/python3.12/cpython/weakrefobject.h +0 -56
  81. package/python/include/python3.12/datetime.h +0 -267
  82. package/python/include/python3.12/descrobject.h +0 -100
  83. package/python/include/python3.12/dictobject.h +0 -97
  84. package/python/include/python3.12/dynamic_annotations.h +0 -499
  85. package/python/include/python3.12/enumobject.h +0 -17
  86. package/python/include/python3.12/errcode.h +0 -38
  87. package/python/include/python3.12/exports.h +0 -36
  88. package/python/include/python3.12/fileobject.h +0 -49
  89. package/python/include/python3.12/fileutils.h +0 -26
  90. package/python/include/python3.12/floatobject.h +0 -54
  91. package/python/include/python3.12/frameobject.h +0 -20
  92. package/python/include/python3.12/genericaliasobject.h +0 -14
  93. package/python/include/python3.12/import.h +0 -98
  94. package/python/include/python3.12/internal/pycore_abstract.h +0 -25
  95. package/python/include/python3.12/internal/pycore_asdl.h +0 -112
  96. package/python/include/python3.12/internal/pycore_ast.h +0 -922
  97. package/python/include/python3.12/internal/pycore_ast_state.h +0 -265
  98. package/python/include/python3.12/internal/pycore_atexit.h +0 -57
  99. package/python/include/python3.12/internal/pycore_atomic.h +0 -557
  100. package/python/include/python3.12/internal/pycore_atomic_funcs.h +0 -94
  101. package/python/include/python3.12/internal/pycore_bitutils.h +0 -186
  102. package/python/include/python3.12/internal/pycore_blocks_output_buffer.h +0 -317
  103. package/python/include/python3.12/internal/pycore_bytes_methods.h +0 -73
  104. package/python/include/python3.12/internal/pycore_bytesobject.h +0 -47
  105. package/python/include/python3.12/internal/pycore_call.h +0 -133
  106. package/python/include/python3.12/internal/pycore_ceval.h +0 -164
  107. package/python/include/python3.12/internal/pycore_ceval_state.h +0 -103
  108. package/python/include/python3.12/internal/pycore_code.h +0 -496
  109. package/python/include/python3.12/internal/pycore_compile.h +0 -118
  110. package/python/include/python3.12/internal/pycore_condvar.h +0 -99
  111. package/python/include/python3.12/internal/pycore_context.h +0 -71
  112. package/python/include/python3.12/internal/pycore_descrobject.h +0 -26
  113. package/python/include/python3.12/internal/pycore_dict.h +0 -199
  114. package/python/include/python3.12/internal/pycore_dict_state.h +0 -50
  115. package/python/include/python3.12/internal/pycore_dtoa.h +0 -69
  116. package/python/include/python3.12/internal/pycore_emscripten_signal.h +0 -25
  117. package/python/include/python3.12/internal/pycore_exceptions.h +0 -37
  118. package/python/include/python3.12/internal/pycore_faulthandler.h +0 -99
  119. package/python/include/python3.12/internal/pycore_fileutils.h +0 -292
  120. package/python/include/python3.12/internal/pycore_fileutils_windows.h +0 -98
  121. package/python/include/python3.12/internal/pycore_floatobject.h +0 -71
  122. package/python/include/python3.12/internal/pycore_flowgraph.h +0 -120
  123. package/python/include/python3.12/internal/pycore_format.h +0 -27
  124. package/python/include/python3.12/internal/pycore_frame.h +0 -283
  125. package/python/include/python3.12/internal/pycore_function.h +0 -26
  126. package/python/include/python3.12/internal/pycore_gc.h +0 -211
  127. package/python/include/python3.12/internal/pycore_genobject.h +0 -49
  128. package/python/include/python3.12/internal/pycore_getopt.h +0 -22
  129. package/python/include/python3.12/internal/pycore_gil.h +0 -50
  130. package/python/include/python3.12/internal/pycore_global_objects.h +0 -105
  131. package/python/include/python3.12/internal/pycore_global_objects_fini_generated.h +0 -1517
  132. package/python/include/python3.12/internal/pycore_global_strings.h +0 -777
  133. package/python/include/python3.12/internal/pycore_hamt.h +0 -134
  134. package/python/include/python3.12/internal/pycore_hashtable.h +0 -149
  135. package/python/include/python3.12/internal/pycore_import.h +0 -183
  136. package/python/include/python3.12/internal/pycore_initconfig.h +0 -179
  137. package/python/include/python3.12/internal/pycore_instruments.h +0 -106
  138. package/python/include/python3.12/internal/pycore_interp.h +0 -275
  139. package/python/include/python3.12/internal/pycore_intrinsics.h +0 -32
  140. package/python/include/python3.12/internal/pycore_list.h +0 -83
  141. package/python/include/python3.12/internal/pycore_long.h +0 -258
  142. package/python/include/python3.12/internal/pycore_memoryobject.h +0 -18
  143. package/python/include/python3.12/internal/pycore_moduleobject.h +0 -45
  144. package/python/include/python3.12/internal/pycore_namespace.h +0 -20
  145. package/python/include/python3.12/internal/pycore_object.h +0 -455
  146. package/python/include/python3.12/internal/pycore_object_state.h +0 -42
  147. package/python/include/python3.12/internal/pycore_obmalloc.h +0 -700
  148. package/python/include/python3.12/internal/pycore_obmalloc_init.h +0 -73
  149. package/python/include/python3.12/internal/pycore_opcode.h +0 -587
  150. package/python/include/python3.12/internal/pycore_opcode_utils.h +0 -92
  151. package/python/include/python3.12/internal/pycore_parser.h +0 -66
  152. package/python/include/python3.12/internal/pycore_pathconfig.h +0 -24
  153. package/python/include/python3.12/internal/pycore_pyarena.h +0 -64
  154. package/python/include/python3.12/internal/pycore_pyerrors.h +0 -129
  155. package/python/include/python3.12/internal/pycore_pyhash.h +0 -40
  156. package/python/include/python3.12/internal/pycore_pylifecycle.h +0 -99
  157. package/python/include/python3.12/internal/pycore_pymath.h +0 -205
  158. package/python/include/python3.12/internal/pycore_pymem.h +0 -98
  159. package/python/include/python3.12/internal/pycore_pymem_init.h +0 -85
  160. package/python/include/python3.12/internal/pycore_pystate.h +0 -180
  161. package/python/include/python3.12/internal/pycore_pythread.h +0 -81
  162. package/python/include/python3.12/internal/pycore_range.h +0 -21
  163. package/python/include/python3.12/internal/pycore_runtime.h +0 -235
  164. package/python/include/python3.12/internal/pycore_runtime_init.h +0 -188
  165. package/python/include/python3.12/internal/pycore_runtime_init_generated.h +0 -1511
  166. package/python/include/python3.12/internal/pycore_signal.h +0 -98
  167. package/python/include/python3.12/internal/pycore_sliceobject.h +0 -22
  168. package/python/include/python3.12/internal/pycore_strhex.h +0 -36
  169. package/python/include/python3.12/internal/pycore_structseq.h +0 -39
  170. package/python/include/python3.12/internal/pycore_symtable.h +0 -160
  171. package/python/include/python3.12/internal/pycore_sysmodule.h +0 -34
  172. package/python/include/python3.12/internal/pycore_time.h +0 -25
  173. package/python/include/python3.12/internal/pycore_token.h +0 -108
  174. package/python/include/python3.12/internal/pycore_traceback.h +0 -101
  175. package/python/include/python3.12/internal/pycore_tracemalloc.h +0 -123
  176. package/python/include/python3.12/internal/pycore_tuple.h +0 -79
  177. package/python/include/python3.12/internal/pycore_typeobject.h +0 -151
  178. package/python/include/python3.12/internal/pycore_typevarobject.h +0 -24
  179. package/python/include/python3.12/internal/pycore_ucnhash.h +0 -34
  180. package/python/include/python3.12/internal/pycore_unicodeobject.h +0 -86
  181. package/python/include/python3.12/internal/pycore_unicodeobject_generated.h +0 -2832
  182. package/python/include/python3.12/internal/pycore_unionobject.h +0 -23
  183. package/python/include/python3.12/internal/pycore_warnings.h +0 -29
  184. package/python/include/python3.12/interpreteridobject.h +0 -17
  185. package/python/include/python3.12/intrcheck.h +0 -30
  186. package/python/include/python3.12/iterobject.h +0 -27
  187. package/python/include/python3.12/listobject.h +0 -52
  188. package/python/include/python3.12/longobject.h +0 -108
  189. package/python/include/python3.12/marshal.h +0 -31
  190. package/python/include/python3.12/memoryobject.h +0 -34
  191. package/python/include/python3.12/methodobject.h +0 -132
  192. package/python/include/python3.12/modsupport.h +0 -168
  193. package/python/include/python3.12/moduleobject.h +0 -119
  194. package/python/include/python3.12/object.h +0 -993
  195. package/python/include/python3.12/objimpl.h +0 -234
  196. package/python/include/python3.12/opcode.h +0 -271
  197. package/python/include/python3.12/osdefs.h +0 -51
  198. package/python/include/python3.12/osmodule.h +0 -17
  199. package/python/include/python3.12/patchlevel.h +0 -35
  200. package/python/include/python3.12/py_curses.h +0 -99
  201. package/python/include/python3.12/pybuffer.h +0 -145
  202. package/python/include/python3.12/pycapsule.h +0 -59
  203. package/python/include/python3.12/pyconfig.h +0 -1943
  204. package/python/include/python3.12/pydtrace.h +0 -59
  205. package/python/include/python3.12/pyerrors.h +0 -337
  206. package/python/include/python3.12/pyexpat.h +0 -70
  207. package/python/include/python3.12/pyframe.h +0 -26
  208. package/python/include/python3.12/pyhash.h +0 -146
  209. package/python/include/python3.12/pylifecycle.h +0 -78
  210. package/python/include/python3.12/pymacconfig.h +0 -99
  211. package/python/include/python3.12/pymacro.h +0 -172
  212. package/python/include/python3.12/pymath.h +0 -62
  213. package/python/include/python3.12/pymem.h +0 -104
  214. package/python/include/python3.12/pyport.h +0 -782
  215. package/python/include/python3.12/pystate.h +0 -132
  216. package/python/include/python3.12/pystats.h +0 -110
  217. package/python/include/python3.12/pystrcmp.h +0 -23
  218. package/python/include/python3.12/pystrtod.h +0 -46
  219. package/python/include/python3.12/pythonrun.h +0 -49
  220. package/python/include/python3.12/pythread.h +0 -135
  221. package/python/include/python3.12/pytypedefs.h +0 -30
  222. package/python/include/python3.12/rangeobject.h +0 -27
  223. package/python/include/python3.12/setobject.h +0 -49
  224. package/python/include/python3.12/sliceobject.h +0 -65
  225. package/python/include/python3.12/structmember.h +0 -56
  226. package/python/include/python3.12/structseq.h +0 -49
  227. package/python/include/python3.12/sysmodule.h +0 -54
  228. package/python/include/python3.12/traceback.h +0 -26
  229. package/python/include/python3.12/tracemalloc.h +0 -77
  230. package/python/include/python3.12/tupleobject.h +0 -46
  231. package/python/include/python3.12/typeslots.h +0 -88
  232. package/python/include/python3.12/unicodeobject.h +0 -1020
  233. package/python/include/python3.12/warnings.h +0 -45
  234. package/python/include/python3.12/weakrefobject.h +0 -42
  235. package/python/lib/itcl4.3.8/itcl.tcl +0 -151
  236. package/python/lib/itcl4.3.8/itclConfig.sh +0 -67
  237. package/python/lib/itcl4.3.8/itclHullCmds.tcl +0 -562
  238. package/python/lib/itcl4.3.8/itclWidget.tcl +0 -447
  239. package/python/lib/itcl4.3.8/libitcl4.3.8.dylib +0 -0
  240. package/python/lib/itcl4.3.8/libitclstub.a +0 -0
  241. package/python/lib/itcl4.3.8/libitclstub4.3.8.a +0 -0
  242. package/python/lib/itcl4.3.8/libtcl9itcl4.3.8.dylib +0 -0
  243. package/python/lib/itcl4.3.8/pkgIndex.tcl +0 -14
  244. package/python/lib/libpython3.12.dylib +0 -0
  245. package/python/lib/libtcl9.0.dylib +0 -0
  246. package/python/lib/libtcl9tk9.0.dylib +0 -0
  247. package/python/lib/pkgconfig/python-3.12-embed.pc +0 -13
  248. package/python/lib/pkgconfig/python-3.12.pc +0 -13
  249. package/python/lib/pkgconfig/python3-embed.pc +0 -13
  250. package/python/lib/pkgconfig/python3.pc +0 -13
  251. package/python/lib/python3.12/config-3.12-darwin/Makefile +0 -3273
  252. package/python/lib/python3.12/config-3.12-darwin/Setup +0 -303
  253. package/python/lib/python3.12/config-3.12-darwin/Setup.bootstrap +0 -36
  254. package/python/lib/python3.12/config-3.12-darwin/Setup.local +0 -19
  255. package/python/lib/python3.12/config-3.12-darwin/Setup.stdlib +0 -183
  256. package/python/lib/python3.12/config-3.12-darwin/config.c +0 -246
  257. package/python/lib/python3.12/config-3.12-darwin/config.c.in +0 -71
  258. package/python/lib/python3.12/config-3.12-darwin/install-sh +0 -541
  259. package/python/lib/python3.12/config-3.12-darwin/makesetup +0 -353
  260. package/python/lib/python3.12/config-3.12-darwin/python-config.py +0 -76
  261. package/python/lib/python3.12/config-3.12-darwin/python.o +0 -0
  262. package/python/lib/python3.12/idlelib/CREDITS.txt +0 -47
  263. package/python/lib/python3.12/idlelib/ChangeLog +0 -1591
  264. package/python/lib/python3.12/idlelib/HISTORY.txt +0 -296
  265. package/python/lib/python3.12/idlelib/Icons/README.txt +0 -51
  266. package/python/lib/python3.12/idlelib/Icons/folder.gif +0 -0
  267. package/python/lib/python3.12/idlelib/Icons/idle.ico +0 -0
  268. package/python/lib/python3.12/idlelib/Icons/idle_16.gif +0 -0
  269. package/python/lib/python3.12/idlelib/Icons/idle_16.png +0 -0
  270. package/python/lib/python3.12/idlelib/Icons/idle_256.png +0 -0
  271. package/python/lib/python3.12/idlelib/Icons/idle_32.gif +0 -0
  272. package/python/lib/python3.12/idlelib/Icons/idle_32.png +0 -0
  273. package/python/lib/python3.12/idlelib/Icons/idle_48.gif +0 -0
  274. package/python/lib/python3.12/idlelib/Icons/idle_48.png +0 -0
  275. package/python/lib/python3.12/idlelib/Icons/minusnode.gif +0 -0
  276. package/python/lib/python3.12/idlelib/Icons/openfolder.gif +0 -0
  277. package/python/lib/python3.12/idlelib/Icons/plusnode.gif +0 -0
  278. package/python/lib/python3.12/idlelib/Icons/python.gif +0 -0
  279. package/python/lib/python3.12/idlelib/Icons/tk.gif +0 -0
  280. package/python/lib/python3.12/idlelib/NEWS2x.txt +0 -660
  281. package/python/lib/python3.12/idlelib/News3.txt +0 -1390
  282. package/python/lib/python3.12/idlelib/README.txt +0 -290
  283. package/python/lib/python3.12/idlelib/TODO.txt +0 -210
  284. package/python/lib/python3.12/idlelib/__init__.py +0 -10
  285. package/python/lib/python3.12/idlelib/__main__.py +0 -7
  286. package/python/lib/python3.12/idlelib/autocomplete.py +0 -228
  287. package/python/lib/python3.12/idlelib/autocomplete_w.py +0 -498
  288. package/python/lib/python3.12/idlelib/autoexpand.py +0 -96
  289. package/python/lib/python3.12/idlelib/browser.py +0 -260
  290. package/python/lib/python3.12/idlelib/calltip.py +0 -205
  291. package/python/lib/python3.12/idlelib/calltip_w.py +0 -202
  292. package/python/lib/python3.12/idlelib/codecontext.py +0 -270
  293. package/python/lib/python3.12/idlelib/colorizer.py +0 -384
  294. package/python/lib/python3.12/idlelib/config-extensions.def +0 -62
  295. package/python/lib/python3.12/idlelib/config-highlight.def +0 -105
  296. package/python/lib/python3.12/idlelib/config-keys.def +0 -309
  297. package/python/lib/python3.12/idlelib/config-main.def +0 -93
  298. package/python/lib/python3.12/idlelib/config.py +0 -917
  299. package/python/lib/python3.12/idlelib/config_key.py +0 -354
  300. package/python/lib/python3.12/idlelib/configdialog.py +0 -2408
  301. package/python/lib/python3.12/idlelib/debugger.py +0 -602
  302. package/python/lib/python3.12/idlelib/debugger_r.py +0 -390
  303. package/python/lib/python3.12/idlelib/debugobj.py +0 -146
  304. package/python/lib/python3.12/idlelib/debugobj_r.py +0 -41
  305. package/python/lib/python3.12/idlelib/delegator.py +0 -34
  306. package/python/lib/python3.12/idlelib/dynoption.py +0 -57
  307. package/python/lib/python3.12/idlelib/editor.py +0 -1767
  308. package/python/lib/python3.12/idlelib/extend.txt +0 -83
  309. package/python/lib/python3.12/idlelib/filelist.py +0 -132
  310. package/python/lib/python3.12/idlelib/format.py +0 -426
  311. package/python/lib/python3.12/idlelib/grep.py +0 -223
  312. package/python/lib/python3.12/idlelib/help.html +0 -805
  313. package/python/lib/python3.12/idlelib/help.py +0 -297
  314. package/python/lib/python3.12/idlelib/help_about.py +0 -211
  315. package/python/lib/python3.12/idlelib/history.py +0 -106
  316. package/python/lib/python3.12/idlelib/hyperparser.py +0 -312
  317. package/python/lib/python3.12/idlelib/idle.bat +0 -4
  318. package/python/lib/python3.12/idlelib/idle.py +0 -14
  319. package/python/lib/python3.12/idlelib/idle.pyw +0 -17
  320. package/python/lib/python3.12/idlelib/iomenu.py +0 -441
  321. package/python/lib/python3.12/idlelib/macosx.py +0 -278
  322. package/python/lib/python3.12/idlelib/mainmenu.py +0 -126
  323. package/python/lib/python3.12/idlelib/multicall.py +0 -451
  324. package/python/lib/python3.12/idlelib/outwin.py +0 -188
  325. package/python/lib/python3.12/idlelib/parenmatch.py +0 -183
  326. package/python/lib/python3.12/idlelib/pathbrowser.py +0 -107
  327. package/python/lib/python3.12/idlelib/percolator.py +0 -120
  328. package/python/lib/python3.12/idlelib/pyparse.py +0 -589
  329. package/python/lib/python3.12/idlelib/pyshell.py +0 -1694
  330. package/python/lib/python3.12/idlelib/query.py +0 -392
  331. package/python/lib/python3.12/idlelib/redirector.py +0 -173
  332. package/python/lib/python3.12/idlelib/replace.py +0 -300
  333. package/python/lib/python3.12/idlelib/rpc.py +0 -635
  334. package/python/lib/python3.12/idlelib/run.py +0 -646
  335. package/python/lib/python3.12/idlelib/runscript.py +0 -213
  336. package/python/lib/python3.12/idlelib/scrolledlist.py +0 -151
  337. package/python/lib/python3.12/idlelib/search.py +0 -165
  338. package/python/lib/python3.12/idlelib/searchbase.py +0 -210
  339. package/python/lib/python3.12/idlelib/searchengine.py +0 -235
  340. package/python/lib/python3.12/idlelib/sidebar.py +0 -544
  341. package/python/lib/python3.12/idlelib/squeezer.py +0 -345
  342. package/python/lib/python3.12/idlelib/stackviewer.py +0 -134
  343. package/python/lib/python3.12/idlelib/statusbar.py +0 -52
  344. package/python/lib/python3.12/idlelib/textview.py +0 -193
  345. package/python/lib/python3.12/idlelib/tooltip.py +0 -190
  346. package/python/lib/python3.12/idlelib/tree.py +0 -509
  347. package/python/lib/python3.12/idlelib/undo.py +0 -367
  348. package/python/lib/python3.12/idlelib/util.py +0 -37
  349. package/python/lib/python3.12/idlelib/window.py +0 -98
  350. package/python/lib/python3.12/idlelib/zoomheight.py +0 -124
  351. package/python/lib/python3.12/idlelib/zzdummy.py +0 -73
  352. package/python/lib/python3.12/lib-dynload/_tkinter.cpython-312-darwin.so +0 -0
  353. package/python/lib/python3.12/tkinter/__init__.py +0 -4682
  354. package/python/lib/python3.12/tkinter/__main__.py +0 -7
  355. package/python/lib/python3.12/tkinter/colorchooser.py +0 -86
  356. package/python/lib/python3.12/tkinter/commondialog.py +0 -53
  357. package/python/lib/python3.12/tkinter/constants.py +0 -110
  358. package/python/lib/python3.12/tkinter/dialog.py +0 -49
  359. package/python/lib/python3.12/tkinter/dnd.py +0 -324
  360. package/python/lib/python3.12/tkinter/filedialog.py +0 -492
  361. package/python/lib/python3.12/tkinter/font.py +0 -239
  362. package/python/lib/python3.12/tkinter/messagebox.py +0 -146
  363. package/python/lib/python3.12/tkinter/scrolledtext.py +0 -56
  364. package/python/lib/python3.12/tkinter/simpledialog.py +0 -441
  365. package/python/lib/python3.12/tkinter/tix.py +0 -1948
  366. package/python/lib/python3.12/tkinter/ttk.py +0 -1640
  367. package/python/lib/python3.12/turtle.py +0 -4207
  368. package/python/lib/python3.12/turtledemo/__init__.py +0 -14
  369. package/python/lib/python3.12/turtledemo/__main__.py +0 -404
  370. package/python/lib/python3.12/turtledemo/bytedesign.py +0 -161
  371. package/python/lib/python3.12/turtledemo/chaos.py +0 -59
  372. package/python/lib/python3.12/turtledemo/clock.py +0 -138
  373. package/python/lib/python3.12/turtledemo/colormixer.py +0 -58
  374. package/python/lib/python3.12/turtledemo/forest.py +0 -108
  375. package/python/lib/python3.12/turtledemo/fractalcurves.py +0 -138
  376. package/python/lib/python3.12/turtledemo/lindenmayer.py +0 -119
  377. package/python/lib/python3.12/turtledemo/minimal_hanoi.py +0 -79
  378. package/python/lib/python3.12/turtledemo/nim.py +0 -226
  379. package/python/lib/python3.12/turtledemo/paint.py +0 -54
  380. package/python/lib/python3.12/turtledemo/peace.py +0 -61
  381. package/python/lib/python3.12/turtledemo/penrose.py +0 -175
  382. package/python/lib/python3.12/turtledemo/planet_and_moon.py +0 -111
  383. package/python/lib/python3.12/turtledemo/rosette.py +0 -65
  384. package/python/lib/python3.12/turtledemo/round_dance.py +0 -86
  385. package/python/lib/python3.12/turtledemo/sorting_animate.py +0 -204
  386. package/python/lib/python3.12/turtledemo/tree.py +0 -62
  387. package/python/lib/python3.12/turtledemo/turtle.cfg +0 -10
  388. package/python/lib/python3.12/turtledemo/two_canvases.py +0 -54
  389. package/python/lib/python3.12/turtledemo/yinyang.py +0 -49
  390. package/python/lib/tcl9/9.0/http-2.10.2.tm +0 -5451
  391. package/python/lib/tcl9/9.0/msgcat-1.7.1.tm +0 -1349
  392. package/python/lib/tcl9/9.0/platform/shell-1.1.4.tm +0 -241
  393. package/python/lib/tcl9/9.0/platform-1.1.0.tm +0 -442
  394. package/python/lib/tcl9/9.0/tcltest-2.5.11.tm +0 -3600
  395. package/python/lib/tcl9.0/auto.tcl +0 -710
  396. package/python/lib/tcl9.0/clock.tcl +0 -2110
  397. package/python/lib/tcl9.0/cookiejar0.2/cookiejar.tcl +0 -746
  398. package/python/lib/tcl9.0/cookiejar0.2/idna.tcl +0 -292
  399. package/python/lib/tcl9.0/cookiejar0.2/pkgIndex.tcl +0 -3
  400. package/python/lib/tcl9.0/cookiejar0.2/public_suffix_list.dat.gz +0 -0
  401. package/python/lib/tcl9.0/encoding/ascii.enc +0 -20
  402. package/python/lib/tcl9.0/encoding/big5.enc +0 -1516
  403. package/python/lib/tcl9.0/encoding/cns11643.enc +0 -1584
  404. package/python/lib/tcl9.0/encoding/cp1250.enc +0 -20
  405. package/python/lib/tcl9.0/encoding/cp1251.enc +0 -20
  406. package/python/lib/tcl9.0/encoding/cp1252.enc +0 -20
  407. package/python/lib/tcl9.0/encoding/cp1253.enc +0 -20
  408. package/python/lib/tcl9.0/encoding/cp1254.enc +0 -20
  409. package/python/lib/tcl9.0/encoding/cp1255.enc +0 -20
  410. package/python/lib/tcl9.0/encoding/cp1256.enc +0 -20
  411. package/python/lib/tcl9.0/encoding/cp1257.enc +0 -20
  412. package/python/lib/tcl9.0/encoding/cp1258.enc +0 -20
  413. package/python/lib/tcl9.0/encoding/cp165.enc +0 -20
  414. package/python/lib/tcl9.0/encoding/cp437.enc +0 -20
  415. package/python/lib/tcl9.0/encoding/cp737.enc +0 -20
  416. package/python/lib/tcl9.0/encoding/cp775.enc +0 -20
  417. package/python/lib/tcl9.0/encoding/cp850.enc +0 -20
  418. package/python/lib/tcl9.0/encoding/cp852.enc +0 -20
  419. package/python/lib/tcl9.0/encoding/cp855.enc +0 -20
  420. package/python/lib/tcl9.0/encoding/cp857.enc +0 -20
  421. package/python/lib/tcl9.0/encoding/cp860.enc +0 -20
  422. package/python/lib/tcl9.0/encoding/cp861.enc +0 -20
  423. package/python/lib/tcl9.0/encoding/cp862.enc +0 -20
  424. package/python/lib/tcl9.0/encoding/cp863.enc +0 -20
  425. package/python/lib/tcl9.0/encoding/cp864.enc +0 -20
  426. package/python/lib/tcl9.0/encoding/cp865.enc +0 -20
  427. package/python/lib/tcl9.0/encoding/cp866.enc +0 -20
  428. package/python/lib/tcl9.0/encoding/cp869.enc +0 -20
  429. package/python/lib/tcl9.0/encoding/cp874.enc +0 -20
  430. package/python/lib/tcl9.0/encoding/cp932.enc +0 -801
  431. package/python/lib/tcl9.0/encoding/cp936.enc +0 -2162
  432. package/python/lib/tcl9.0/encoding/cp949.enc +0 -2128
  433. package/python/lib/tcl9.0/encoding/cp950.enc +0 -1499
  434. package/python/lib/tcl9.0/encoding/dingbats.enc +0 -20
  435. package/python/lib/tcl9.0/encoding/ebcdic.enc +0 -20
  436. package/python/lib/tcl9.0/encoding/euc-cn.enc +0 -1397
  437. package/python/lib/tcl9.0/encoding/euc-jp.enc +0 -1353
  438. package/python/lib/tcl9.0/encoding/euc-kr.enc +0 -1533
  439. package/python/lib/tcl9.0/encoding/gb12345.enc +0 -1414
  440. package/python/lib/tcl9.0/encoding/gb1988.enc +0 -20
  441. package/python/lib/tcl9.0/encoding/gb2312-raw.enc +0 -1380
  442. package/python/lib/tcl9.0/encoding/gb2312.enc +0 -1397
  443. package/python/lib/tcl9.0/encoding/iso2022-jp.enc +0 -12
  444. package/python/lib/tcl9.0/encoding/iso2022-kr.enc +0 -7
  445. package/python/lib/tcl9.0/encoding/iso2022.enc +0 -14
  446. package/python/lib/tcl9.0/encoding/iso8859-1.enc +0 -20
  447. package/python/lib/tcl9.0/encoding/iso8859-10.enc +0 -20
  448. package/python/lib/tcl9.0/encoding/iso8859-11.enc +0 -20
  449. package/python/lib/tcl9.0/encoding/iso8859-13.enc +0 -20
  450. package/python/lib/tcl9.0/encoding/iso8859-14.enc +0 -20
  451. package/python/lib/tcl9.0/encoding/iso8859-15.enc +0 -20
  452. package/python/lib/tcl9.0/encoding/iso8859-16.enc +0 -20
  453. package/python/lib/tcl9.0/encoding/iso8859-2.enc +0 -20
  454. package/python/lib/tcl9.0/encoding/iso8859-3.enc +0 -20
  455. package/python/lib/tcl9.0/encoding/iso8859-4.enc +0 -20
  456. package/python/lib/tcl9.0/encoding/iso8859-5.enc +0 -20
  457. package/python/lib/tcl9.0/encoding/iso8859-6.enc +0 -20
  458. package/python/lib/tcl9.0/encoding/iso8859-7.enc +0 -20
  459. package/python/lib/tcl9.0/encoding/iso8859-8.enc +0 -20
  460. package/python/lib/tcl9.0/encoding/iso8859-9.enc +0 -20
  461. package/python/lib/tcl9.0/encoding/jis0201.enc +0 -20
  462. package/python/lib/tcl9.0/encoding/jis0208.enc +0 -1319
  463. package/python/lib/tcl9.0/encoding/jis0212.enc +0 -1159
  464. package/python/lib/tcl9.0/encoding/koi8-r.enc +0 -20
  465. package/python/lib/tcl9.0/encoding/koi8-ru.enc +0 -20
  466. package/python/lib/tcl9.0/encoding/koi8-t.enc +0 -20
  467. package/python/lib/tcl9.0/encoding/koi8-u.enc +0 -20
  468. package/python/lib/tcl9.0/encoding/ksc5601.enc +0 -1516
  469. package/python/lib/tcl9.0/encoding/macCentEuro.enc +0 -20
  470. package/python/lib/tcl9.0/encoding/macCroatian.enc +0 -20
  471. package/python/lib/tcl9.0/encoding/macCyrillic.enc +0 -20
  472. package/python/lib/tcl9.0/encoding/macDingbats.enc +0 -20
  473. package/python/lib/tcl9.0/encoding/macGreek.enc +0 -20
  474. package/python/lib/tcl9.0/encoding/macIceland.enc +0 -20
  475. package/python/lib/tcl9.0/encoding/macJapan.enc +0 -785
  476. package/python/lib/tcl9.0/encoding/macRoman.enc +0 -20
  477. package/python/lib/tcl9.0/encoding/macRomania.enc +0 -20
  478. package/python/lib/tcl9.0/encoding/macThai.enc +0 -20
  479. package/python/lib/tcl9.0/encoding/macTurkish.enc +0 -20
  480. package/python/lib/tcl9.0/encoding/macUkraine.enc +0 -20
  481. package/python/lib/tcl9.0/encoding/shiftjis.enc +0 -690
  482. package/python/lib/tcl9.0/encoding/symbol.enc +0 -20
  483. package/python/lib/tcl9.0/encoding/tis-620.enc +0 -20
  484. package/python/lib/tcl9.0/foreachline.tcl +0 -25
  485. package/python/lib/tcl9.0/history.tcl +0 -335
  486. package/python/lib/tcl9.0/icu.tcl +0 -145
  487. package/python/lib/tcl9.0/init.tcl +0 -772
  488. package/python/lib/tcl9.0/install.tcl +0 -274
  489. package/python/lib/tcl9.0/opt0.4/optparse.tcl +0 -1060
  490. package/python/lib/tcl9.0/opt0.4/pkgIndex.tcl +0 -12
  491. package/python/lib/tcl9.0/package.tcl +0 -776
  492. package/python/lib/tcl9.0/parray.tcl +0 -28
  493. package/python/lib/tcl9.0/readfile.tcl +0 -23
  494. package/python/lib/tcl9.0/safe.tcl +0 -1459
  495. package/python/lib/tcl9.0/tclAppInit.c +0 -183
  496. package/python/lib/tcl9.0/tclIndex +0 -112
  497. package/python/lib/tcl9.0/tm.tcl +0 -378
  498. package/python/lib/tcl9.0/word.tcl +0 -155
  499. package/python/lib/tcl9.0/writefile.tcl +0 -37
  500. package/python/lib/thread3.0.6/libtcl9thread3.0.6.dylib +0 -0
  501. package/python/lib/thread3.0.6/libthread3.0.6.dylib +0 -0
  502. package/python/lib/thread3.0.6/pkgIndex.tcl +0 -52
  503. package/python/lib/thread3.0.6/ttrace.tcl +0 -943
  504. package/python/lib/tk9.0/bgerror.tcl +0 -282
  505. package/python/lib/tk9.0/button.tcl +0 -782
  506. package/python/lib/tk9.0/choosedir.tcl +0 -310
  507. package/python/lib/tk9.0/clrpick.tcl +0 -696
  508. package/python/lib/tk9.0/comdlg.tcl +0 -322
  509. package/python/lib/tk9.0/console.tcl +0 -1148
  510. package/python/lib/tk9.0/dialog.tcl +0 -175
  511. package/python/lib/tk9.0/entry.tcl +0 -721
  512. package/python/lib/tk9.0/focus.tcl +0 -178
  513. package/python/lib/tk9.0/fontchooser.tcl +0 -512
  514. package/python/lib/tk9.0/iconbadges.tcl +0 -253
  515. package/python/lib/tk9.0/iconlist.tcl +0 -705
  516. package/python/lib/tk9.0/icons.tcl +0 -54
  517. package/python/lib/tk9.0/images/README +0 -7
  518. package/python/lib/tk9.0/images/logo.eps +0 -2091
  519. package/python/lib/tk9.0/images/logo100.gif +0 -0
  520. package/python/lib/tk9.0/images/logo64.gif +0 -0
  521. package/python/lib/tk9.0/images/logoLarge.gif +0 -0
  522. package/python/lib/tk9.0/images/logoMed.gif +0 -0
  523. package/python/lib/tk9.0/images/pwrdLogo.eps +0 -1897
  524. package/python/lib/tk9.0/images/pwrdLogo100.gif +0 -0
  525. package/python/lib/tk9.0/images/pwrdLogo150.gif +0 -0
  526. package/python/lib/tk9.0/images/pwrdLogo175.gif +0 -0
  527. package/python/lib/tk9.0/images/pwrdLogo200.gif +0 -0
  528. package/python/lib/tk9.0/images/pwrdLogo75.gif +0 -0
  529. package/python/lib/tk9.0/images/tai-ku.gif +0 -0
  530. package/python/lib/tk9.0/listbox.tcl +0 -522
  531. package/python/lib/tk9.0/megawidget.tcl +0 -297
  532. package/python/lib/tk9.0/menu.tcl +0 -1376
  533. package/python/lib/tk9.0/mkpsenc.tcl +0 -1488
  534. package/python/lib/tk9.0/msgbox.tcl +0 -454
  535. package/python/lib/tk9.0/optMenu.tcl +0 -43
  536. package/python/lib/tk9.0/palette.tcl +0 -283
  537. package/python/lib/tk9.0/panedwindow.tcl +0 -194
  538. package/python/lib/tk9.0/pkgIndex.tcl +0 -3
  539. package/python/lib/tk9.0/print.tcl +0 -1460
  540. package/python/lib/tk9.0/safetk.tcl +0 -262
  541. package/python/lib/tk9.0/scale.tcl +0 -299
  542. package/python/lib/tk9.0/scaling.tcl +0 -232
  543. package/python/lib/tk9.0/scrlbar.tcl +0 -506
  544. package/python/lib/tk9.0/spinbox.tcl +0 -590
  545. package/python/lib/tk9.0/systray.tcl +0 -483
  546. package/python/lib/tk9.0/tclIndex +0 -252
  547. package/python/lib/tk9.0/tearoff.tcl +0 -155
  548. package/python/lib/tk9.0/text.tcl +0 -1295
  549. package/python/lib/tk9.0/tk.tcl +0 -853
  550. package/python/lib/tk9.0/tkAppInit.c +0 -200
  551. package/python/lib/tk9.0/tkfbox.tcl +0 -1251
  552. package/python/lib/tk9.0/ttk/altTheme.tcl +0 -158
  553. package/python/lib/tk9.0/ttk/aquaTheme.tcl +0 -254
  554. package/python/lib/tk9.0/ttk/button.tcl +0 -83
  555. package/python/lib/tk9.0/ttk/clamTheme.tcl +0 -200
  556. package/python/lib/tk9.0/ttk/classicTheme.tcl +0 -165
  557. package/python/lib/tk9.0/ttk/combobox.tcl +0 -555
  558. package/python/lib/tk9.0/ttk/cursors.tcl +0 -205
  559. package/python/lib/tk9.0/ttk/defaults.tcl +0 -250
  560. package/python/lib/tk9.0/ttk/entry.tcl +0 -678
  561. package/python/lib/tk9.0/ttk/fonts.tcl +0 -152
  562. package/python/lib/tk9.0/ttk/menubutton.tcl +0 -237
  563. package/python/lib/tk9.0/ttk/notebook.tcl +0 -261
  564. package/python/lib/tk9.0/ttk/panedwindow.tcl +0 -89
  565. package/python/lib/tk9.0/ttk/progress.tcl +0 -55
  566. package/python/lib/tk9.0/ttk/scale.tcl +0 -94
  567. package/python/lib/tk9.0/ttk/scrollbar.tcl +0 -119
  568. package/python/lib/tk9.0/ttk/sizegrip.tcl +0 -102
  569. package/python/lib/tk9.0/ttk/spinbox.tcl +0 -204
  570. package/python/lib/tk9.0/ttk/treeview.tcl +0 -464
  571. package/python/lib/tk9.0/ttk/ttk.tcl +0 -220
  572. package/python/lib/tk9.0/ttk/utils.tcl +0 -317
  573. package/python/lib/tk9.0/ttk/vistaTheme.tcl +0 -260
  574. package/python/lib/tk9.0/ttk/winTheme.tcl +0 -123
  575. package/python/lib/tk9.0/ttk/xpTheme.tcl +0 -99
  576. package/python/lib/tk9.0/xmfbox.tcl +0 -982
  577. package/python/share/man/man1/python.1 +0 -630
  578. package/python/share/man/man1/python3.1 +0 -630
  579. package/python/share/man/man1/python3.12.1 +0 -630
  580. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/WHEEL +0 -0
  581. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/entry_points.txt +0 -0
  582. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/NOTICE +0 -0
  583. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -1,805 +0,0 @@
1
- <section id="idle">
2
- <span id="idle-python-editor-and-shell"></span><h1>IDLE — Python editor and shell<a class="headerlink" href="#idle" title="Link to this heading">¶</a></h1>
3
- <p><strong>Source code:</strong> <a class="extlink-source reference external" href="https://github.com/python/cpython/tree/main/Lib/idlelib/">Lib/idlelib/</a></p>
4
- <span class="target" id="index-0"></span><hr class="docutils" />
5
- <p>IDLE is Python’s Integrated Development and Learning Environment.</p>
6
- <p>IDLE has the following features:</p>
7
- <ul class="simple">
8
- <li><p>cross-platform: works mostly the same on Windows, Unix, and macOS</p></li>
9
- <li><p>Python shell window (interactive interpreter) with colorizing
10
- of code input, output, and error messages</p></li>
11
- <li><p>multi-window text editor with multiple undo, Python colorizing,
12
- smart indent, call tips, auto completion, and other features</p></li>
13
- <li><p>search within any window, replace within editor windows, and search
14
- through multiple files (grep)</p></li>
15
- <li><p>debugger with persistent breakpoints, stepping, and viewing
16
- of global and local namespaces</p></li>
17
- <li><p>configuration, browsers, and other dialogs</p></li>
18
- </ul>
19
- <section id="menus">
20
- <h2>Menus<a class="headerlink" href="#menus" title="Link to this heading">¶</a></h2>
21
- <p>IDLE has two main window types, the Shell window and the Editor window. It is
22
- possible to have multiple editor windows simultaneously. On Windows and
23
- Linux, each has its own top menu. Each menu documented below indicates
24
- which window type it is associated with.</p>
25
- <p>Output windows, such as used for Edit =&gt; Find in Files, are a subtype of editor
26
- window. They currently have the same top menu but a different
27
- default title and context menu.</p>
28
- <p>On macOS, there is one application menu. It dynamically changes according
29
- to the window currently selected. It has an IDLE menu, and some entries
30
- described below are moved around to conform to Apple guidelines.</p>
31
- <section id="file-menu-shell-and-editor">
32
- <h3>File menu (Shell and Editor)<a class="headerlink" href="#file-menu-shell-and-editor" title="Link to this heading">¶</a></h3>
33
- <dl class="simple">
34
- <dt>New File</dt><dd><p>Create a new file editing window.</p>
35
- </dd>
36
- <dt>Open…</dt><dd><p>Open an existing file with an Open dialog.</p>
37
- </dd>
38
- <dt>Open Module…</dt><dd><p>Open an existing module (searches sys.path).</p>
39
- </dd>
40
- <dt>Recent Files</dt><dd><p>Open a list of recent files. Click one to open it.</p>
41
- </dd>
42
- </dl>
43
- <dl class="simple" id="index-1">
44
- <dt>Module Browser</dt><dd><p>Show functions, classes, and methods in the current Editor file in a
45
- tree structure. In the shell, open a module first.</p>
46
- </dd>
47
- <dt>Path Browser</dt><dd><p>Show sys.path directories, modules, functions, classes and methods in a
48
- tree structure.</p>
49
- </dd>
50
- <dt>Save</dt><dd><p>Save the current window to the associated file, if there is one. Windows
51
- that have been changed since being opened or last saved have a * before
52
- and after the window title. If there is no associated file,
53
- do Save As instead.</p>
54
- </dd>
55
- <dt>Save As…</dt><dd><p>Save the current window with a Save As dialog. The file saved becomes the
56
- new associated file for the window. (If your file namager is set to hide
57
- extensions, the current extension will be omitted in the file name box.
58
- If the new filename has no ‘.’, ‘.py’ and ‘.txt’ will be added for Python
59
- and text files, except that on macOS Aqua,’.py’ is added for all files.)</p>
60
- </dd>
61
- <dt>Save Copy As…</dt><dd><p>Save the current window to different file without changing the associated
62
- file. (See Save As note above about filename extensions.)</p>
63
- </dd>
64
- <dt>Print Window</dt><dd><p>Print the current window to the default printer.</p>
65
- </dd>
66
- <dt>Close Window</dt><dd><p>Close the current window (if an unsaved editor, ask to save; if an unsaved
67
- Shell, ask to quit execution). Calling <code class="docutils literal notranslate"><span class="pre">exit()</span></code> or <code class="docutils literal notranslate"><span class="pre">close()</span></code> in the Shell
68
- window also closes Shell. If this is the only window, also exit IDLE.</p>
69
- </dd>
70
- <dt>Exit IDLE</dt><dd><p>Close all windows and quit IDLE (ask to save unsaved edit windows).</p>
71
- </dd>
72
- </dl>
73
- </section>
74
- <section id="edit-menu-shell-and-editor">
75
- <h3>Edit menu (Shell and Editor)<a class="headerlink" href="#edit-menu-shell-and-editor" title="Link to this heading">¶</a></h3>
76
- <dl class="simple">
77
- <dt>Undo</dt><dd><p>Undo the last change to the current window. A maximum of 1000 changes may
78
- be undone.</p>
79
- </dd>
80
- <dt>Redo</dt><dd><p>Redo the last undone change to the current window.</p>
81
- </dd>
82
- <dt>Select All</dt><dd><p>Select the entire contents of the current window.</p>
83
- </dd>
84
- <dt>Cut</dt><dd><p>Copy selection into the system-wide clipboard; then delete the selection.</p>
85
- </dd>
86
- <dt>Copy</dt><dd><p>Copy selection into the system-wide clipboard.</p>
87
- </dd>
88
- <dt>Paste</dt><dd><p>Insert contents of the system-wide clipboard into the current window.</p>
89
- </dd>
90
- </dl>
91
- <p>The clipboard functions are also available in context menus.</p>
92
- <dl class="simple">
93
- <dt>Find…</dt><dd><p>Open a search dialog with many options</p>
94
- </dd>
95
- <dt>Find Again</dt><dd><p>Repeat the last search, if there is one.</p>
96
- </dd>
97
- <dt>Find Selection</dt><dd><p>Search for the currently selected string, if there is one.</p>
98
- </dd>
99
- <dt>Find in Files…</dt><dd><p>Open a file search dialog. Put results in a new output window.</p>
100
- </dd>
101
- <dt>Replace…</dt><dd><p>Open a search-and-replace dialog.</p>
102
- </dd>
103
- <dt>Go to Line</dt><dd><p>Move the cursor to the beginning of the line requested and make that
104
- line visible. A request past the end of the file goes to the end.
105
- Clear any selection and update the line and column status.</p>
106
- </dd>
107
- <dt>Show Completions</dt><dd><p>Open a scrollable list allowing selection of existing names. See
108
- <a class="reference internal" href="#completions"><span class="std std-ref">Completions</span></a> in the Editing and navigation section below.</p>
109
- </dd>
110
- <dt>Expand Word</dt><dd><p>Expand a prefix you have typed to match a full word in the same window;
111
- repeat to get a different expansion.</p>
112
- </dd>
113
- <dt>Show Call Tip</dt><dd><p>After an unclosed parenthesis for a function, open a small window with
114
- function parameter hints. See <a class="reference internal" href="#calltips"><span class="std std-ref">Calltips</span></a> in the
115
- Editing and navigation section below.</p>
116
- </dd>
117
- <dt>Show Surrounding Parens</dt><dd><p>Highlight the surrounding parenthesis.</p>
118
- </dd>
119
- </dl>
120
- </section>
121
- <section id="format-menu-editor-window-only">
122
- <span id="format-menu"></span><h3>Format menu (Editor window only)<a class="headerlink" href="#format-menu-editor-window-only" title="Link to this heading">¶</a></h3>
123
- <dl class="simple">
124
- <dt>Format Paragraph</dt><dd><p>Reformat the current blank-line-delimited paragraph in comment block or
125
- multiline string or selected line in a string. All lines in the
126
- paragraph will be formatted to less than N columns, where N defaults to 72.</p>
127
- </dd>
128
- <dt>Indent Region</dt><dd><p>Shift selected lines right by the indent width (default 4 spaces).</p>
129
- </dd>
130
- <dt>Dedent Region</dt><dd><p>Shift selected lines left by the indent width (default 4 spaces).</p>
131
- </dd>
132
- <dt>Comment Out Region</dt><dd><p>Insert ## in front of selected lines.</p>
133
- </dd>
134
- <dt>Uncomment Region</dt><dd><p>Remove leading # or ## from selected lines.</p>
135
- </dd>
136
- <dt>Tabify Region</dt><dd><p>Turn <em>leading</em> stretches of spaces into tabs. (Note: We recommend using
137
- 4 space blocks to indent Python code.)</p>
138
- </dd>
139
- <dt>Untabify Region</dt><dd><p>Turn <em>all</em> tabs into the correct number of spaces.</p>
140
- </dd>
141
- <dt>Toggle Tabs</dt><dd><p>Open a dialog to switch between indenting with spaces and tabs.</p>
142
- </dd>
143
- <dt>New Indent Width</dt><dd><p>Open a dialog to change indent width. The accepted default by the Python
144
- community is 4 spaces.</p>
145
- </dd>
146
- <dt>Strip Trailing Chitespace</dt><dd><p>Remove trailing space and other whitespace characters after the last
147
- non-whitespace character of a line by applying str.rstrip to each line,
148
- including lines within multiline strings. Except for Shell windows,
149
- remove extra newlines at the end of the file.</p>
150
- </dd>
151
- </dl>
152
- </section>
153
- <section id="run-menu-editor-window-only">
154
- <span id="index-2"></span><h3>Run menu (Editor window only)<a class="headerlink" href="#run-menu-editor-window-only" title="Link to this heading">¶</a></h3>
155
- <dl class="simple" id="run-module">
156
- <dt>Run Module</dt><dd><p>Do <a class="reference internal" href="#check-module"><span class="std std-ref">Check Module</span></a>. If no error, restart the shell to clean the
157
- environment, then execute the module. Output is displayed in the Shell
158
- window. Note that output requires use of <code class="docutils literal notranslate"><span class="pre">print</span></code> or <code class="docutils literal notranslate"><span class="pre">write</span></code>.
159
- When execution is complete, the Shell retains focus and displays a prompt.
160
- At this point, one may interactively explore the result of execution.
161
- This is similar to executing a file with <code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">-i</span> <span class="pre">file</span></code> at a command
162
- line.</p>
163
- </dd>
164
- </dl>
165
- <dl class="simple" id="run-custom">
166
- <dt>Run… Customized</dt><dd><p>Same as <a class="reference internal" href="#run-module"><span class="std std-ref">Run Module</span></a>, but run the module with customized
167
- settings. <em>Command Line Arguments</em> extend <a class="reference internal" href="sys.html#sys.argv" title="sys.argv"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.argv</span></code></a> as if passed
168
- on a command line. The module can be run in the Shell without restarting.</p>
169
- </dd>
170
- </dl>
171
- <dl class="simple" id="check-module">
172
- <dt>Check Module</dt><dd><p>Check the syntax of the module currently open in the Editor window. If the
173
- module has not been saved IDLE will either prompt the user to save or
174
- autosave, as selected in the General tab of the Idle Settings dialog. If
175
- there is a syntax error, the approximate location is indicated in the
176
- Editor window.</p>
177
- </dd>
178
- </dl>
179
- <dl class="simple" id="python-shell">
180
- <dt>Python Shell</dt><dd><p>Open or wake up the Python Shell window.</p>
181
- </dd>
182
- </dl>
183
- </section>
184
- <section id="shell-menu-shell-window-only">
185
- <h3>Shell menu (Shell window only)<a class="headerlink" href="#shell-menu-shell-window-only" title="Link to this heading">¶</a></h3>
186
- <dl class="simple">
187
- <dt>View Last Restart</dt><dd><p>Scroll the shell window to the last Shell restart.</p>
188
- </dd>
189
- <dt>Restart Shell</dt><dd><p>Restart the shell to clean the environment and reset display and exception handling.</p>
190
- </dd>
191
- <dt>Previous History</dt><dd><p>Cycle through earlier commands in history which match the current entry.</p>
192
- </dd>
193
- <dt>Next History</dt><dd><p>Cycle through later commands in history which match the current entry.</p>
194
- </dd>
195
- <dt>Interrupt Execution</dt><dd><p>Stop a running program.</p>
196
- </dd>
197
- </dl>
198
- </section>
199
- <section id="debug-menu-shell-window-only">
200
- <h3>Debug menu (Shell window only)<a class="headerlink" href="#debug-menu-shell-window-only" title="Link to this heading">¶</a></h3>
201
- <dl class="simple">
202
- <dt>Go to File/Line</dt><dd><p>Look on the current line. with the cursor, and the line above for a filename
203
- and line number. If found, open the file if not already open, and show the
204
- line. Use this to view source lines referenced in an exception traceback
205
- and lines found by Find in Files. Also available in the context menu of
206
- the Shell window and Output windows.</p>
207
- </dd>
208
- </dl>
209
- <dl class="simple" id="index-3">
210
- <dt>Debugger (toggle)</dt><dd><p>When activated, code entered in the Shell or run from an Editor will run
211
- under the debugger. In the Editor, breakpoints can be set with the context
212
- menu. This feature is still incomplete and somewhat experimental.</p>
213
- </dd>
214
- <dt>Stack Viewer</dt><dd><p>Show the stack traceback of the last exception in a tree widget, with
215
- access to locals and globals.</p>
216
- </dd>
217
- <dt>Auto-open Stack Viewer</dt><dd><p>Toggle automatically opening the stack viewer on an unhandled exception.</p>
218
- </dd>
219
- </dl>
220
- </section>
221
- <section id="options-menu-shell-and-editor">
222
- <h3>Options menu (Shell and Editor)<a class="headerlink" href="#options-menu-shell-and-editor" title="Link to this heading">¶</a></h3>
223
- <dl class="simple">
224
- <dt>Configure IDLE</dt><dd><p>Open a configuration dialog and change preferences for the following:
225
- fonts, indentation, keybindings, text color themes, startup windows and
226
- size, additional help sources, and extensions. On macOS, open the
227
- configuration dialog by selecting Preferences in the application
228
- menu. For more details, see
229
- <a class="reference internal" href="#preferences"><span class="std std-ref">Setting preferences</span></a> under Help and preferences.</p>
230
- </dd>
231
- </dl>
232
- <p>Most configuration options apply to all windows or all future windows.
233
- The option items below only apply to the active window.</p>
234
- <dl class="simple">
235
- <dt>Show/Hide Code Context (Editor Window only)</dt><dd><p>Open a pane at the top of the edit window which shows the block context
236
- of the code which has scrolled above the top of the window. See
237
- <a class="reference internal" href="#code-context"><span class="std std-ref">Code Context</span></a> in the Editing and Navigation section
238
- below.</p>
239
- </dd>
240
- <dt>Show/Hide Line Numbers (Editor Window only)</dt><dd><p>Open a column to the left of the edit window which shows the number
241
- of each line of text. The default is off, which may be changed in the
242
- preferences (see <a class="reference internal" href="#preferences"><span class="std std-ref">Setting preferences</span></a>).</p>
243
- </dd>
244
- <dt>Zoom/Restore Height</dt><dd><p>Toggles the window between normal size and maximum height. The initial size
245
- defaults to 40 lines by 80 chars unless changed on the General tab of the
246
- Configure IDLE dialog. The maximum height for a screen is determined by
247
- momentarily maximizing a window the first time one is zoomed on the screen.
248
- Changing screen settings may invalidate the saved height. This toggle has
249
- no effect when a window is maximized.</p>
250
- </dd>
251
- </dl>
252
- </section>
253
- <section id="window-menu-shell-and-editor">
254
- <h3>Window menu (Shell and Editor)<a class="headerlink" href="#window-menu-shell-and-editor" title="Link to this heading">¶</a></h3>
255
- <p>Lists the names of all open windows; select one to bring it to the foreground
256
- (deiconifying it if necessary).</p>
257
- </section>
258
- <section id="help-menu-shell-and-editor">
259
- <h3>Help menu (Shell and Editor)<a class="headerlink" href="#help-menu-shell-and-editor" title="Link to this heading">¶</a></h3>
260
- <dl class="simple">
261
- <dt>About IDLE</dt><dd><p>Display version, copyright, license, credits, and more.</p>
262
- </dd>
263
- <dt>IDLE Help</dt><dd><p>Display this IDLE document, detailing the menu options, basic editing and
264
- navigation, and other tips.</p>
265
- </dd>
266
- <dt>Python Docs</dt><dd><p>Access local Python documentation, if installed, or start a web browser
267
- and open docs.python.org showing the latest Python documentation.</p>
268
- </dd>
269
- <dt>Turtle Demo</dt><dd><p>Run the turtledemo module with example Python code and turtle drawings.</p>
270
- </dd>
271
- </dl>
272
- <p>Additional help sources may be added here with the Configure IDLE dialog under
273
- the General tab. See the <a class="reference internal" href="#help-sources"><span class="std std-ref">Help sources</span></a> subsection below
274
- for more on Help menu choices.</p>
275
- </section>
276
- <section id="context-menus">
277
- <span id="index-4"></span><h3>Context menus<a class="headerlink" href="#context-menus" title="Link to this heading">¶</a></h3>
278
- <p>Open a context menu by right-clicking in a window (Control-click on macOS).
279
- Context menus have the standard clipboard functions also on the Edit menu.</p>
280
- <dl class="simple">
281
- <dt>Cut</dt><dd><p>Copy selection into the system-wide clipboard; then delete the selection.</p>
282
- </dd>
283
- <dt>Copy</dt><dd><p>Copy selection into the system-wide clipboard.</p>
284
- </dd>
285
- <dt>Paste</dt><dd><p>Insert contents of the system-wide clipboard into the current window.</p>
286
- </dd>
287
- </dl>
288
- <p>Editor windows also have breakpoint functions. Lines with a breakpoint set are
289
- specially marked. Breakpoints only have an effect when running under the
290
- debugger. Breakpoints for a file are saved in the user’s <code class="docutils literal notranslate"><span class="pre">.idlerc</span></code>
291
- directory.</p>
292
- <dl class="simple">
293
- <dt>Set Breakpoint</dt><dd><p>Set a breakpoint on the current line.</p>
294
- </dd>
295
- <dt>Clear Breakpoint</dt><dd><p>Clear the breakpoint on that line.</p>
296
- </dd>
297
- </dl>
298
- <p>Shell and Output windows also have the following.</p>
299
- <dl class="simple">
300
- <dt>Go to file/line</dt><dd><p>Same as in Debug menu.</p>
301
- </dd>
302
- </dl>
303
- <p>The Shell window also has an output squeezing facility explained in the <em>Python
304
- Shell window</em> subsection below.</p>
305
- <dl class="simple">
306
- <dt>Squeeze</dt><dd><p>If the cursor is over an output line, squeeze all the output between
307
- the code above and the prompt below down to a ‘Squeezed text’ label.</p>
308
- </dd>
309
- </dl>
310
- </section>
311
- </section>
312
- <section id="editing-and-navigation">
313
- <span id="id1"></span><h2>Editing and Navigation<a class="headerlink" href="#editing-and-navigation" title="Link to this heading">¶</a></h2>
314
- <section id="editor-windows">
315
- <h3>Editor windows<a class="headerlink" href="#editor-windows" title="Link to this heading">¶</a></h3>
316
- <p>IDLE may open editor windows when it starts, depending on settings
317
- and how you start IDLE. Thereafter, use the File menu. There can be only
318
- one open editor window for a given file.</p>
319
- <p>The title bar contains the name of the file, the full path, and the version
320
- of Python and IDLE running the window. The status bar contains the line
321
- number (‘Ln’) and column number (‘Col’). Line numbers start with 1;
322
- column numbers with 0.</p>
323
- <p>IDLE assumes that files with a known .py* extension contain Python code
324
- and that other files do not. Run Python code with the Run menu.</p>
325
- </section>
326
- <section id="key-bindings">
327
- <h3>Key bindings<a class="headerlink" href="#key-bindings" title="Link to this heading">¶</a></h3>
328
- <p>The IDLE insertion cursor is a thin vertical bar between character
329
- positions. When characters are entered, the insertion cursor and
330
- everything to its right moves right one character and
331
- the new character is entered in the new space.</p>
332
- <p>Several non-character keys move the cursor and possibly
333
- delete characters. Deletion does not puts text on the clipboard,
334
- but IDLE has an undo list. Wherever this doc discusses keys,
335
- ‘C’ refers to the <kbd class="kbd docutils literal notranslate">Control</kbd> key on Windows and
336
- Unix and the <kbd class="kbd docutils literal notranslate">Command</kbd> key on macOS. (And all such discussions
337
- assume that the keys have not been re-bound to something else.)</p>
338
- <ul class="simple">
339
- <li><p>Arrow keys move the cursor one character or line.</p></li>
340
- <li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">LeftArrow</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">RightArrow</kbd></kbd> moves left or right one word.</p></li>
341
- <li><p><kbd class="kbd docutils literal notranslate">Home</kbd> and <kbd class="kbd docutils literal notranslate">End</kbd> go to the beginning or end of the line.</p></li>
342
- <li><p><kbd class="kbd docutils literal notranslate">Page Up</kbd> and <kbd class="kbd docutils literal notranslate">Page Down</kbd> go up or down one screen.</p></li>
343
- <li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">Home</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">End</kbd></kbd> go to beginning or end of the file.</p></li>
344
- <li><p><kbd class="kbd docutils literal notranslate">Backspace</kbd> and <kbd class="kbd docutils literal notranslate">Del</kbd> (or <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">d</kbd></kbd>) delete the previous
345
- or next character.</p></li>
346
- <li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">Backspace</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">Del</kbd></kbd> delete one word left or right.</p></li>
347
- <li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">k</kbd></kbd> deletes (‘kills’) everything to the right.</p></li>
348
- </ul>
349
- <p>Standard keybindings (like <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">c</kbd></kbd> to copy and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">v</kbd></kbd> to paste)
350
- may work. Keybindings are selected in the Configure IDLE dialog.</p>
351
- </section>
352
- <section id="automatic-indentation">
353
- <h3>Automatic indentation<a class="headerlink" href="#automatic-indentation" title="Link to this heading">¶</a></h3>
354
- <p>After a block-opening statement, the next line is indented by 4 spaces (in the
355
- Python Shell window by one tab). After certain keywords (break, return etc.)
356
- the next line is dedented. In leading indentation, <kbd class="kbd docutils literal notranslate">Backspace</kbd> deletes up
357
- to 4 spaces if they are there. <kbd class="kbd docutils literal notranslate">Tab</kbd> inserts spaces (in the Python
358
- Shell window one tab), number depends on Indent width. Currently, tabs
359
- are restricted to four spaces due to Tcl/Tk limitations.</p>
360
- <p>See also the indent/dedent region commands on the
361
- <a class="reference internal" href="#format-menu"><span class="std std-ref">Format menu</span></a>.</p>
362
- </section>
363
- <section id="search-and-replace">
364
- <h3>Search and Replace<a class="headerlink" href="#search-and-replace" title="Link to this heading">¶</a></h3>
365
- <p>Any selection becomes a search target. However, only selections within
366
- a line work because searches are only performed within lines with the
367
- terminal newline removed. If <code class="docutils literal notranslate"><span class="pre">[x]</span> <span class="pre">Regular</span> <span class="pre">expression</span></code> is checked, the
368
- target is interpreted according to the Python re module.</p>
369
- </section>
370
- <section id="completions">
371
- <span id="id2"></span><h3>Completions<a class="headerlink" href="#completions" title="Link to this heading">¶</a></h3>
372
- <p>Completions are supplied, when requested and available, for module
373
- names, attributes of classes or functions, or filenames. Each request
374
- method displays a completion box with existing names. (See tab
375
- completions below for an exception.) For any box, change the name
376
- being completed and the item highlighted in the box by
377
- typing and deleting characters; by hitting <kbd class="kbd docutils literal notranslate">Up</kbd>, <kbd class="kbd docutils literal notranslate">Down</kbd>,
378
- <kbd class="kbd docutils literal notranslate">PageUp</kbd>, <kbd class="kbd docutils literal notranslate">PageDown</kbd>, <kbd class="kbd docutils literal notranslate">Home</kbd>, and <kbd class="kbd docutils literal notranslate">End</kbd> keys;
379
- and by a single click within the box. Close the box with <kbd class="kbd docutils literal notranslate">Escape</kbd>,
380
- <kbd class="kbd docutils literal notranslate">Enter</kbd>, and double <kbd class="kbd docutils literal notranslate">Tab</kbd> keys or clicks outside the box.
381
- A double click within the box selects and closes.</p>
382
- <p>One way to open a box is to type a key character and wait for a
383
- predefined interval. This defaults to 2 seconds; customize it
384
- in the settings dialog. (To prevent auto popups, set the delay to a
385
- large number of milliseconds, such as 100000000.) For imported module
386
- names or class or function attributes, type ‘.’.
387
- For filenames in the root directory, type <a class="reference internal" href="os.html#os.sep" title="os.sep"><code class="xref py py-data docutils literal notranslate"><span class="pre">os.sep</span></code></a> or
388
- <a class="reference internal" href="os.html#os.altsep" title="os.altsep"><code class="xref py py-data docutils literal notranslate"><span class="pre">os.altsep</span></code></a> immediately after an opening quote. (On Windows,
389
- one can specify a drive first.) Move into subdirectories by typing a
390
- directory name and a separator.</p>
391
- <p>Instead of waiting, or after a box is closed, open a completion box
392
- immediately with Show Completions on the Edit menu. The default hot
393
- key is <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">space</kbd></kbd>. If one types a prefix for the desired name
394
- before opening the box, the first match or near miss is made visible.
395
- The result is the same as if one enters a prefix
396
- after the box is displayed. Show Completions after a quote completes
397
- filenames in the current directory instead of a root directory.</p>
398
- <p>Hitting <kbd class="kbd docutils literal notranslate">Tab</kbd> after a prefix usually has the same effect as Show
399
- Completions. (With no prefix, it indents.) However, if there is only
400
- one match to the prefix, that match is immediately added to the editor
401
- text without opening a box.</p>
402
- <p>Invoking ‘Show Completions’, or hitting <kbd class="kbd docutils literal notranslate">Tab</kbd> after a prefix,
403
- outside of a string and without a preceding ‘.’ opens a box with
404
- keywords, builtin names, and available module-level names.</p>
405
- <p>When editing code in an editor (as oppose to Shell), increase the
406
- available module-level names by running your code
407
- and not restarting the Shell thereafter. This is especially useful
408
- after adding imports at the top of a file. This also increases
409
- possible attribute completions.</p>
410
- <p>Completion boxes initially exclude names beginning with ‘_’ or, for
411
- modules, not included in ‘__all__’. The hidden names can be accessed
412
- by typing ‘_’ after ‘.’, either before or after the box is opened.</p>
413
- </section>
414
- <section id="calltips">
415
- <span id="id3"></span><h3>Calltips<a class="headerlink" href="#calltips" title="Link to this heading">¶</a></h3>
416
- <p>A calltip is shown automatically when one types <kbd class="kbd docutils literal notranslate">(</kbd> after the name
417
- of an <em>accessible</em> function. A function name expression may include
418
- dots and subscripts. A calltip remains until it is clicked, the cursor
419
- is moved out of the argument area, or <kbd class="kbd docutils literal notranslate">)</kbd> is typed. Whenever the
420
- cursor is in the argument part of a definition, select Edit and “Show
421
- Call Tip” on the menu or enter its shortcut to display a calltip.</p>
422
- <p>The calltip consists of the function’s signature and docstring up to
423
- the latter’s first blank line or the fifth non-blank line. (Some builtin
424
- functions lack an accessible signature.) A ‘/’ or ‘*’ in the signature
425
- indicates that the preceding or following arguments are passed by
426
- position or name (keyword) only. Details are subject to change.</p>
427
- <p>In Shell, the accessible functions depends on what modules have been
428
- imported into the user process, including those imported by Idle itself,
429
- and which definitions have been run, all since the last restart.</p>
430
- <p>For example, restart the Shell and enter <code class="docutils literal notranslate"><span class="pre">itertools.count(</span></code>. A calltip
431
- appears because Idle imports itertools into the user process for its own
432
- use. (This could change.) Enter <code class="docutils literal notranslate"><span class="pre">turtle.write(</span></code> and nothing appears.
433
- Idle does not itself import turtle. The menu entry and shortcut also do
434
- nothing. Enter <code class="docutils literal notranslate"><span class="pre">import</span> <span class="pre">turtle</span></code>. Thereafter, <code class="docutils literal notranslate"><span class="pre">turtle.write(</span></code>
435
- will display a calltip.</p>
436
- <p>In an editor, import statements have no effect until one runs the file.
437
- One might want to run a file after writing import statements, after
438
- adding function definitions, or after opening an existing file.</p>
439
- </section>
440
- <section id="code-context">
441
- <span id="id4"></span><h3>Code Context<a class="headerlink" href="#code-context" title="Link to this heading">¶</a></h3>
442
- <p>Within an editor window containing Python code, code context can be toggled
443
- in order to show or hide a pane at the top of the window. When shown, this
444
- pane freezes the opening lines for block code, such as those beginning with
445
- <code class="docutils literal notranslate"><span class="pre">class</span></code>, <code class="docutils literal notranslate"><span class="pre">def</span></code>, or <code class="docutils literal notranslate"><span class="pre">if</span></code> keywords, that would have otherwise scrolled
446
- out of view. The size of the pane will be expanded and contracted as needed
447
- to show the all current levels of context, up to the maximum number of
448
- lines defined in the Configure IDLE dialog (which defaults to 15). If there
449
- are no current context lines and the feature is toggled on, a single blank
450
- line will display. Clicking on a line in the context pane will move that
451
- line to the top of the editor.</p>
452
- <p>The text and background colors for the context pane can be configured under
453
- the Highlights tab in the Configure IDLE dialog.</p>
454
- </section>
455
- <section id="shell-window">
456
- <h3>Shell window<a class="headerlink" href="#shell-window" title="Link to this heading">¶</a></h3>
457
- <p>In IDLE’s Shell, enter, edit, and recall complete statements. (Most
458
- consoles and terminals only work with a single physical line at a time).</p>
459
- <p>Submit a single-line statement for execution by hitting <kbd class="kbd docutils literal notranslate">Return</kbd>
460
- with the cursor anywhere on the line. If a line is extended with
461
- Backslash (<kbd class="kbd docutils literal notranslate">\</kbd>), the cursor must be on the last physical line.
462
- Submit a multi-line compound statement by entering a blank line after
463
- the statement.</p>
464
- <p>When one pastes code into Shell, it is not compiled and possibly executed
465
- until one hits <kbd class="kbd docutils literal notranslate">Return</kbd>, as specified above.
466
- One may edit pasted code first.
467
- If one pastes more than one statement into Shell, the result will be a
468
- <a class="reference internal" href="exceptions.html#SyntaxError" title="SyntaxError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">SyntaxError</span></code></a> when multiple statements are compiled as if they were one.</p>
469
- <p>Lines containing <code class="docutils literal notranslate"><span class="pre">RESTART</span></code> mean that the user execution process has been
470
- re-started. This occurs when the user execution process has crashed,
471
- when one requests a restart on the Shell menu, or when one runs code
472
- in an editor window.</p>
473
- <p>The editing features described in previous subsections work when entering
474
- code interactively. IDLE’s Shell window also responds to the following:</p>
475
- <ul class="simple">
476
- <li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">c</kbd></kbd> attempts to interrupt statement execution (but may fail).</p></li>
477
- <li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">d</kbd></kbd> closes Shell if typed at a <code class="docutils literal notranslate"><span class="pre">&gt;&gt;&gt;</span></code> prompt.</p></li>
478
- <li><p><kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">Alt</kbd>-<kbd class="kbd docutils literal notranslate">p</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">Alt</kbd>-<kbd class="kbd docutils literal notranslate">n</kbd></kbd> (<kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">p</kbd></kbd> and <kbd class="kbd compound docutils literal notranslate"><kbd class="kbd docutils literal notranslate">C</kbd>-<kbd class="kbd docutils literal notranslate">n</kbd></kbd> on macOS)
479
- retrieve to the current prompt the previous or next previously
480
- entered statement that matches anything already typed.</p></li>
481
- <li><p><kbd class="kbd docutils literal notranslate">Return</kbd> while the cursor is on any previous statement
482
- appends the latter to anything already typed at the prompt.</p></li>
483
- </ul>
484
- </section>
485
- <section id="text-colors">
486
- <h3>Text colors<a class="headerlink" href="#text-colors" title="Link to this heading">¶</a></h3>
487
- <p>Idle defaults to black on white text, but colors text with special meanings.
488
- For the shell, these are shell output, shell error, user output, and
489
- user error. For Python code, at the shell prompt or in an editor, these are
490
- keywords, builtin class and function names, names following <code class="docutils literal notranslate"><span class="pre">class</span></code> and
491
- <code class="docutils literal notranslate"><span class="pre">def</span></code>, strings, and comments. For any text window, these are the cursor (when
492
- present), found text (when possible), and selected text.</p>
493
- <p>IDLE also highlights the <a class="reference internal" href="../reference/lexical_analysis.html#soft-keywords"><span class="std std-ref">soft keywords</span></a> <a class="reference internal" href="../reference/compound_stmts.html#match"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">match</span></code></a>,
494
- <a class="reference internal" href="../reference/compound_stmts.html#match"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">case</span></code></a>, and <a class="reference internal" href="../reference/compound_stmts.html#wildcard-patterns"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">_</span></code></a> in
495
- pattern-matching statements. However, this highlighting is not perfect and
496
- will be incorrect in some rare cases, including some <code class="docutils literal notranslate"><span class="pre">_</span></code>-s in <code class="docutils literal notranslate"><span class="pre">case</span></code>
497
- patterns.</p>
498
- <p>Text coloring is done in the background, so uncolorized text is occasionally
499
- visible. To change the color scheme, use the Configure IDLE dialog
500
- Highlighting tab. The marking of debugger breakpoint lines in the editor and
501
- text in popups and dialogs is not user-configurable.</p>
502
- </section>
503
- </section>
504
- <section id="startup-and-code-execution">
505
- <h2>Startup and Code Execution<a class="headerlink" href="#startup-and-code-execution" title="Link to this heading">¶</a></h2>
506
- <p>Upon startup with the <code class="docutils literal notranslate"><span class="pre">-s</span></code> option, IDLE will execute the file referenced by
507
- the environment variables <span class="target" id="index-5"></span><code class="xref std std-envvar docutils literal notranslate"><span class="pre">IDLESTARTUP</span></code> or <span class="target" id="index-6"></span><a class="reference internal" href="../using/cmdline.html#envvar-PYTHONSTARTUP"><code class="xref std std-envvar docutils literal notranslate"><span class="pre">PYTHONSTARTUP</span></code></a>.
508
- IDLE first checks for <code class="docutils literal notranslate"><span class="pre">IDLESTARTUP</span></code>; if <code class="docutils literal notranslate"><span class="pre">IDLESTARTUP</span></code> is present the file
509
- referenced is run. If <code class="docutils literal notranslate"><span class="pre">IDLESTARTUP</span></code> is not present, IDLE checks for
510
- <code class="docutils literal notranslate"><span class="pre">PYTHONSTARTUP</span></code>. Files referenced by these environment variables are
511
- convenient places to store functions that are used frequently from the IDLE
512
- shell, or for executing import statements to import common modules.</p>
513
- <p>In addition, <code class="docutils literal notranslate"><span class="pre">Tk</span></code> also loads a startup file if it is present. Note that the
514
- Tk file is loaded unconditionally. This additional file is <code class="docutils literal notranslate"><span class="pre">.Idle.py</span></code> and is
515
- looked for in the user’s home directory. Statements in this file will be
516
- executed in the Tk namespace, so this file is not useful for importing
517
- functions to be used from IDLE’s Python shell.</p>
518
- <section id="command-line-usage">
519
- <h3>Command line usage<a class="headerlink" href="#command-line-usage" title="Link to this heading">¶</a></h3>
520
- <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...
521
-
522
- -c command run command in the shell window
523
- -d enable debugger and open shell window
524
- -e open editor window
525
- -h print help message with legal combinations and exit
526
- -i open shell window
527
- -r file run file in shell window
528
- -s run $IDLESTARTUP or $PYTHONSTARTUP first, in shell window
529
- -t title set title of shell window
530
- - run stdin in shell (- must be last option before args)
531
- </pre></div>
532
- </div>
533
- <p>If there are arguments:</p>
534
- <ul class="simple">
535
- <li><p>If <code class="docutils literal notranslate"><span class="pre">-</span></code>, <code class="docutils literal notranslate"><span class="pre">-c</span></code>, or <code class="docutils literal notranslate"><span class="pre">r</span></code> is used, all arguments are placed in
536
- <code class="docutils literal notranslate"><span class="pre">sys.argv[1:...]</span></code> and <code class="docutils literal notranslate"><span class="pre">sys.argv[0]</span></code> is set to <code class="docutils literal notranslate"><span class="pre">''</span></code>, <code class="docutils literal notranslate"><span class="pre">'-c'</span></code>,
537
- or <code class="docutils literal notranslate"><span class="pre">'-r'</span></code>. No editor window is opened, even if that is the default
538
- set in the Options dialog.</p></li>
539
- <li><p>Otherwise, arguments are files opened for editing and
540
- <code class="docutils literal notranslate"><span class="pre">sys.argv</span></code> reflects the arguments passed to IDLE itself.</p></li>
541
- </ul>
542
- </section>
543
- <section id="startup-failure">
544
- <h3>Startup failure<a class="headerlink" href="#startup-failure" title="Link to this heading">¶</a></h3>
545
- <p>IDLE uses a socket to communicate between the IDLE GUI process and the user
546
- code execution process. A connection must be established whenever the Shell
547
- starts or restarts. (The latter is indicated by a divider line that says
548
- ‘RESTART’). If the user process fails to connect to the GUI process, it
549
- usually displays a <code class="docutils literal notranslate"><span class="pre">Tk</span></code> error box with a ‘cannot connect’ message
550
- that directs the user here. It then exits.</p>
551
- <p>One specific connection failure on Unix systems results from
552
- misconfigured masquerading rules somewhere in a system’s network setup.
553
- When IDLE is started from a terminal, one will see a message starting
554
- with <code class="docutils literal notranslate"><span class="pre">**</span> <span class="pre">Invalid</span> <span class="pre">host:</span></code>.
555
- The valid value is <code class="docutils literal notranslate"><span class="pre">127.0.0.1</span> <span class="pre">(idlelib.rpc.LOCALHOST)</span></code>.
556
- One can diagnose with <code class="docutils literal notranslate"><span class="pre">tcpconnect</span> <span class="pre">-irv</span> <span class="pre">127.0.0.1</span> <span class="pre">6543</span></code> in one
557
- terminal window and <code class="docutils literal notranslate"><span class="pre">tcplisten</span> <span class="pre">&lt;same</span> <span class="pre">args&gt;</span></code> in another.</p>
558
- <p>A common cause of failure is a user-written file with the same name as a
559
- standard library module, such as <em>random.py</em> and <em>tkinter.py</em>. When such a
560
- file is located in the same directory as a file that is about to be run,
561
- IDLE cannot import the stdlib file. The current fix is to rename the
562
- user file.</p>
563
- <p>Though less common than in the past, an antivirus or firewall program may
564
- stop the connection. If the program cannot be taught to allow the
565
- connection, then it must be turned off for IDLE to work. It is safe to
566
- allow this internal connection because no data is visible on external
567
- ports. A similar problem is a network mis-configuration that blocks
568
- connections.</p>
569
- <p>Python installation issues occasionally stop IDLE: multiple versions can
570
- clash, or a single installation might need admin access. If one undo the
571
- clash, or cannot or does not want to run as admin, it might be easiest to
572
- completely remove Python and start over.</p>
573
- <p>A zombie pythonw.exe process could be a problem. On Windows, use Task
574
- Manager to check for one and stop it if there is. Sometimes a restart
575
- initiated by a program crash or Keyboard Interrupt (control-C) may fail
576
- to connect. Dismissing the error box or using Restart Shell on the Shell
577
- menu may fix a temporary problem.</p>
578
- <p>When IDLE first starts, it attempts to read user configuration files in
579
- <code class="docutils literal notranslate"><span class="pre">~/.idlerc/</span></code> (~ is one’s home directory). If there is a problem, an error
580
- message should be displayed. Leaving aside random disk glitches, this can
581
- be prevented by never editing the files by hand. Instead, use the
582
- configuration dialog, under Options. Once there is an error in a user
583
- configuration file, the best solution may be to delete it and start over
584
- with the settings dialog.</p>
585
- <p>If IDLE quits with no message, and it was not started from a console, try
586
- starting it from a console or terminal (<code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">-m</span> <span class="pre">idlelib</span></code>) and see if
587
- this results in an error message.</p>
588
- <p>On Unix-based systems with tcl/tk older than <code class="docutils literal notranslate"><span class="pre">8.6.11</span></code> (see
589
- <code class="docutils literal notranslate"><span class="pre">About</span> <span class="pre">IDLE</span></code>) certain characters of certain fonts can cause
590
- a tk failure with a message to the terminal. This can happen either
591
- if one starts IDLE to edit a file with such a character or later
592
- when entering such a character. If one cannot upgrade tcl/tk,
593
- then re-configure IDLE to use a font that works better.</p>
594
- </section>
595
- <section id="running-user-code">
596
- <h3>Running user code<a class="headerlink" href="#running-user-code" title="Link to this heading">¶</a></h3>
597
- <p>With rare exceptions, the result of executing Python code with IDLE is
598
- intended to be the same as executing the same code by the default method,
599
- directly with Python in a text-mode system console or terminal window.
600
- However, the different interface and operation occasionally affect
601
- visible results. For instance, <code class="docutils literal notranslate"><span class="pre">sys.modules</span></code> starts with more entries,
602
- and <code class="docutils literal notranslate"><span class="pre">threading.active_count()</span></code> returns 2 instead of 1.</p>
603
- <p>By default, IDLE runs user code in a separate OS process rather than in
604
- the user interface process that runs the shell and editor. In the execution
605
- process, it replaces <code class="docutils literal notranslate"><span class="pre">sys.stdin</span></code>, <code class="docutils literal notranslate"><span class="pre">sys.stdout</span></code>, and <code class="docutils literal notranslate"><span class="pre">sys.stderr</span></code>
606
- with objects that get input from and send output to the Shell window.
607
- The original values stored in <code class="docutils literal notranslate"><span class="pre">sys.__stdin__</span></code>, <code class="docutils literal notranslate"><span class="pre">sys.__stdout__</span></code>, and
608
- <code class="docutils literal notranslate"><span class="pre">sys.__stderr__</span></code> are not touched, but may be <code class="docutils literal notranslate"><span class="pre">None</span></code>.</p>
609
- <p>Sending print output from one process to a text widget in another is
610
- slower than printing to a system terminal in the same process.
611
- This has the most effect when printing multiple arguments, as the string
612
- for each argument, each separator, the newline are sent separately.
613
- For development, this is usually not a problem, but if one wants to
614
- print faster in IDLE, format and join together everything one wants
615
- displayed together and then print a single string. Both format strings
616
- and <a class="reference internal" href="stdtypes.html#str.join" title="str.join"><code class="xref py py-meth docutils literal notranslate"><span class="pre">str.join()</span></code></a> can help combine fields and lines.</p>
617
- <p>IDLE’s standard stream replacements are not inherited by subprocesses
618
- created in the execution process, whether directly by user code or by
619
- modules such as multiprocessing. If such subprocess use <code class="docutils literal notranslate"><span class="pre">input</span></code> from
620
- sys.stdin or <code class="docutils literal notranslate"><span class="pre">print</span></code> or <code class="docutils literal notranslate"><span class="pre">write</span></code> to sys.stdout or sys.stderr,
621
- IDLE should be started in a command line window. (On Windows,
622
- use <code class="docutils literal notranslate"><span class="pre">python</span></code> or <code class="docutils literal notranslate"><span class="pre">py</span></code> rather than <code class="docutils literal notranslate"><span class="pre">pythonw</span></code> or <code class="docutils literal notranslate"><span class="pre">pyw</span></code>.)
623
- The secondary subprocess
624
- will then be attached to that window for input and output.</p>
625
- <p>If <code class="docutils literal notranslate"><span class="pre">sys</span></code> is reset by user code, such as with <code class="docutils literal notranslate"><span class="pre">importlib.reload(sys)</span></code>,
626
- IDLE’s changes are lost and input from the keyboard and output to the screen
627
- will not work correctly.</p>
628
- <p>When Shell has the focus, it controls the keyboard and screen. This is
629
- normally transparent, but functions that directly access the keyboard
630
- and screen will not work. These include system-specific functions that
631
- determine whether a key has been pressed and if so, which.</p>
632
- <p>The IDLE code running in the execution process adds frames to the call stack
633
- that would not be there otherwise. IDLE wraps <code class="docutils literal notranslate"><span class="pre">sys.getrecursionlimit</span></code> and
634
- <code class="docutils literal notranslate"><span class="pre">sys.setrecursionlimit</span></code> to reduce the effect of the additional stack
635
- frames.</p>
636
- <p>When user code raises SystemExit either directly or by calling sys.exit,
637
- IDLE returns to a Shell prompt instead of exiting.</p>
638
- </section>
639
- <section id="user-output-in-shell">
640
- <h3>User output in Shell<a class="headerlink" href="#user-output-in-shell" title="Link to this heading">¶</a></h3>
641
- <p>When a program outputs text, the result is determined by the
642
- corresponding output device. When IDLE executes user code, <code class="docutils literal notranslate"><span class="pre">sys.stdout</span></code>
643
- and <code class="docutils literal notranslate"><span class="pre">sys.stderr</span></code> are connected to the display area of IDLE’s Shell. Some of
644
- its features are inherited from the underlying Tk Text widget. Others
645
- are programmed additions. Where it matters, Shell is designed for development
646
- rather than production runs.</p>
647
- <p>For instance, Shell never throws away output. A program that sends unlimited
648
- output to Shell will eventually fill memory, resulting in a memory error.
649
- In contrast, some system text windows only keep the last n lines of output.
650
- A Windows console, for instance, keeps a user-settable 1 to 9999 lines,
651
- with 300 the default.</p>
652
- <p>A Tk Text widget, and hence IDLE’s Shell, displays characters (codepoints) in
653
- the BMP (Basic Multilingual Plane) subset of Unicode. Which characters are
654
- displayed with a proper glyph and which with a replacement box depends on the
655
- operating system and installed fonts. Tab characters cause the following text
656
- to begin after the next tab stop. (They occur every 8 ‘characters’). Newline
657
- characters cause following text to appear on a new line. Other control
658
- characters are ignored or displayed as a space, box, or something else,
659
- depending on the operating system and font. (Moving the text cursor through
660
- such output with arrow keys may exhibit some surprising spacing behavior.)</p>
661
- <div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">s</span> <span class="o">=</span> <span class="s1">&#39;a</span><span class="se">\t</span><span class="s1">b</span><span class="se">\a</span><span class="s1">&lt;</span><span class="se">\x02</span><span class="s1">&gt;&lt;</span><span class="se">\r</span><span class="s1">&gt;</span><span class="se">\b</span><span class="s1">c</span><span class="se">\n</span><span class="s1">d&#39;</span> <span class="c1"># Enter 22 chars.</span>
662
- <span class="gp">&gt;&gt;&gt; </span><span class="nb">len</span><span class="p">(</span><span class="n">s</span><span class="p">)</span>
663
- <span class="go">14</span>
664
- <span class="gp">&gt;&gt;&gt; </span><span class="n">s</span> <span class="c1"># Display repr(s)</span>
665
- <span class="go">&#39;a\tb\x07&lt;\x02&gt;&lt;\r&gt;\x08c\nd&#39;</span>
666
- <span class="gp">&gt;&gt;&gt; </span><span class="nb">print</span><span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">end</span><span class="o">=</span><span class="s1">&#39;&#39;</span><span class="p">)</span> <span class="c1"># Display s as is.</span>
667
- <span class="go"># Result varies by OS and font. Try it.</span>
668
- </pre></div>
669
- </div>
670
- <p>The <code class="docutils literal notranslate"><span class="pre">repr</span></code> function is used for interactive echo of expression
671
- values. It returns an altered version of the input string in which
672
- control codes, some BMP codepoints, and all non-BMP codepoints are
673
- replaced with escape codes. As demonstrated above, it allows one to
674
- identify the characters in a string, regardless of how they are displayed.</p>
675
- <p>Normal and error output are generally kept separate (on separate lines)
676
- from code input and each other. They each get different highlight colors.</p>
677
- <p>For SyntaxError tracebacks, the normal ‘^’ marking where the error was
678
- detected is replaced by coloring the text with an error highlight.
679
- When code run from a file causes other exceptions, one may right click
680
- on a traceback line to jump to the corresponding line in an IDLE editor.
681
- The file will be opened if necessary.</p>
682
- <p>Shell has a special facility for squeezing output lines down to a
683
- ‘Squeezed text’ label. This is done automatically
684
- for output over N lines (N = 50 by default).
685
- N can be changed in the PyShell section of the General
686
- page of the Settings dialog. Output with fewer lines can be squeezed by
687
- right clicking on the output. This can be useful lines long enough to slow
688
- down scrolling.</p>
689
- <p>Squeezed output is expanded in place by double-clicking the label.
690
- It can also be sent to the clipboard or a separate view window by
691
- right-clicking the label.</p>
692
- </section>
693
- <section id="developing-tkinter-applications">
694
- <h3>Developing tkinter applications<a class="headerlink" href="#developing-tkinter-applications" title="Link to this heading">¶</a></h3>
695
- <p>IDLE is intentionally different from standard Python in order to
696
- facilitate development of tkinter programs. Enter <code class="docutils literal notranslate"><span class="pre">import</span> <span class="pre">tkinter</span> <span class="pre">as</span> <span class="pre">tk;</span>
697
- <span class="pre">root</span> <span class="pre">=</span> <span class="pre">tk.Tk()</span></code> in standard Python and nothing appears. Enter the same
698
- in IDLE and a tk window appears. In standard Python, one must also enter
699
- <code class="docutils literal notranslate"><span class="pre">root.update()</span></code> to see the window. IDLE does the equivalent in the
700
- background, about 20 times a second, which is about every 50 milliseconds.
701
- Next enter <code class="docutils literal notranslate"><span class="pre">b</span> <span class="pre">=</span> <span class="pre">tk.Button(root,</span> <span class="pre">text='button');</span> <span class="pre">b.pack()</span></code>. Again,
702
- nothing visibly changes in standard Python until one enters <code class="docutils literal notranslate"><span class="pre">root.update()</span></code>.</p>
703
- <p>Most tkinter programs run <code class="docutils literal notranslate"><span class="pre">root.mainloop()</span></code>, which usually does not
704
- return until the tk app is destroyed. If the program is run with
705
- <code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">-i</span></code> or from an IDLE editor, a <code class="docutils literal notranslate"><span class="pre">&gt;&gt;&gt;</span></code> shell prompt does not
706
- appear until <code class="docutils literal notranslate"><span class="pre">mainloop()</span></code> returns, at which time there is nothing left
707
- to interact with.</p>
708
- <p>When running a tkinter program from an IDLE editor, one can comment out
709
- the mainloop call. One then gets a shell prompt immediately and can
710
- interact with the live application. One just has to remember to
711
- re-enable the mainloop call when running in standard Python.</p>
712
- </section>
713
- <section id="running-without-a-subprocess">
714
- <h3>Running without a subprocess<a class="headerlink" href="#running-without-a-subprocess" title="Link to this heading">¶</a></h3>
715
- <p>By default, IDLE executes user code in a separate subprocess via a socket,
716
- which uses the internal loopback interface. This connection is not
717
- externally visible and no data is sent to or received from the internet.
718
- If firewall software complains anyway, you can ignore it.</p>
719
- <p>If the attempt to make the socket connection fails, Idle will notify you.
720
- Such failures are sometimes transient, but if persistent, the problem
721
- may be either a firewall blocking the connection or misconfiguration of
722
- a particular system. Until the problem is fixed, one can run Idle with
723
- the -n command line switch.</p>
724
- <p>If IDLE is started with the -n command line switch it will run in a
725
- single process and will not create the subprocess which runs the RPC
726
- Python execution server. This can be useful if Python cannot create
727
- the subprocess or the RPC socket interface on your platform. However,
728
- in this mode user code is not isolated from IDLE itself. Also, the
729
- environment is not restarted when Run/Run Module (F5) is selected. If
730
- your code has been modified, you must reload() the affected modules and
731
- re-import any specific items (e.g. from foo import baz) if the changes
732
- are to take effect. For these reasons, it is preferable to run IDLE
733
- with the default subprocess if at all possible.</p>
734
- <div class="deprecated">
735
- <p><span class="versionmodified deprecated">Deprecated since version 3.4.</span></p>
736
- </div>
737
- </section>
738
- </section>
739
- <section id="help-and-preferences">
740
- <h2>Help and Preferences<a class="headerlink" href="#help-and-preferences" title="Link to this heading">¶</a></h2>
741
- <section id="help-sources">
742
- <span id="id5"></span><h3>Help sources<a class="headerlink" href="#help-sources" title="Link to this heading">¶</a></h3>
743
- <p>Help menu entry “IDLE Help” displays a formatted html version of the
744
- IDLE chapter of the Library Reference. The result, in a read-only
745
- tkinter text window, is close to what one sees in a web browser.
746
- Navigate through the text with a mousewheel,
747
- the scrollbar, or up and down arrow keys held down.
748
- Or click the TOC (Table of Contents) button and select a section
749
- header in the opened box.</p>
750
- <p>Help menu entry “Python Docs” opens the extensive sources of help,
751
- including tutorials, available at <code class="docutils literal notranslate"><span class="pre">docs.python.org/x.y</span></code>, where ‘x.y’
752
- is the currently running Python version. If your system
753
- has an off-line copy of the docs (this may be an installation option),
754
- that will be opened instead.</p>
755
- <p>Selected URLs can be added or removed from the help menu at any time using the
756
- General tab of the Configure IDLE dialog.</p>
757
- </section>
758
- <section id="setting-preferences">
759
- <span id="preferences"></span><h3>Setting preferences<a class="headerlink" href="#setting-preferences" title="Link to this heading">¶</a></h3>
760
- <p>The font preferences, highlighting, keys, and general preferences can be
761
- changed via Configure IDLE on the Option menu.
762
- Non-default user settings are saved in a <code class="docutils literal notranslate"><span class="pre">.idlerc</span></code> directory in the user’s
763
- home directory. Problems caused by bad user configuration files are solved
764
- by editing or deleting one or more of the files in <code class="docutils literal notranslate"><span class="pre">.idlerc</span></code>.</p>
765
- <p>On the Font tab, see the text sample for the effect of font face and size
766
- on multiple characters in multiple languages. Edit the sample to add
767
- other characters of personal interest. Use the sample to select
768
- monospaced fonts. If particular characters have problems in Shell or an
769
- editor, add them to the top of the sample and try changing first size
770
- and then font.</p>
771
- <p>On the Highlights and Keys tab, select a built-in or custom color theme
772
- and key set. To use a newer built-in color theme or key set with older
773
- IDLEs, save it as a new custom theme or key set and it well be accessible
774
- to older IDLEs.</p>
775
- </section>
776
- <section id="idle-on-macos">
777
- <h3>IDLE on macOS<a class="headerlink" href="#idle-on-macos" title="Link to this heading">¶</a></h3>
778
- <p>Under System Preferences: Dock, one can set “Prefer tabs when opening
779
- documents” to “Always”. This setting is not compatible with the tk/tkinter
780
- GUI framework used by IDLE, and it breaks a few IDLE features.</p>
781
- </section>
782
- <section id="extensions">
783
- <h3>Extensions<a class="headerlink" href="#extensions" title="Link to this heading">¶</a></h3>
784
- <p>IDLE contains an extension facility. Preferences for extensions can be
785
- changed with the Extensions tab of the preferences dialog. See the
786
- beginning of config-extensions.def in the idlelib directory for further
787
- information. The only current default extension is zzdummy, an example
788
- also used for testing.</p>
789
- </section>
790
- </section>
791
- <section id="module-idlelib">
792
- <span id="idlelib-implementation-of-idle-application"></span><h2>idlelib — implementation of IDLE application<a class="headerlink" href="#module-idlelib" title="Link to this heading">¶</a></h2>
793
- <p><strong>Source code:</strong> <a class="extlink-source reference external" href="https://github.com/python/cpython/tree/main/Lib/idlelib">Lib/idlelib</a></p>
794
- <hr class="docutils" />
795
- <p>The Lib/idlelib package implements the IDLE application. See the rest
796
- of this page for how to use IDLE.</p>
797
- <p>The files in idlelib are described in idlelib/README.txt. Access it
798
- either in idlelib or click Help =&gt; About IDLE on the IDLE menu. This
799
- file also maps IDLE menu items to the code that implements the item.
800
- Except for files listed under ‘Startup’, the idlelib code is ‘private’ in
801
- sense that feature changes can be backported (see <span class="target" id="index-7"></span><a class="pep reference external" href="https://peps.python.org/pep-0434/"><strong>PEP 434</strong></a>).</p>
802
- </section>
803
- </section>
804
-
805
-