layermap 0.1.0

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 (773) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +11 -0
  3. package/README.md +107 -0
  4. package/analyzers/analyzers.json +18 -0
  5. package/analyzers/go/darwin-arm64/go-map +0 -0
  6. package/analyzers/go/darwin-x64/go-map +0 -0
  7. package/analyzers/go/linux-arm64/go-map +0 -0
  8. package/analyzers/go/linux-x64/go-map +0 -0
  9. package/analyzers/project-map-go-worker.mjs +14710 -0
  10. package/analyzers/project-map-java/LICENSE-lombok +104 -0
  11. package/analyzers/project-map-java/java-map.jar +0 -0
  12. package/analyzers/project-map-java/lombok.jar +0 -0
  13. package/analyzers/project-map-java-worker.mjs +14729 -0
  14. package/analyzers/project-map-python/LICENSE-pyright.txt +22 -0
  15. package/analyzers/project-map-python/typeshed/LICENSE +237 -0
  16. package/analyzers/project-map-python/typeshed/commit.txt +1 -0
  17. package/analyzers/project-map-python/typeshed/stdlib/VERSIONS +349 -0
  18. package/analyzers/project-map-python/typeshed/stdlib/__future__.pyi +36 -0
  19. package/analyzers/project-map-python/typeshed/stdlib/__main__.pyi +1 -0
  20. package/analyzers/project-map-python/typeshed/stdlib/_ast.pyi +141 -0
  21. package/analyzers/project-map-python/typeshed/stdlib/_asyncio.pyi +114 -0
  22. package/analyzers/project-map-python/typeshed/stdlib/_bisect.pyi +103 -0
  23. package/analyzers/project-map-python/typeshed/stdlib/_blake2.pyi +119 -0
  24. package/analyzers/project-map-python/typeshed/stdlib/_bz2.pyi +24 -0
  25. package/analyzers/project-map-python/typeshed/stdlib/_codecs.pyi +122 -0
  26. package/analyzers/project-map-python/typeshed/stdlib/_collections_abc.pyi +105 -0
  27. package/analyzers/project-map-python/typeshed/stdlib/_compat_pickle.pyi +10 -0
  28. package/analyzers/project-map-python/typeshed/stdlib/_compression.pyi +39 -0
  29. package/analyzers/project-map-python/typeshed/stdlib/_contextvars.pyi +69 -0
  30. package/analyzers/project-map-python/typeshed/stdlib/_csv.pyi +116 -0
  31. package/analyzers/project-map-python/typeshed/stdlib/_ctypes.pyi +375 -0
  32. package/analyzers/project-map-python/typeshed/stdlib/_curses.pyi +583 -0
  33. package/analyzers/project-map-python/typeshed/stdlib/_curses_panel.pyi +27 -0
  34. package/analyzers/project-map-python/typeshed/stdlib/_dbm.pyi +46 -0
  35. package/analyzers/project-map-python/typeshed/stdlib/_decimal.pyi +73 -0
  36. package/analyzers/project-map-python/typeshed/stdlib/_frozen_importlib.pyi +115 -0
  37. package/analyzers/project-map-python/typeshed/stdlib/_frozen_importlib_external.pyi +180 -0
  38. package/analyzers/project-map-python/typeshed/stdlib/_gdbm.pyi +50 -0
  39. package/analyzers/project-map-python/typeshed/stdlib/_hashlib.pyi +127 -0
  40. package/analyzers/project-map-python/typeshed/stdlib/_heapq.pyi +18 -0
  41. package/analyzers/project-map-python/typeshed/stdlib/_imp.pyi +30 -0
  42. package/analyzers/project-map-python/typeshed/stdlib/_interpchannels.pyi +86 -0
  43. package/analyzers/project-map-python/typeshed/stdlib/_interpqueues.pyi +31 -0
  44. package/analyzers/project-map-python/typeshed/stdlib/_interpreters.pyi +62 -0
  45. package/analyzers/project-map-python/typeshed/stdlib/_io.pyi +330 -0
  46. package/analyzers/project-map-python/typeshed/stdlib/_json.pyi +59 -0
  47. package/analyzers/project-map-python/typeshed/stdlib/_locale.pyi +121 -0
  48. package/analyzers/project-map-python/typeshed/stdlib/_lsprof.pyi +34 -0
  49. package/analyzers/project-map-python/typeshed/stdlib/_lzma.pyi +71 -0
  50. package/analyzers/project-map-python/typeshed/stdlib/_markupbase.pyi +10 -0
  51. package/analyzers/project-map-python/typeshed/stdlib/_msi.pyi +97 -0
  52. package/analyzers/project-map-python/typeshed/stdlib/_multibytecodec.pyi +49 -0
  53. package/analyzers/project-map-python/typeshed/stdlib/_operator.pyi +157 -0
  54. package/analyzers/project-map-python/typeshed/stdlib/_osx_support.pyi +34 -0
  55. package/analyzers/project-map-python/typeshed/stdlib/_pickle.pyi +114 -0
  56. package/analyzers/project-map-python/typeshed/stdlib/_posixsubprocess.pyi +59 -0
  57. package/analyzers/project-map-python/typeshed/stdlib/_py_abc.pyi +14 -0
  58. package/analyzers/project-map-python/typeshed/stdlib/_pydecimal.pyi +50 -0
  59. package/analyzers/project-map-python/typeshed/stdlib/_queue.pyi +18 -0
  60. package/analyzers/project-map-python/typeshed/stdlib/_random.pyi +14 -0
  61. package/analyzers/project-map-python/typeshed/stdlib/_remote_debugging.pyi +183 -0
  62. package/analyzers/project-map-python/typeshed/stdlib/_sitebuiltins.pyi +17 -0
  63. package/analyzers/project-map-python/typeshed/stdlib/_socket.pyi +966 -0
  64. package/analyzers/project-map-python/typeshed/stdlib/_sqlite3.pyi +311 -0
  65. package/analyzers/project-map-python/typeshed/stdlib/_ssl.pyi +303 -0
  66. package/analyzers/project-map-python/typeshed/stdlib/_stat.pyi +119 -0
  67. package/analyzers/project-map-python/typeshed/stdlib/_struct.pyi +24 -0
  68. package/analyzers/project-map-python/typeshed/stdlib/_thread.pyi +123 -0
  69. package/analyzers/project-map-python/typeshed/stdlib/_threading_local.pyi +24 -0
  70. package/analyzers/project-map-python/typeshed/stdlib/_tkinter.pyi +156 -0
  71. package/analyzers/project-map-python/typeshed/stdlib/_tracemalloc.pyi +13 -0
  72. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/__init__.pyi +393 -0
  73. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/_type_checker_internals.pyi +99 -0
  74. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/dbapi.pyi +36 -0
  75. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/importlib.pyi +18 -0
  76. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/wsgi.pyi +43 -0
  77. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/xml.pyi +9 -0
  78. package/analyzers/project-map-python/typeshed/stdlib/_warnings.pyi +54 -0
  79. package/analyzers/project-map-python/typeshed/stdlib/_weakref.pyi +15 -0
  80. package/analyzers/project-map-python/typeshed/stdlib/_weakrefset.pyi +49 -0
  81. package/analyzers/project-map-python/typeshed/stdlib/_winapi.pyi +314 -0
  82. package/analyzers/project-map-python/typeshed/stdlib/_zstd.pyi +102 -0
  83. package/analyzers/project-map-python/typeshed/stdlib/abc.pyi +50 -0
  84. package/analyzers/project-map-python/typeshed/stdlib/aifc.pyi +79 -0
  85. package/analyzers/project-map-python/typeshed/stdlib/annotationlib.pyi +156 -0
  86. package/analyzers/project-map-python/typeshed/stdlib/antigravity.pyi +3 -0
  87. package/analyzers/project-map-python/typeshed/stdlib/argparse.pyi +864 -0
  88. package/analyzers/project-map-python/typeshed/stdlib/array.pyi +113 -0
  89. package/analyzers/project-map-python/typeshed/stdlib/ast.pyi +2199 -0
  90. package/analyzers/project-map-python/typeshed/stdlib/asynchat.pyi +21 -0
  91. package/analyzers/project-map-python/typeshed/stdlib/asyncio/__init__.pyi +1022 -0
  92. package/analyzers/project-map-python/typeshed/stdlib/asyncio/base_events.pyi +498 -0
  93. package/analyzers/project-map-python/typeshed/stdlib/asyncio/base_futures.pyi +17 -0
  94. package/analyzers/project-map-python/typeshed/stdlib/asyncio/base_subprocess.pyi +62 -0
  95. package/analyzers/project-map-python/typeshed/stdlib/asyncio/base_tasks.pyi +17 -0
  96. package/analyzers/project-map-python/typeshed/stdlib/asyncio/constants.pyi +20 -0
  97. package/analyzers/project-map-python/typeshed/stdlib/asyncio/coroutines.pyi +45 -0
  98. package/analyzers/project-map-python/typeshed/stdlib/asyncio/events.pyi +671 -0
  99. package/analyzers/project-map-python/typeshed/stdlib/asyncio/exceptions.pyi +44 -0
  100. package/analyzers/project-map-python/typeshed/stdlib/asyncio/format_helpers.pyi +31 -0
  101. package/analyzers/project-map-python/typeshed/stdlib/asyncio/futures.pyi +19 -0
  102. package/analyzers/project-map-python/typeshed/stdlib/asyncio/graph.pyi +29 -0
  103. package/analyzers/project-map-python/typeshed/stdlib/asyncio/locks.pyi +83 -0
  104. package/analyzers/project-map-python/typeshed/stdlib/asyncio/log.pyi +3 -0
  105. package/analyzers/project-map-python/typeshed/stdlib/asyncio/mixins.pyi +9 -0
  106. package/analyzers/project-map-python/typeshed/stdlib/asyncio/proactor_events.pyi +53 -0
  107. package/analyzers/project-map-python/typeshed/stdlib/asyncio/protocols.pyi +41 -0
  108. package/analyzers/project-map-python/typeshed/stdlib/asyncio/queues.pyi +45 -0
  109. package/analyzers/project-map-python/typeshed/stdlib/asyncio/runners.pyi +41 -0
  110. package/analyzers/project-map-python/typeshed/stdlib/asyncio/selector_events.pyi +10 -0
  111. package/analyzers/project-map-python/typeshed/stdlib/asyncio/sslproto.pyi +164 -0
  112. package/analyzers/project-map-python/typeshed/stdlib/asyncio/staggered.pyi +10 -0
  113. package/analyzers/project-map-python/typeshed/stdlib/asyncio/streams.pyi +124 -0
  114. package/analyzers/project-map-python/typeshed/stdlib/asyncio/subprocess.pyi +166 -0
  115. package/analyzers/project-map-python/typeshed/stdlib/asyncio/taskgroups.pyi +41 -0
  116. package/analyzers/project-map-python/typeshed/stdlib/asyncio/tasks.pyi +315 -0
  117. package/analyzers/project-map-python/typeshed/stdlib/asyncio/threads.pyi +9 -0
  118. package/analyzers/project-map-python/typeshed/stdlib/asyncio/timeouts.pyi +20 -0
  119. package/analyzers/project-map-python/typeshed/stdlib/asyncio/tools.pyi +51 -0
  120. package/analyzers/project-map-python/typeshed/stdlib/asyncio/transports.pyi +57 -0
  121. package/analyzers/project-map-python/typeshed/stdlib/asyncio/trsock.pyi +137 -0
  122. package/analyzers/project-map-python/typeshed/stdlib/asyncio/unix_events.pyi +277 -0
  123. package/analyzers/project-map-python/typeshed/stdlib/asyncio/windows_events.pyi +121 -0
  124. package/analyzers/project-map-python/typeshed/stdlib/asyncio/windows_utils.pyi +49 -0
  125. package/analyzers/project-map-python/typeshed/stdlib/asyncore.pyi +91 -0
  126. package/analyzers/project-map-python/typeshed/stdlib/atexit.pyi +11 -0
  127. package/analyzers/project-map-python/typeshed/stdlib/audioop.pyi +44 -0
  128. package/analyzers/project-map-python/typeshed/stdlib/base64.pyi +124 -0
  129. package/analyzers/project-map-python/typeshed/stdlib/bdb.pyi +139 -0
  130. package/analyzers/project-map-python/typeshed/stdlib/binascii.pyi +102 -0
  131. package/analyzers/project-map-python/typeshed/stdlib/binhex.pyi +44 -0
  132. package/analyzers/project-map-python/typeshed/stdlib/bisect.pyi +4 -0
  133. package/analyzers/project-map-python/typeshed/stdlib/builtins.pyi +2679 -0
  134. package/analyzers/project-map-python/typeshed/stdlib/bz2.pyi +121 -0
  135. package/analyzers/project-map-python/typeshed/stdlib/cProfile.pyi +33 -0
  136. package/analyzers/project-map-python/typeshed/stdlib/calendar.pyi +249 -0
  137. package/analyzers/project-map-python/typeshed/stdlib/cgi.pyi +120 -0
  138. package/analyzers/project-map-python/typeshed/stdlib/cgitb.pyi +32 -0
  139. package/analyzers/project-map-python/typeshed/stdlib/chunk.pyi +20 -0
  140. package/analyzers/project-map-python/typeshed/stdlib/cmath.pyi +36 -0
  141. package/analyzers/project-map-python/typeshed/stdlib/cmd.pyi +46 -0
  142. package/analyzers/project-map-python/typeshed/stdlib/code.pyi +55 -0
  143. package/analyzers/project-map-python/typeshed/stdlib/codecs.pyi +357 -0
  144. package/analyzers/project-map-python/typeshed/stdlib/codeop.pyi +21 -0
  145. package/analyzers/project-map-python/typeshed/stdlib/collections/__init__.pyi +564 -0
  146. package/analyzers/project-map-python/typeshed/stdlib/collections/abc.pyi +2 -0
  147. package/analyzers/project-map-python/typeshed/stdlib/colorsys.pyi +15 -0
  148. package/analyzers/project-map-python/typeshed/stdlib/compileall.pyi +51 -0
  149. package/analyzers/project-map-python/typeshed/stdlib/compression/__init__.pyi +0 -0
  150. package/analyzers/project-map-python/typeshed/stdlib/compression/_common/__init__.pyi +0 -0
  151. package/analyzers/project-map-python/typeshed/stdlib/compression/_common/_streams.pyi +37 -0
  152. package/analyzers/project-map-python/typeshed/stdlib/compression/bz2.pyi +1 -0
  153. package/analyzers/project-map-python/typeshed/stdlib/compression/gzip.pyi +1 -0
  154. package/analyzers/project-map-python/typeshed/stdlib/compression/lzma.pyi +1 -0
  155. package/analyzers/project-map-python/typeshed/stdlib/compression/zlib.pyi +1 -0
  156. package/analyzers/project-map-python/typeshed/stdlib/compression/zstd/__init__.pyi +94 -0
  157. package/analyzers/project-map-python/typeshed/stdlib/compression/zstd/_zstdfile.pyi +117 -0
  158. package/analyzers/project-map-python/typeshed/stdlib/concurrent/__init__.pyi +0 -0
  159. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/__init__.pyi +71 -0
  160. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/_base.pyi +119 -0
  161. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/interpreter.pyi +82 -0
  162. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/process.pyi +242 -0
  163. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/thread.pyi +143 -0
  164. package/analyzers/project-map-python/typeshed/stdlib/concurrent/interpreters/__init__.pyi +68 -0
  165. package/analyzers/project-map-python/typeshed/stdlib/concurrent/interpreters/_crossinterp.pyi +30 -0
  166. package/analyzers/project-map-python/typeshed/stdlib/concurrent/interpreters/_queues.pyi +74 -0
  167. package/analyzers/project-map-python/typeshed/stdlib/configparser.pyi +507 -0
  168. package/analyzers/project-map-python/typeshed/stdlib/contextlib.pyi +224 -0
  169. package/analyzers/project-map-python/typeshed/stdlib/contextvars.pyi +3 -0
  170. package/analyzers/project-map-python/typeshed/stdlib/copy.pyi +28 -0
  171. package/analyzers/project-map-python/typeshed/stdlib/copyreg.pyi +20 -0
  172. package/analyzers/project-map-python/typeshed/stdlib/crypt.pyi +26 -0
  173. package/analyzers/project-map-python/typeshed/stdlib/csv.pyi +153 -0
  174. package/analyzers/project-map-python/typeshed/stdlib/ctypes/__init__.pyi +394 -0
  175. package/analyzers/project-map-python/typeshed/stdlib/ctypes/_endian.pyi +16 -0
  176. package/analyzers/project-map-python/typeshed/stdlib/ctypes/macholib/__init__.pyi +3 -0
  177. package/analyzers/project-map-python/typeshed/stdlib/ctypes/macholib/dyld.pyi +8 -0
  178. package/analyzers/project-map-python/typeshed/stdlib/ctypes/macholib/dylib.pyi +14 -0
  179. package/analyzers/project-map-python/typeshed/stdlib/ctypes/macholib/framework.pyi +14 -0
  180. package/analyzers/project-map-python/typeshed/stdlib/ctypes/util.pyi +11 -0
  181. package/analyzers/project-map-python/typeshed/stdlib/ctypes/wintypes.pyi +321 -0
  182. package/analyzers/project-map-python/typeshed/stdlib/curses/__init__.pyi +38 -0
  183. package/analyzers/project-map-python/typeshed/stdlib/curses/ascii.pyi +62 -0
  184. package/analyzers/project-map-python/typeshed/stdlib/curses/has_key.pyi +1 -0
  185. package/analyzers/project-map-python/typeshed/stdlib/curses/panel.pyi +1 -0
  186. package/analyzers/project-map-python/typeshed/stdlib/curses/textpad.pyi +11 -0
  187. package/analyzers/project-map-python/typeshed/stdlib/dataclasses.pyi +397 -0
  188. package/analyzers/project-map-python/typeshed/stdlib/datetime.pyi +381 -0
  189. package/analyzers/project-map-python/typeshed/stdlib/dbm/__init__.pyi +105 -0
  190. package/analyzers/project-map-python/typeshed/stdlib/dbm/dumb.pyi +41 -0
  191. package/analyzers/project-map-python/typeshed/stdlib/dbm/gnu.pyi +1 -0
  192. package/analyzers/project-map-python/typeshed/stdlib/dbm/ndbm.pyi +1 -0
  193. package/analyzers/project-map-python/typeshed/stdlib/dbm/sqlite3.pyi +34 -0
  194. package/analyzers/project-map-python/typeshed/stdlib/decimal.pyi +278 -0
  195. package/analyzers/project-map-python/typeshed/stdlib/difflib.pyi +157 -0
  196. package/analyzers/project-map-python/typeshed/stdlib/dis.pyi +302 -0
  197. package/analyzers/project-map-python/typeshed/stdlib/distutils/__init__.pyi +5 -0
  198. package/analyzers/project-map-python/typeshed/stdlib/distutils/_msvccompiler.pyi +13 -0
  199. package/analyzers/project-map-python/typeshed/stdlib/distutils/archive_util.pyi +36 -0
  200. package/analyzers/project-map-python/typeshed/stdlib/distutils/bcppcompiler.pyi +3 -0
  201. package/analyzers/project-map-python/typeshed/stdlib/distutils/ccompiler.pyi +182 -0
  202. package/analyzers/project-map-python/typeshed/stdlib/distutils/cmd.pyi +238 -0
  203. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/__init__.pyi +41 -0
  204. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist.pyi +27 -0
  205. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist_dumb.pyi +22 -0
  206. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist_msi.pyi +45 -0
  207. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist_packager.pyi +0 -0
  208. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist_rpm.pyi +53 -0
  209. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build.pyi +34 -0
  210. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build_clib.pyi +29 -0
  211. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build_ext.pyi +52 -0
  212. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build_py.pyi +45 -0
  213. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build_scripts.pyi +25 -0
  214. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/check.pyi +39 -0
  215. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/clean.pyi +18 -0
  216. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/config.pyi +84 -0
  217. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install.pyi +67 -0
  218. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_data.pyi +20 -0
  219. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_egg_info.pyi +19 -0
  220. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_headers.pyi +17 -0
  221. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_lib.pyi +26 -0
  222. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_scripts.pyi +19 -0
  223. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/register.pyi +20 -0
  224. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/sdist.pyi +45 -0
  225. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/upload.pyi +18 -0
  226. package/analyzers/project-map-python/typeshed/stdlib/distutils/config.pyi +17 -0
  227. package/analyzers/project-map-python/typeshed/stdlib/distutils/core.pyi +58 -0
  228. package/analyzers/project-map-python/typeshed/stdlib/distutils/cygwinccompiler.pyi +20 -0
  229. package/analyzers/project-map-python/typeshed/stdlib/distutils/debug.pyi +3 -0
  230. package/analyzers/project-map-python/typeshed/stdlib/distutils/dep_util.pyi +14 -0
  231. package/analyzers/project-map-python/typeshed/stdlib/distutils/dir_util.pyi +23 -0
  232. package/analyzers/project-map-python/typeshed/stdlib/distutils/dist.pyi +318 -0
  233. package/analyzers/project-map-python/typeshed/stdlib/distutils/errors.pyi +19 -0
  234. package/analyzers/project-map-python/typeshed/stdlib/distutils/extension.pyi +36 -0
  235. package/analyzers/project-map-python/typeshed/stdlib/distutils/fancy_getopt.pyi +45 -0
  236. package/analyzers/project-map-python/typeshed/stdlib/distutils/file_util.pyi +40 -0
  237. package/analyzers/project-map-python/typeshed/stdlib/distutils/filelist.pyi +61 -0
  238. package/analyzers/project-map-python/typeshed/stdlib/distutils/log.pyi +26 -0
  239. package/analyzers/project-map-python/typeshed/stdlib/distutils/msvccompiler.pyi +3 -0
  240. package/analyzers/project-map-python/typeshed/stdlib/distutils/spawn.pyi +10 -0
  241. package/analyzers/project-map-python/typeshed/stdlib/distutils/sysconfig.pyi +32 -0
  242. package/analyzers/project-map-python/typeshed/stdlib/distutils/text_file.pyi +21 -0
  243. package/analyzers/project-map-python/typeshed/stdlib/distutils/unixccompiler.pyi +3 -0
  244. package/analyzers/project-map-python/typeshed/stdlib/distutils/util.pyi +53 -0
  245. package/analyzers/project-map-python/typeshed/stdlib/distutils/version.pyi +36 -0
  246. package/analyzers/project-map-python/typeshed/stdlib/doctest.pyi +262 -0
  247. package/analyzers/project-map-python/typeshed/stdlib/email/__init__.pyi +62 -0
  248. package/analyzers/project-map-python/typeshed/stdlib/email/_header_value_parser.pyi +414 -0
  249. package/analyzers/project-map-python/typeshed/stdlib/email/_policybase.pyi +80 -0
  250. package/analyzers/project-map-python/typeshed/stdlib/email/base64mime.pyi +13 -0
  251. package/analyzers/project-map-python/typeshed/stdlib/email/charset.pyi +44 -0
  252. package/analyzers/project-map-python/typeshed/stdlib/email/contentmanager.pyi +11 -0
  253. package/analyzers/project-map-python/typeshed/stdlib/email/encoders.pyi +8 -0
  254. package/analyzers/project-map-python/typeshed/stdlib/email/errors.pyi +38 -0
  255. package/analyzers/project-map-python/typeshed/stdlib/email/feedparser.pyi +24 -0
  256. package/analyzers/project-map-python/typeshed/stdlib/email/generator.pyi +79 -0
  257. package/analyzers/project-map-python/typeshed/stdlib/email/header.pyi +32 -0
  258. package/analyzers/project-map-python/typeshed/stdlib/email/headerregistry.pyi +193 -0
  259. package/analyzers/project-map-python/typeshed/stdlib/email/iterators.pyi +15 -0
  260. package/analyzers/project-map-python/typeshed/stdlib/email/message.pyi +191 -0
  261. package/analyzers/project-map-python/typeshed/stdlib/email/mime/__init__.pyi +0 -0
  262. package/analyzers/project-map-python/typeshed/stdlib/email/mime/application.pyi +17 -0
  263. package/analyzers/project-map-python/typeshed/stdlib/email/mime/audio.pyi +17 -0
  264. package/analyzers/project-map-python/typeshed/stdlib/email/mime/base.pyi +8 -0
  265. package/analyzers/project-map-python/typeshed/stdlib/email/mime/image.pyi +17 -0
  266. package/analyzers/project-map-python/typeshed/stdlib/email/mime/message.pyi +8 -0
  267. package/analyzers/project-map-python/typeshed/stdlib/email/mime/multipart.pyi +18 -0
  268. package/analyzers/project-map-python/typeshed/stdlib/email/mime/nonmultipart.pyi +5 -0
  269. package/analyzers/project-map-python/typeshed/stdlib/email/mime/text.pyi +9 -0
  270. package/analyzers/project-map-python/typeshed/stdlib/email/parser.pyi +42 -0
  271. package/analyzers/project-map-python/typeshed/stdlib/email/policy.pyi +77 -0
  272. package/analyzers/project-map-python/typeshed/stdlib/email/quoprimime.pyi +28 -0
  273. package/analyzers/project-map-python/typeshed/stdlib/email/utils.pyi +72 -0
  274. package/analyzers/project-map-python/typeshed/stdlib/encodings/__init__.pyi +15 -0
  275. package/analyzers/project-map-python/typeshed/stdlib/encodings/aliases.pyi +1 -0
  276. package/analyzers/project-map-python/typeshed/stdlib/encodings/ascii.pyi +30 -0
  277. package/analyzers/project-map-python/typeshed/stdlib/encodings/base64_codec.pyi +26 -0
  278. package/analyzers/project-map-python/typeshed/stdlib/encodings/big5.pyi +23 -0
  279. package/analyzers/project-map-python/typeshed/stdlib/encodings/big5hkscs.pyi +23 -0
  280. package/analyzers/project-map-python/typeshed/stdlib/encodings/bz2_codec.pyi +26 -0
  281. package/analyzers/project-map-python/typeshed/stdlib/encodings/charmap.pyi +33 -0
  282. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp037.pyi +21 -0
  283. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1006.pyi +21 -0
  284. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1026.pyi +21 -0
  285. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1125.pyi +21 -0
  286. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1140.pyi +21 -0
  287. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1250.pyi +21 -0
  288. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1251.pyi +21 -0
  289. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1252.pyi +21 -0
  290. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1253.pyi +21 -0
  291. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1254.pyi +21 -0
  292. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1255.pyi +21 -0
  293. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1256.pyi +21 -0
  294. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1257.pyi +21 -0
  295. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1258.pyi +21 -0
  296. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp273.pyi +21 -0
  297. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp424.pyi +21 -0
  298. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp437.pyi +21 -0
  299. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp500.pyi +21 -0
  300. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp720.pyi +21 -0
  301. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp737.pyi +21 -0
  302. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp775.pyi +21 -0
  303. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp850.pyi +21 -0
  304. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp852.pyi +21 -0
  305. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp855.pyi +21 -0
  306. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp856.pyi +21 -0
  307. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp857.pyi +21 -0
  308. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp858.pyi +21 -0
  309. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp860.pyi +21 -0
  310. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp861.pyi +21 -0
  311. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp862.pyi +21 -0
  312. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp863.pyi +21 -0
  313. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp864.pyi +21 -0
  314. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp865.pyi +21 -0
  315. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp866.pyi +21 -0
  316. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp869.pyi +21 -0
  317. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp874.pyi +21 -0
  318. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp875.pyi +21 -0
  319. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp932.pyi +23 -0
  320. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp949.pyi +23 -0
  321. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp950.pyi +23 -0
  322. package/analyzers/project-map-python/typeshed/stdlib/encodings/euc_jis_2004.pyi +23 -0
  323. package/analyzers/project-map-python/typeshed/stdlib/encodings/euc_jisx0213.pyi +23 -0
  324. package/analyzers/project-map-python/typeshed/stdlib/encodings/euc_jp.pyi +23 -0
  325. package/analyzers/project-map-python/typeshed/stdlib/encodings/euc_kr.pyi +23 -0
  326. package/analyzers/project-map-python/typeshed/stdlib/encodings/gb18030.pyi +23 -0
  327. package/analyzers/project-map-python/typeshed/stdlib/encodings/gb2312.pyi +23 -0
  328. package/analyzers/project-map-python/typeshed/stdlib/encodings/gbk.pyi +23 -0
  329. package/analyzers/project-map-python/typeshed/stdlib/encodings/hex_codec.pyi +26 -0
  330. package/analyzers/project-map-python/typeshed/stdlib/encodings/hp_roman8.pyi +21 -0
  331. package/analyzers/project-map-python/typeshed/stdlib/encodings/hz.pyi +23 -0
  332. package/analyzers/project-map-python/typeshed/stdlib/encodings/idna.pyi +26 -0
  333. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp.pyi +23 -0
  334. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_1.pyi +23 -0
  335. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_2.pyi +23 -0
  336. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_2004.pyi +23 -0
  337. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_3.pyi +23 -0
  338. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_ext.pyi +23 -0
  339. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_kr.pyi +23 -0
  340. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_1.pyi +21 -0
  341. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_10.pyi +21 -0
  342. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_11.pyi +21 -0
  343. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_13.pyi +21 -0
  344. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_14.pyi +21 -0
  345. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_15.pyi +21 -0
  346. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_16.pyi +21 -0
  347. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_2.pyi +21 -0
  348. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_3.pyi +21 -0
  349. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_4.pyi +21 -0
  350. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_5.pyi +21 -0
  351. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_6.pyi +21 -0
  352. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_7.pyi +21 -0
  353. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_8.pyi +21 -0
  354. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_9.pyi +21 -0
  355. package/analyzers/project-map-python/typeshed/stdlib/encodings/johab.pyi +23 -0
  356. package/analyzers/project-map-python/typeshed/stdlib/encodings/koi8_r.pyi +21 -0
  357. package/analyzers/project-map-python/typeshed/stdlib/encodings/koi8_t.pyi +21 -0
  358. package/analyzers/project-map-python/typeshed/stdlib/encodings/koi8_u.pyi +21 -0
  359. package/analyzers/project-map-python/typeshed/stdlib/encodings/kz1048.pyi +21 -0
  360. package/analyzers/project-map-python/typeshed/stdlib/encodings/latin_1.pyi +30 -0
  361. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_arabic.pyi +21 -0
  362. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_croatian.pyi +21 -0
  363. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_cyrillic.pyi +21 -0
  364. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_farsi.pyi +21 -0
  365. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_greek.pyi +21 -0
  366. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_iceland.pyi +21 -0
  367. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_latin2.pyi +21 -0
  368. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_roman.pyi +21 -0
  369. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_romanian.pyi +21 -0
  370. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_turkish.pyi +21 -0
  371. package/analyzers/project-map-python/typeshed/stdlib/encodings/mbcs.pyi +28 -0
  372. package/analyzers/project-map-python/typeshed/stdlib/encodings/oem.pyi +28 -0
  373. package/analyzers/project-map-python/typeshed/stdlib/encodings/palmos.pyi +21 -0
  374. package/analyzers/project-map-python/typeshed/stdlib/encodings/ptcp154.pyi +21 -0
  375. package/analyzers/project-map-python/typeshed/stdlib/encodings/punycode.pyi +33 -0
  376. package/analyzers/project-map-python/typeshed/stdlib/encodings/quopri_codec.pyi +26 -0
  377. package/analyzers/project-map-python/typeshed/stdlib/encodings/raw_unicode_escape.pyi +23 -0
  378. package/analyzers/project-map-python/typeshed/stdlib/encodings/rot_13.pyi +23 -0
  379. package/analyzers/project-map-python/typeshed/stdlib/encodings/shift_jis.pyi +23 -0
  380. package/analyzers/project-map-python/typeshed/stdlib/encodings/shift_jis_2004.pyi +23 -0
  381. package/analyzers/project-map-python/typeshed/stdlib/encodings/shift_jisx0213.pyi +23 -0
  382. package/analyzers/project-map-python/typeshed/stdlib/encodings/tis_620.pyi +21 -0
  383. package/analyzers/project-map-python/typeshed/stdlib/encodings/undefined.pyi +20 -0
  384. package/analyzers/project-map-python/typeshed/stdlib/encodings/unicode_escape.pyi +23 -0
  385. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_16.pyi +20 -0
  386. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_16_be.pyi +26 -0
  387. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_16_le.pyi +26 -0
  388. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_32.pyi +20 -0
  389. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_32_be.pyi +26 -0
  390. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_32_le.pyi +26 -0
  391. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_7.pyi +26 -0
  392. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_8.pyi +26 -0
  393. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_8_sig.pyi +22 -0
  394. package/analyzers/project-map-python/typeshed/stdlib/encodings/uu_codec.pyi +28 -0
  395. package/analyzers/project-map-python/typeshed/stdlib/encodings/zlib_codec.pyi +26 -0
  396. package/analyzers/project-map-python/typeshed/stdlib/ensurepip/__init__.pyi +12 -0
  397. package/analyzers/project-map-python/typeshed/stdlib/enum.pyi +374 -0
  398. package/analyzers/project-map-python/typeshed/stdlib/errno.pyi +227 -0
  399. package/analyzers/project-map-python/typeshed/stdlib/faulthandler.pyi +61 -0
  400. package/analyzers/project-map-python/typeshed/stdlib/fcntl.pyi +157 -0
  401. package/analyzers/project-map-python/typeshed/stdlib/filecmp.pyi +65 -0
  402. package/analyzers/project-map-python/typeshed/stdlib/fileinput.pyi +141 -0
  403. package/analyzers/project-map-python/typeshed/stdlib/fnmatch.pyi +15 -0
  404. package/analyzers/project-map-python/typeshed/stdlib/fractions.pyi +185 -0
  405. package/analyzers/project-map-python/typeshed/stdlib/ftplib.pyi +174 -0
  406. package/analyzers/project-map-python/typeshed/stdlib/functools.pyi +281 -0
  407. package/analyzers/project-map-python/typeshed/stdlib/gc.pyi +32 -0
  408. package/analyzers/project-map-python/typeshed/stdlib/genericpath.pyi +98 -0
  409. package/analyzers/project-map-python/typeshed/stdlib/getopt.pyi +27 -0
  410. package/analyzers/project-map-python/typeshed/stdlib/getpass.pyi +14 -0
  411. package/analyzers/project-map-python/typeshed/stdlib/gettext.pyi +190 -0
  412. package/analyzers/project-map-python/typeshed/stdlib/glob.pyi +54 -0
  413. package/analyzers/project-map-python/typeshed/stdlib/graphlib.pyi +29 -0
  414. package/analyzers/project-map-python/typeshed/stdlib/grp.pyi +21 -0
  415. package/analyzers/project-map-python/typeshed/stdlib/gzip.pyi +181 -0
  416. package/analyzers/project-map-python/typeshed/stdlib/hashlib.pyi +112 -0
  417. package/analyzers/project-map-python/typeshed/stdlib/heapq.pyi +32 -0
  418. package/analyzers/project-map-python/typeshed/stdlib/hmac.pyi +33 -0
  419. package/analyzers/project-map-python/typeshed/stdlib/html/__init__.pyi +7 -0
  420. package/analyzers/project-map-python/typeshed/stdlib/html/entities.pyi +8 -0
  421. package/analyzers/project-map-python/typeshed/stdlib/html/parser.pyi +40 -0
  422. package/analyzers/project-map-python/typeshed/stdlib/http/__init__.pyi +118 -0
  423. package/analyzers/project-map-python/typeshed/stdlib/http/client.pyi +318 -0
  424. package/analyzers/project-map-python/typeshed/stdlib/http/cookiejar.pyi +158 -0
  425. package/analyzers/project-map-python/typeshed/stdlib/http/cookies.pyi +53 -0
  426. package/analyzers/project-map-python/typeshed/stdlib/http/server.pyi +139 -0
  427. package/analyzers/project-map-python/typeshed/stdlib/imaplib.pyi +195 -0
  428. package/analyzers/project-map-python/typeshed/stdlib/imghdr.pyi +18 -0
  429. package/analyzers/project-map-python/typeshed/stdlib/imp.pyi +63 -0
  430. package/analyzers/project-map-python/typeshed/stdlib/importlib/__init__.pyi +17 -0
  431. package/analyzers/project-map-python/typeshed/stdlib/importlib/_abc.pyi +19 -0
  432. package/analyzers/project-map-python/typeshed/stdlib/importlib/_bootstrap.pyi +2 -0
  433. package/analyzers/project-map-python/typeshed/stdlib/importlib/_bootstrap_external.pyi +2 -0
  434. package/analyzers/project-map-python/typeshed/stdlib/importlib/abc.pyi +150 -0
  435. package/analyzers/project-map-python/typeshed/stdlib/importlib/machinery.pyi +43 -0
  436. package/analyzers/project-map-python/typeshed/stdlib/importlib/metadata/__init__.pyi +310 -0
  437. package/analyzers/project-map-python/typeshed/stdlib/importlib/metadata/_meta.pyi +65 -0
  438. package/analyzers/project-map-python/typeshed/stdlib/importlib/metadata/diagnose.pyi +2 -0
  439. package/analyzers/project-map-python/typeshed/stdlib/importlib/readers.pyi +69 -0
  440. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/__init__.pyi +81 -0
  441. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/_common.pyi +43 -0
  442. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/_functional.pyi +35 -0
  443. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/abc.pyi +64 -0
  444. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/readers.pyi +14 -0
  445. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/simple.pyi +59 -0
  446. package/analyzers/project-map-python/typeshed/stdlib/importlib/simple.pyi +11 -0
  447. package/analyzers/project-map-python/typeshed/stdlib/importlib/util.pyi +75 -0
  448. package/analyzers/project-map-python/typeshed/stdlib/inspect.pyi +749 -0
  449. package/analyzers/project-map-python/typeshed/stdlib/io.pyi +75 -0
  450. package/analyzers/project-map-python/typeshed/stdlib/ipaddress.pyi +249 -0
  451. package/analyzers/project-map-python/typeshed/stdlib/itertools.pyi +376 -0
  452. package/analyzers/project-map-python/typeshed/stdlib/json/__init__.pyi +93 -0
  453. package/analyzers/project-map-python/typeshed/stdlib/json/decoder.pyi +50 -0
  454. package/analyzers/project-map-python/typeshed/stdlib/json/encoder.pyi +40 -0
  455. package/analyzers/project-map-python/typeshed/stdlib/json/scanner.pyi +7 -0
  456. package/analyzers/project-map-python/typeshed/stdlib/json/tool.pyi +1 -0
  457. package/analyzers/project-map-python/typeshed/stdlib/keyword.pyi +16 -0
  458. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/__init__.pyi +0 -0
  459. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/btm_matcher.pyi +28 -0
  460. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixer_base.pyi +42 -0
  461. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/__init__.pyi +0 -0
  462. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi +8 -0
  463. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -0
  464. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -0
  465. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -0
  466. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi +16 -0
  467. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_except.pyi +14 -0
  468. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi +8 -0
  469. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -0
  470. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -0
  471. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi +9 -0
  472. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -0
  473. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_future.pyi +8 -0
  474. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -0
  475. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -0
  476. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -0
  477. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_import.pyi +16 -0
  478. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi +21 -0
  479. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -0
  480. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_input.pyi +11 -0
  481. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi +9 -0
  482. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -0
  483. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -0
  484. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -0
  485. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_long.pyi +7 -0
  486. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_map.pyi +9 -0
  487. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -0
  488. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -0
  489. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi +8 -0
  490. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_next.pyi +19 -0
  491. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -0
  492. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -0
  493. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi +12 -0
  494. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi +8 -0
  495. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_print.pyi +12 -0
  496. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi +8 -0
  497. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -0
  498. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -0
  499. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi +9 -0
  500. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi +17 -0
  501. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi +8 -0
  502. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -0
  503. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -0
  504. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -0
  505. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi +8 -0
  506. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi +16 -0
  507. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_types.pyi +8 -0
  508. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -0
  509. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -0
  510. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -0
  511. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -0
  512. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -0
  513. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi +9 -0
  514. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/main.pyi +42 -0
  515. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/__init__.pyi +8 -0
  516. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/driver.pyi +27 -0
  517. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/grammar.pyi +25 -0
  518. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/literals.pyi +7 -0
  519. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/parse.pyi +30 -0
  520. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/pgen.pyi +52 -0
  521. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/token.pyi +69 -0
  522. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi +96 -0
  523. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pygram.pyi +114 -0
  524. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pytree.pyi +118 -0
  525. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/refactor.pyi +85 -0
  526. package/analyzers/project-map-python/typeshed/stdlib/linecache.pyi +18 -0
  527. package/analyzers/project-map-python/typeshed/stdlib/locale.pyi +160 -0
  528. package/analyzers/project-map-python/typeshed/stdlib/logging/__init__.pyi +674 -0
  529. package/analyzers/project-map-python/typeshed/stdlib/logging/config.pyi +141 -0
  530. package/analyzers/project-map-python/typeshed/stdlib/logging/handlers.pyi +258 -0
  531. package/analyzers/project-map-python/typeshed/stdlib/lzma.pyi +181 -0
  532. package/analyzers/project-map-python/typeshed/stdlib/mailbox.pyi +301 -0
  533. package/analyzers/project-map-python/typeshed/stdlib/mailcap.pyi +11 -0
  534. package/analyzers/project-map-python/typeshed/stdlib/marshal.pyi +52 -0
  535. package/analyzers/project-map-python/typeshed/stdlib/math/__init__.pyi +157 -0
  536. package/analyzers/project-map-python/typeshed/stdlib/math/integer.pyi +8 -0
  537. package/analyzers/project-map-python/typeshed/stdlib/mimetypes.pyi +56 -0
  538. package/analyzers/project-map-python/typeshed/stdlib/mmap.pyi +187 -0
  539. package/analyzers/project-map-python/typeshed/stdlib/modulefinder.pyi +68 -0
  540. package/analyzers/project-map-python/typeshed/stdlib/msilib/__init__.pyi +177 -0
  541. package/analyzers/project-map-python/typeshed/stdlib/msilib/schema.pyi +95 -0
  542. package/analyzers/project-map-python/typeshed/stdlib/msilib/sequence.pyi +13 -0
  543. package/analyzers/project-map-python/typeshed/stdlib/msilib/text.pyi +8 -0
  544. package/analyzers/project-map-python/typeshed/stdlib/msvcrt.pyi +31 -0
  545. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/__init__.pyi +90 -0
  546. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/connection.pyi +94 -0
  547. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/context.pyi +220 -0
  548. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/dummy/__init__.pyi +89 -0
  549. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/dummy/connection.pyi +39 -0
  550. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/forkserver.pyi +78 -0
  551. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/heap.pyi +41 -0
  552. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/managers.pyi +389 -0
  553. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/pool.pyi +101 -0
  554. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/popen_fork.pyi +26 -0
  555. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/popen_forkserver.pyi +16 -0
  556. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/popen_spawn_posix.pyi +20 -0
  557. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -0
  558. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/process.pyi +43 -0
  559. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/queues.pyi +46 -0
  560. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/reduction.pyi +95 -0
  561. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/resource_sharer.pyi +20 -0
  562. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/resource_tracker.pyi +21 -0
  563. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/shared_memory.pyi +43 -0
  564. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/sharedctypes.pyi +140 -0
  565. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/spawn.pyi +32 -0
  566. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/synchronize.pyi +63 -0
  567. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/util.pyi +109 -0
  568. package/analyzers/project-map-python/typeshed/stdlib/netrc.pyi +23 -0
  569. package/analyzers/project-map-python/typeshed/stdlib/nis.pyi +9 -0
  570. package/analyzers/project-map-python/typeshed/stdlib/nntplib.pyi +120 -0
  571. package/analyzers/project-map-python/typeshed/stdlib/nt.pyi +116 -0
  572. package/analyzers/project-map-python/typeshed/stdlib/ntpath.pyi +134 -0
  573. package/analyzers/project-map-python/typeshed/stdlib/nturl2path.pyi +6 -0
  574. package/analyzers/project-map-python/typeshed/stdlib/numbers.pyi +220 -0
  575. package/analyzers/project-map-python/typeshed/stdlib/opcode.pyi +53 -0
  576. package/analyzers/project-map-python/typeshed/stdlib/operator.pyi +219 -0
  577. package/analyzers/project-map-python/typeshed/stdlib/optparse.pyi +312 -0
  578. package/analyzers/project-map-python/typeshed/stdlib/os/__init__.pyi +1882 -0
  579. package/analyzers/project-map-python/typeshed/stdlib/os/path.pyi +8 -0
  580. package/analyzers/project-map-python/typeshed/stdlib/ossaudiodev.pyi +132 -0
  581. package/analyzers/project-map-python/typeshed/stdlib/pathlib/__init__.pyi +358 -0
  582. package/analyzers/project-map-python/typeshed/stdlib/pathlib/types.pyi +8 -0
  583. package/analyzers/project-map-python/typeshed/stdlib/pdb.pyi +275 -0
  584. package/analyzers/project-map-python/typeshed/stdlib/pickle.pyi +240 -0
  585. package/analyzers/project-map-python/typeshed/stdlib/pickletools.pyi +176 -0
  586. package/analyzers/project-map-python/typeshed/stdlib/pipes.pyi +16 -0
  587. package/analyzers/project-map-python/typeshed/stdlib/pkgutil.pyi +60 -0
  588. package/analyzers/project-map-python/typeshed/stdlib/platform.pyi +100 -0
  589. package/analyzers/project-map-python/typeshed/stdlib/plistlib.pyi +84 -0
  590. package/analyzers/project-map-python/typeshed/stdlib/poplib.pyi +93 -0
  591. package/analyzers/project-map-python/typeshed/stdlib/posix.pyi +427 -0
  592. package/analyzers/project-map-python/typeshed/stdlib/posixpath.pyi +230 -0
  593. package/analyzers/project-map-python/typeshed/stdlib/pprint.pyi +170 -0
  594. package/analyzers/project-map-python/typeshed/stdlib/profile.pyi +31 -0
  595. package/analyzers/project-map-python/typeshed/stdlib/profiling/__init__.pyi +3 -0
  596. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/__init__.pyi +17 -0
  597. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/collector.pyi +25 -0
  598. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/gecko_collector.pyi +111 -0
  599. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/heatmap_collector.pyi +24 -0
  600. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/jsonl_collector.pyi +15 -0
  601. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/pstats_collector.pyi +17 -0
  602. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/stack_collector.pyi +39 -0
  603. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/string_table.pyi +5 -0
  604. package/analyzers/project-map-python/typeshed/stdlib/profiling/tracing.pyi +9 -0
  605. package/analyzers/project-map-python/typeshed/stdlib/pstats.pyi +96 -0
  606. package/analyzers/project-map-python/typeshed/stdlib/pty.pyi +24 -0
  607. package/analyzers/project-map-python/typeshed/stdlib/pwd.pyi +27 -0
  608. package/analyzers/project-map-python/typeshed/stdlib/py_compile.pyi +28 -0
  609. package/analyzers/project-map-python/typeshed/stdlib/pyclbr.pyi +57 -0
  610. package/analyzers/project-map-python/typeshed/stdlib/pydoc.pyi +348 -0
  611. package/analyzers/project-map-python/typeshed/stdlib/pydoc_data/__init__.pyi +0 -0
  612. package/analyzers/project-map-python/typeshed/stdlib/pydoc_data/module_docs.pyi +3 -0
  613. package/analyzers/project-map-python/typeshed/stdlib/pydoc_data/topics.pyi +3 -0
  614. package/analyzers/project-map-python/typeshed/stdlib/pyexpat/__init__.pyi +91 -0
  615. package/analyzers/project-map-python/typeshed/stdlib/pyexpat/errors.pyi +53 -0
  616. package/analyzers/project-map-python/typeshed/stdlib/pyexpat/model.pyi +13 -0
  617. package/analyzers/project-map-python/typeshed/stdlib/queue.pyi +55 -0
  618. package/analyzers/project-map-python/typeshed/stdlib/quopri.pyi +12 -0
  619. package/analyzers/project-map-python/typeshed/stdlib/random.pyi +135 -0
  620. package/analyzers/project-map-python/typeshed/stdlib/re.pyi +346 -0
  621. package/analyzers/project-map-python/typeshed/stdlib/readline.pyi +39 -0
  622. package/analyzers/project-map-python/typeshed/stdlib/reprlib.pyi +64 -0
  623. package/analyzers/project-map-python/typeshed/stdlib/resource.pyi +102 -0
  624. package/analyzers/project-map-python/typeshed/stdlib/rlcompleter.pyi +9 -0
  625. package/analyzers/project-map-python/typeshed/stdlib/runpy.pyi +24 -0
  626. package/analyzers/project-map-python/typeshed/stdlib/sched.pyi +34 -0
  627. package/analyzers/project-map-python/typeshed/stdlib/secrets.pyi +17 -0
  628. package/analyzers/project-map-python/typeshed/stdlib/select.pyi +171 -0
  629. package/analyzers/project-map-python/typeshed/stdlib/selectors.pyi +67 -0
  630. package/analyzers/project-map-python/typeshed/stdlib/shelve.pyi +110 -0
  631. package/analyzers/project-map-python/typeshed/stdlib/shlex.pyi +63 -0
  632. package/analyzers/project-map-python/typeshed/stdlib/shutil.pyi +243 -0
  633. package/analyzers/project-map-python/typeshed/stdlib/signal.pyi +174 -0
  634. package/analyzers/project-map-python/typeshed/stdlib/site.pyi +46 -0
  635. package/analyzers/project-map-python/typeshed/stdlib/smtpd.pyi +92 -0
  636. package/analyzers/project-map-python/typeshed/stdlib/smtplib.pyi +223 -0
  637. package/analyzers/project-map-python/typeshed/stdlib/sndhdr.pyi +14 -0
  638. package/analyzers/project-map-python/typeshed/stdlib/socket.pyi +1581 -0
  639. package/analyzers/project-map-python/typeshed/stdlib/socketserver.pyi +170 -0
  640. package/analyzers/project-map-python/typeshed/stdlib/spwd.pyi +45 -0
  641. package/analyzers/project-map-python/typeshed/stdlib/sqlite3/__init__.pyi +499 -0
  642. package/analyzers/project-map-python/typeshed/stdlib/sqlite3/dbapi2.pyi +244 -0
  643. package/analyzers/project-map-python/typeshed/stdlib/sqlite3/dump.pyi +2 -0
  644. package/analyzers/project-map-python/typeshed/stdlib/sre_compile.pyi +12 -0
  645. package/analyzers/project-map-python/typeshed/stdlib/sre_constants.pyi +135 -0
  646. package/analyzers/project-map-python/typeshed/stdlib/sre_parse.pyi +102 -0
  647. package/analyzers/project-map-python/typeshed/stdlib/ssl.pyi +530 -0
  648. package/analyzers/project-map-python/typeshed/stdlib/stat.pyi +126 -0
  649. package/analyzers/project-map-python/typeshed/stdlib/statistics.pyi +161 -0
  650. package/analyzers/project-map-python/typeshed/stdlib/string/__init__.pyi +81 -0
  651. package/analyzers/project-map-python/typeshed/stdlib/string/templatelib.pyi +36 -0
  652. package/analyzers/project-map-python/typeshed/stdlib/stringprep.pyi +29 -0
  653. package/analyzers/project-map-python/typeshed/stdlib/struct.pyi +5 -0
  654. package/analyzers/project-map-python/typeshed/stdlib/subprocess.pyi +1484 -0
  655. package/analyzers/project-map-python/typeshed/stdlib/sunau.pyi +82 -0
  656. package/analyzers/project-map-python/typeshed/stdlib/symtable.pyi +95 -0
  657. package/analyzers/project-map-python/typeshed/stdlib/sys/__init__.pyi +537 -0
  658. package/analyzers/project-map-python/typeshed/stdlib/sys/__jit.pyi +11 -0
  659. package/analyzers/project-map-python/typeshed/stdlib/sys/_monitoring.pyi +69 -0
  660. package/analyzers/project-map-python/typeshed/stdlib/sysconfig.pyi +59 -0
  661. package/analyzers/project-map-python/typeshed/stdlib/syslog.pyi +58 -0
  662. package/analyzers/project-map-python/typeshed/stdlib/tabnanny.pyi +16 -0
  663. package/analyzers/project-map-python/typeshed/stdlib/tarfile.pyi +864 -0
  664. package/analyzers/project-map-python/typeshed/stdlib/telnetlib.pyi +123 -0
  665. package/analyzers/project-map-python/typeshed/stdlib/tempfile.pyi +474 -0
  666. package/analyzers/project-map-python/typeshed/stdlib/termios.pyi +303 -0
  667. package/analyzers/project-map-python/typeshed/stdlib/textwrap.pyi +103 -0
  668. package/analyzers/project-map-python/typeshed/stdlib/this.pyi +2 -0
  669. package/analyzers/project-map-python/typeshed/stdlib/threading.pyi +221 -0
  670. package/analyzers/project-map-python/typeshed/stdlib/time.pyi +117 -0
  671. package/analyzers/project-map-python/typeshed/stdlib/timeit.pyi +46 -0
  672. package/analyzers/project-map-python/typeshed/stdlib/tkinter/__init__.pyi +4370 -0
  673. package/analyzers/project-map-python/typeshed/stdlib/tkinter/colorchooser.pyi +12 -0
  674. package/analyzers/project-map-python/typeshed/stdlib/tkinter/commondialog.pyi +14 -0
  675. package/analyzers/project-map-python/typeshed/stdlib/tkinter/constants.pyi +80 -0
  676. package/analyzers/project-map-python/typeshed/stdlib/tkinter/dialog.pyi +13 -0
  677. package/analyzers/project-map-python/typeshed/stdlib/tkinter/dnd.pyi +19 -0
  678. package/analyzers/project-map-python/typeshed/stdlib/tkinter/filedialog.pyi +149 -0
  679. package/analyzers/project-map-python/typeshed/stdlib/tkinter/font.pyi +120 -0
  680. package/analyzers/project-map-python/typeshed/stdlib/tkinter/messagebox.pyi +98 -0
  681. package/analyzers/project-map-python/typeshed/stdlib/tkinter/scrolledtext.pyi +9 -0
  682. package/analyzers/project-map-python/typeshed/stdlib/tkinter/simpledialog.pyi +58 -0
  683. package/analyzers/project-map-python/typeshed/stdlib/tkinter/tix.pyi +299 -0
  684. package/analyzers/project-map-python/typeshed/stdlib/tkinter/ttk.pyi +1434 -0
  685. package/analyzers/project-map-python/typeshed/stdlib/token.pyi +166 -0
  686. package/analyzers/project-map-python/typeshed/stdlib/tokenize.pyi +201 -0
  687. package/analyzers/project-map-python/typeshed/stdlib/tomllib.pyi +27 -0
  688. package/analyzers/project-map-python/typeshed/stdlib/trace.pyi +85 -0
  689. package/analyzers/project-map-python/typeshed/stdlib/traceback.pyi +293 -0
  690. package/analyzers/project-map-python/typeshed/stdlib/tracemalloc.pyi +123 -0
  691. package/analyzers/project-map-python/typeshed/stdlib/tty.pyi +29 -0
  692. package/analyzers/project-map-python/typeshed/stdlib/turtle.pyi +856 -0
  693. package/analyzers/project-map-python/typeshed/stdlib/types.pyi +744 -0
  694. package/analyzers/project-map-python/typeshed/stdlib/typing.pyi +1243 -0
  695. package/analyzers/project-map-python/typeshed/stdlib/typing_extensions.pyi +690 -0
  696. package/analyzers/project-map-python/typeshed/stdlib/unicodedata.pyi +94 -0
  697. package/analyzers/project-map-python/typeshed/stdlib/unittest/__init__.pyi +63 -0
  698. package/analyzers/project-map-python/typeshed/stdlib/unittest/_log.pyi +29 -0
  699. package/analyzers/project-map-python/typeshed/stdlib/unittest/async_case.pyi +24 -0
  700. package/analyzers/project-map-python/typeshed/stdlib/unittest/case.pyi +353 -0
  701. package/analyzers/project-map-python/typeshed/stdlib/unittest/loader.pyi +55 -0
  702. package/analyzers/project-map-python/typeshed/stdlib/unittest/main.pyi +74 -0
  703. package/analyzers/project-map-python/typeshed/stdlib/unittest/mock.pyi +555 -0
  704. package/analyzers/project-map-python/typeshed/stdlib/unittest/result.pyi +46 -0
  705. package/analyzers/project-map-python/typeshed/stdlib/unittest/runner.pyi +93 -0
  706. package/analyzers/project-map-python/typeshed/stdlib/unittest/signals.pyi +15 -0
  707. package/analyzers/project-map-python/typeshed/stdlib/unittest/suite.pyi +23 -0
  708. package/analyzers/project-map-python/typeshed/stdlib/unittest/util.pyi +39 -0
  709. package/analyzers/project-map-python/typeshed/stdlib/urllib/__init__.pyi +0 -0
  710. package/analyzers/project-map-python/typeshed/stdlib/urllib/error.pyi +29 -0
  711. package/analyzers/project-map-python/typeshed/stdlib/urllib/parse.pyi +354 -0
  712. package/analyzers/project-map-python/typeshed/stdlib/urllib/request.pyi +443 -0
  713. package/analyzers/project-map-python/typeshed/stdlib/urllib/response.pyi +45 -0
  714. package/analyzers/project-map-python/typeshed/stdlib/urllib/robotparser.pyi +20 -0
  715. package/analyzers/project-map-python/typeshed/stdlib/uu.pyi +12 -0
  716. package/analyzers/project-map-python/typeshed/stdlib/uuid.pyi +106 -0
  717. package/analyzers/project-map-python/typeshed/stdlib/venv/__init__.pyi +86 -0
  718. package/analyzers/project-map-python/typeshed/stdlib/warnings.pyi +146 -0
  719. package/analyzers/project-map-python/typeshed/stdlib/wave.pyi +105 -0
  720. package/analyzers/project-map-python/typeshed/stdlib/weakref.pyi +213 -0
  721. package/analyzers/project-map-python/typeshed/stdlib/webbrowser.pyi +78 -0
  722. package/analyzers/project-map-python/typeshed/stdlib/winreg.pyi +137 -0
  723. package/analyzers/project-map-python/typeshed/stdlib/winsound.pyi +40 -0
  724. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/__init__.pyi +0 -0
  725. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/handlers.pyi +91 -0
  726. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/headers.pyi +27 -0
  727. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/simple_server.pyi +37 -0
  728. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/types.pyi +31 -0
  729. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/util.pyi +26 -0
  730. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/validate.pyi +49 -0
  731. package/analyzers/project-map-python/typeshed/stdlib/xdrlib.pyi +57 -0
  732. package/analyzers/project-map-python/typeshed/stdlib/xml/__init__.pyi +9 -0
  733. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/NodeFilter.pyi +22 -0
  734. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/__init__.pyi +101 -0
  735. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/domreg.pyi +8 -0
  736. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/expatbuilder.pyi +125 -0
  737. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/minicompat.pyi +24 -0
  738. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/minidom.pyi +693 -0
  739. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/pulldom.pyi +109 -0
  740. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/xmlbuilder.pyi +81 -0
  741. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/ElementInclude.pyi +28 -0
  742. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/ElementPath.pyi +42 -0
  743. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/ElementTree.pyi +402 -0
  744. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/__init__.pyi +0 -0
  745. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/cElementTree.pyi +1 -0
  746. package/analyzers/project-map-python/typeshed/stdlib/xml/parsers/__init__.pyi +1 -0
  747. package/analyzers/project-map-python/typeshed/stdlib/xml/parsers/expat/__init__.pyi +7 -0
  748. package/analyzers/project-map-python/typeshed/stdlib/xml/parsers/expat/errors.pyi +1 -0
  749. package/analyzers/project-map-python/typeshed/stdlib/xml/parsers/expat/model.pyi +1 -0
  750. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/__init__.pyi +42 -0
  751. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/_exceptions.pyi +19 -0
  752. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/expatreader.pyi +72 -0
  753. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/handler.pyi +84 -0
  754. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/saxutils.pyi +68 -0
  755. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/xmlreader.pyi +94 -0
  756. package/analyzers/project-map-python/typeshed/stdlib/xml/utils.pyi +2 -0
  757. package/analyzers/project-map-python/typeshed/stdlib/xmlrpc/__init__.pyi +0 -0
  758. package/analyzers/project-map-python/typeshed/stdlib/xmlrpc/client.pyi +300 -0
  759. package/analyzers/project-map-python/typeshed/stdlib/xmlrpc/server.pyi +149 -0
  760. package/analyzers/project-map-python/typeshed/stdlib/xxlimited.pyi +15 -0
  761. package/analyzers/project-map-python/typeshed/stdlib/zipapp.pyi +19 -0
  762. package/analyzers/project-map-python/typeshed/stdlib/zipfile/__init__.pyi +411 -0
  763. package/analyzers/project-map-python/typeshed/stdlib/zipfile/_path/__init__.pyi +87 -0
  764. package/analyzers/project-map-python/typeshed/stdlib/zipfile/_path/glob.pyi +26 -0
  765. package/analyzers/project-map-python/typeshed/stdlib/zipimport.pyi +44 -0
  766. package/analyzers/project-map-python/typeshed/stdlib/zlib.pyi +81 -0
  767. package/analyzers/project-map-python/typeshed/stdlib/zoneinfo/__init__.pyi +36 -0
  768. package/analyzers/project-map-python/typeshed/stdlib/zoneinfo/_common.pyi +14 -0
  769. package/analyzers/project-map-python/typeshed/stdlib/zoneinfo/_tzpath.pyi +13 -0
  770. package/analyzers/project-map-python-worker.mjs +122009 -0
  771. package/analyzers/project-map-worker.mjs +31771 -0
  772. package/dist/cli.mjs +22754 -0
  773. package/package.json +40 -0
@@ -0,0 +1,4370 @@
1
+ import _tkinter
2
+ import sys
3
+ from _typeshed import FileDescriptorLike, Incomplete, MaybeNone, StrOrBytesPath
4
+ from collections.abc import Callable, Iterable, Mapping, Sequence
5
+ from tkinter.constants import *
6
+ from tkinter.font import _FontDescription
7
+ from types import GenericAlias, TracebackType
8
+ from typing import (
9
+ Any,
10
+ ClassVar,
11
+ Final,
12
+ Generic,
13
+ Literal,
14
+ NamedTuple,
15
+ ParamSpec,
16
+ Protocol,
17
+ TypeAlias,
18
+ TypedDict,
19
+ TypeVar,
20
+ overload,
21
+ type_check_only,
22
+ )
23
+ from typing_extensions import TypeVarTuple, Unpack, deprecated, disjoint_base
24
+
25
+ if sys.version_info >= (3, 11):
26
+ from enum import StrEnum
27
+ else:
28
+ from enum import Enum
29
+
30
+ __all__ = [
31
+ "TclError",
32
+ "NO",
33
+ "FALSE",
34
+ "OFF",
35
+ "YES",
36
+ "TRUE",
37
+ "ON",
38
+ "N",
39
+ "S",
40
+ "W",
41
+ "E",
42
+ "NW",
43
+ "SW",
44
+ "NE",
45
+ "SE",
46
+ "NS",
47
+ "EW",
48
+ "NSEW",
49
+ "CENTER",
50
+ "NONE",
51
+ "X",
52
+ "Y",
53
+ "BOTH",
54
+ "LEFT",
55
+ "TOP",
56
+ "RIGHT",
57
+ "BOTTOM",
58
+ "RAISED",
59
+ "SUNKEN",
60
+ "FLAT",
61
+ "RIDGE",
62
+ "GROOVE",
63
+ "SOLID",
64
+ "HORIZONTAL",
65
+ "VERTICAL",
66
+ "NUMERIC",
67
+ "CHAR",
68
+ "WORD",
69
+ "BASELINE",
70
+ "INSIDE",
71
+ "OUTSIDE",
72
+ "SEL",
73
+ "SEL_FIRST",
74
+ "SEL_LAST",
75
+ "END",
76
+ "INSERT",
77
+ "CURRENT",
78
+ "ANCHOR",
79
+ "ALL",
80
+ "NORMAL",
81
+ "DISABLED",
82
+ "ACTIVE",
83
+ "HIDDEN",
84
+ "CASCADE",
85
+ "CHECKBUTTON",
86
+ "COMMAND",
87
+ "RADIOBUTTON",
88
+ "SEPARATOR",
89
+ "SINGLE",
90
+ "BROWSE",
91
+ "MULTIPLE",
92
+ "EXTENDED",
93
+ "DOTBOX",
94
+ "UNDERLINE",
95
+ "PIESLICE",
96
+ "CHORD",
97
+ "ARC",
98
+ "FIRST",
99
+ "LAST",
100
+ "BUTT",
101
+ "PROJECTING",
102
+ "ROUND",
103
+ "BEVEL",
104
+ "MITER",
105
+ "MOVETO",
106
+ "SCROLL",
107
+ "UNITS",
108
+ "PAGES",
109
+ "TkVersion",
110
+ "TclVersion",
111
+ "READABLE",
112
+ "WRITABLE",
113
+ "EXCEPTION",
114
+ "EventType",
115
+ "Event",
116
+ "NoDefaultRoot",
117
+ "Variable",
118
+ "StringVar",
119
+ "IntVar",
120
+ "DoubleVar",
121
+ "BooleanVar",
122
+ "mainloop",
123
+ "getint",
124
+ "getdouble",
125
+ "getboolean",
126
+ "Misc",
127
+ "CallWrapper",
128
+ "XView",
129
+ "YView",
130
+ "Wm",
131
+ "Tk",
132
+ "Tcl",
133
+ "Pack",
134
+ "Place",
135
+ "Grid",
136
+ "BaseWidget",
137
+ "Widget",
138
+ "Toplevel",
139
+ "Button",
140
+ "Canvas",
141
+ "Checkbutton",
142
+ "Entry",
143
+ "Frame",
144
+ "Label",
145
+ "Listbox",
146
+ "Menu",
147
+ "Menubutton",
148
+ "Message",
149
+ "Radiobutton",
150
+ "Scale",
151
+ "Scrollbar",
152
+ "Text",
153
+ "OptionMenu",
154
+ "Image",
155
+ "PhotoImage",
156
+ "BitmapImage",
157
+ "image_names",
158
+ "image_types",
159
+ "Spinbox",
160
+ "LabelFrame",
161
+ "PanedWindow",
162
+ ]
163
+
164
+ # Using anything from tkinter.font in this file means that 'import tkinter'
165
+ # seems to also load tkinter.font. That's not how it actually works, but
166
+ # unfortunately not much can be done about it. https://github.com/python/typeshed/pull/4346
167
+
168
+ TclError = _tkinter.TclError
169
+ wantobjects: int
170
+ TkVersion: Final[float]
171
+ TclVersion: Final[float]
172
+ READABLE: Final = _tkinter.READABLE
173
+ WRITABLE: Final = _tkinter.WRITABLE
174
+ EXCEPTION: Final = _tkinter.EXCEPTION
175
+
176
+ # Quick guide for figuring out which widget class to choose:
177
+ # - Misc: any widget (don't use BaseWidget because Tk doesn't inherit from BaseWidget)
178
+ # - Widget: anything that is meant to be put into another widget with e.g. pack or grid
179
+ #
180
+ # Don't trust tkinter's docstrings, because they have been created by copy/pasting from
181
+ # Tk's manual pages more than 10 years ago. Use the latest manual pages instead:
182
+ #
183
+ # $ sudo apt install tk-doc tcl-doc
184
+ # $ man 3tk label # tkinter.Label
185
+ # $ man 3tk ttk_label # tkinter.ttk.Label
186
+ # $ man 3tcl after # tkinter.Misc.after
187
+ #
188
+ # You can also read the manual pages online: https://www.tcl.tk/doc/
189
+
190
+ # manual page: Tk_GetCursor
191
+ _Cursor: TypeAlias = str | tuple[str] | tuple[str, str] | tuple[str, str, str] | tuple[str, str, str, str]
192
+
193
+ if sys.version_info >= (3, 11):
194
+ @type_check_only
195
+ class _VersionInfoTypeBase(NamedTuple):
196
+ major: int
197
+ minor: int
198
+ micro: int
199
+ releaselevel: str
200
+ serial: int
201
+
202
+ if sys.version_info >= (3, 12):
203
+ class _VersionInfoType(_VersionInfoTypeBase): ...
204
+ else:
205
+ @disjoint_base
206
+ class _VersionInfoType(_VersionInfoTypeBase): ...
207
+
208
+ if sys.version_info >= (3, 11):
209
+ class EventType(StrEnum):
210
+ Activate = "36"
211
+ ButtonPress = "4"
212
+ Button = ButtonPress
213
+ ButtonRelease = "5"
214
+ Circulate = "26"
215
+ CirculateRequest = "27"
216
+ ClientMessage = "33"
217
+ Colormap = "32"
218
+ Configure = "22"
219
+ ConfigureRequest = "23"
220
+ Create = "16"
221
+ Deactivate = "37"
222
+ Destroy = "17"
223
+ Enter = "7"
224
+ Expose = "12"
225
+ FocusIn = "9"
226
+ FocusOut = "10"
227
+ GraphicsExpose = "13"
228
+ Gravity = "24"
229
+ KeyPress = "2"
230
+ Key = "2"
231
+ KeyRelease = "3"
232
+ Keymap = "11"
233
+ Leave = "8"
234
+ Map = "19"
235
+ MapRequest = "20"
236
+ Mapping = "34"
237
+ Motion = "6"
238
+ MouseWheel = "38"
239
+ NoExpose = "14"
240
+ Property = "28"
241
+ Reparent = "21"
242
+ ResizeRequest = "25"
243
+ Selection = "31"
244
+ SelectionClear = "29"
245
+ SelectionRequest = "30"
246
+ Unmap = "18"
247
+ VirtualEvent = "35"
248
+ Visibility = "15"
249
+
250
+ else:
251
+ class EventType(str, Enum):
252
+ Activate = "36"
253
+ ButtonPress = "4"
254
+ Button = ButtonPress
255
+ ButtonRelease = "5"
256
+ Circulate = "26"
257
+ CirculateRequest = "27"
258
+ ClientMessage = "33"
259
+ Colormap = "32"
260
+ Configure = "22"
261
+ ConfigureRequest = "23"
262
+ Create = "16"
263
+ Deactivate = "37"
264
+ Destroy = "17"
265
+ Enter = "7"
266
+ Expose = "12"
267
+ FocusIn = "9"
268
+ FocusOut = "10"
269
+ GraphicsExpose = "13"
270
+ Gravity = "24"
271
+ KeyPress = "2"
272
+ Key = KeyPress
273
+ KeyRelease = "3"
274
+ Keymap = "11"
275
+ Leave = "8"
276
+ Map = "19"
277
+ MapRequest = "20"
278
+ Mapping = "34"
279
+ Motion = "6"
280
+ MouseWheel = "38"
281
+ NoExpose = "14"
282
+ Property = "28"
283
+ Reparent = "21"
284
+ ResizeRequest = "25"
285
+ Selection = "31"
286
+ SelectionClear = "29"
287
+ SelectionRequest = "30"
288
+ Unmap = "18"
289
+ VirtualEvent = "35"
290
+ Visibility = "15"
291
+
292
+ _W = TypeVar("_W", bound=Misc)
293
+ # Events considered covariant because you should never assign to event.widget.
294
+ _W_co = TypeVar("_W_co", covariant=True, bound=Misc, default=Misc)
295
+
296
+ class Event(Generic[_W_co]):
297
+ serial: int
298
+ num: int
299
+ focus: bool
300
+ height: int
301
+ width: int
302
+ keycode: int
303
+ state: int | str
304
+ time: int
305
+ x: int
306
+ y: int
307
+ x_root: int
308
+ y_root: int
309
+ char: str
310
+ send_event: bool
311
+ keysym: str
312
+ keysym_num: int
313
+ type: EventType
314
+ widget: _W_co
315
+ delta: int
316
+ if sys.version_info >= (3, 15):
317
+ detail: str
318
+ user_data: str
319
+ if sys.version_info >= (3, 14):
320
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
321
+
322
+ def NoDefaultRoot() -> None: ...
323
+
324
+ class Variable:
325
+ def __init__(self, master: Misc | None = None, value=None, name: str | None = None) -> None: ...
326
+ def set(self, value) -> None: ...
327
+ initialize = set
328
+ def get(self): ...
329
+ def trace_add(self, mode: Literal["array", "read", "write", "unset"], callback: Callable[[str, str, str], object]) -> str: ...
330
+ def trace_remove(self, mode: Literal["array", "read", "write", "unset"], cbname: str) -> None: ...
331
+ def trace_info(self) -> list[tuple[tuple[Literal["array", "read", "write", "unset"], ...], str]]: ...
332
+ @deprecated("Deprecated since Python 3.14. Use `trace_add()` instead.")
333
+ def trace(self, mode, callback) -> str: ...
334
+ @deprecated("Deprecated since Python 3.14. Use `trace_add()` instead.")
335
+ def trace_variable(self, mode, callback) -> str: ...
336
+ @deprecated("Deprecated since Python 3.14. Use `trace_remove()` instead.")
337
+ def trace_vdelete(self, mode, cbname) -> None: ...
338
+ @deprecated("Deprecated since Python 3.14. Use `trace_info()` instead.")
339
+ def trace_vinfo(self) -> list[Incomplete]: ...
340
+ def __eq__(self, other: object) -> bool: ...
341
+ def __del__(self) -> None: ...
342
+ __hash__: ClassVar[None] # type: ignore[assignment]
343
+
344
+ class StringVar(Variable):
345
+ def __init__(self, master: Misc | None = None, value: str | None = None, name: str | None = None) -> None: ...
346
+ def set(self, value: str) -> None: ...
347
+ initialize = set
348
+ def get(self) -> str: ...
349
+
350
+ class IntVar(Variable):
351
+ def __init__(self, master: Misc | None = None, value: int | None = None, name: str | None = None) -> None: ...
352
+ def set(self, value: int) -> None: ...
353
+ initialize = set
354
+ def get(self) -> int: ...
355
+
356
+ class DoubleVar(Variable):
357
+ def __init__(self, master: Misc | None = None, value: float | None = None, name: str | None = None) -> None: ...
358
+ def set(self, value: float) -> None: ...
359
+ initialize = set
360
+ def get(self) -> float: ...
361
+
362
+ class BooleanVar(Variable):
363
+ def __init__(self, master: Misc | None = None, value: bool | None = None, name: str | None = None) -> None: ...
364
+ def set(self, value: bool) -> None: ...
365
+ initialize = set
366
+ def get(self) -> bool: ...
367
+
368
+ def mainloop(n: int = 0) -> None: ...
369
+
370
+ getint = int
371
+ getdouble = float
372
+
373
+ def getboolean(s) -> bool: ...
374
+
375
+ _Ts = TypeVarTuple("_Ts")
376
+ _P = ParamSpec("_P")
377
+
378
+ @type_check_only
379
+ class _GridIndexInfo(TypedDict, total=False):
380
+ minsize: float | str
381
+ pad: float | str
382
+ uniform: str | None
383
+ weight: int
384
+
385
+ @type_check_only
386
+ class _BusyInfo(TypedDict):
387
+ cursor: _Cursor
388
+
389
+ class Misc:
390
+ master: Misc | None
391
+ tk: _tkinter.TkappType
392
+ children: dict[str, Widget]
393
+ def destroy(self) -> None: ...
394
+ def deletecommand(self, name: str) -> None: ...
395
+ def tk_strictMotif(self, boolean=None): ...
396
+ def tk_bisque(self) -> None: ...
397
+ def tk_setPalette(self, *args, **kw) -> None: ...
398
+ def wait_variable(self, name: str | Variable = "PY_VAR") -> None: ...
399
+ waitvar = wait_variable
400
+ def wait_window(self, window: Misc | None = None) -> None: ...
401
+ def wait_visibility(self, window: Misc | None = None) -> None: ...
402
+ def setvar(self, name: str = "PY_VAR", value: str = "1") -> None: ...
403
+ def getvar(self, name: str = "PY_VAR"): ...
404
+ def getint(self, s) -> int: ...
405
+ def getdouble(self, s) -> float: ...
406
+ def getboolean(self, s) -> bool: ...
407
+ def focus_set(self) -> None: ...
408
+ focus = focus_set
409
+ def focus_force(self) -> None: ...
410
+ def focus_get(self) -> Misc | None: ...
411
+ def focus_displayof(self) -> Misc | None: ...
412
+ def focus_lastfor(self) -> Misc | None: ...
413
+ def tk_focusFollowsMouse(self) -> None: ...
414
+ def tk_focusNext(self) -> Misc | None: ...
415
+ def tk_focusPrev(self) -> Misc | None: ...
416
+ if sys.version_info >= (3, 14):
417
+ # .after() can be called without the "func" argument, but it is basically never what you want.
418
+ # It behaves like time.sleep() and freezes the GUI app.
419
+ def after(self, ms: int | Literal["idle"], func: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> str: ...
420
+ # after_idle is essentially partialmethod(after, "idle")
421
+ def after_idle(self, func: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> str: ...
422
+ else:
423
+ # .after() can be called without the "func" argument, but it is basically never what you want.
424
+ # It behaves like time.sleep() and freezes the GUI app.
425
+ def after(self, ms: int | Literal["idle"], func: Callable[[Unpack[_Ts]], object], *args: Unpack[_Ts]) -> str: ...
426
+ # after_idle is essentially partialmethod(after, "idle")
427
+ def after_idle(self, func: Callable[[Unpack[_Ts]], object], *args: Unpack[_Ts]) -> str: ...
428
+
429
+ def after_cancel(self, id: str) -> None: ...
430
+ if sys.version_info >= (3, 13):
431
+ def after_info(self, id: str | None = None) -> tuple[str, ...]: ...
432
+
433
+ def bell(self, displayof: Literal[0] | Misc | None = 0) -> None: ...
434
+ if sys.version_info >= (3, 13):
435
+ # Supports options from `_BusyInfo``
436
+ def tk_busy_cget(self, option: Literal["cursor"]) -> _Cursor: ...
437
+ busy_cget = tk_busy_cget
438
+ def tk_busy_configure(self, cnf: Any = None, **kw: Any) -> Any: ...
439
+ tk_busy_config = tk_busy_configure
440
+ busy_configure = tk_busy_configure
441
+ busy_config = tk_busy_configure
442
+ def tk_busy_current(self, pattern: str | None = None) -> list[Misc]: ...
443
+ busy_current = tk_busy_current
444
+ def tk_busy_forget(self) -> None: ...
445
+ busy_forget = tk_busy_forget
446
+ def tk_busy_hold(self, **kw: Unpack[_BusyInfo]) -> None: ...
447
+ tk_busy = tk_busy_hold
448
+ busy_hold = tk_busy_hold
449
+ busy = tk_busy_hold
450
+ def tk_busy_status(self) -> bool: ...
451
+ busy_status = tk_busy_status
452
+
453
+ def clipboard_get(self, *, displayof: Misc = ..., type: str = ...) -> str: ...
454
+ def clipboard_clear(self, *, displayof: Misc = ...) -> None: ...
455
+ def clipboard_append(self, string: str, *, displayof: Misc = ..., format: str = ..., type: str = ...) -> None: ...
456
+ def grab_current(self): ...
457
+ def grab_release(self) -> None: ...
458
+ def grab_set(self) -> None: ...
459
+ def grab_set_global(self) -> None: ...
460
+ def grab_status(self) -> Literal["local", "global"] | None: ...
461
+ def option_add(
462
+ self, pattern, value, priority: int | Literal["widgetDefault", "startupFile", "userDefault", "interactive"] | None = None
463
+ ) -> None: ...
464
+ def option_clear(self) -> None: ...
465
+ def option_get(self, name, className): ...
466
+ def option_readfile(self, fileName, priority=None) -> None: ...
467
+ def selection_clear(self, **kw) -> None: ...
468
+ def selection_get(self, **kw): ...
469
+ def selection_handle(self, command, **kw) -> None: ...
470
+ def selection_own(self, **kw) -> None: ...
471
+ def selection_own_get(self, **kw): ...
472
+ def send(self, interp, cmd, *args): ...
473
+ def lower(self, belowThis=None) -> None: ...
474
+ def tkraise(self, aboveThis=None) -> None: ...
475
+ lift = tkraise
476
+ if sys.version_info >= (3, 11):
477
+ def info_patchlevel(self) -> _VersionInfoType: ...
478
+
479
+ def winfo_atom(self, name: str, displayof: Literal[0] | Misc | None = 0) -> int: ...
480
+ def winfo_atomname(self, id: int, displayof: Literal[0] | Misc | None = 0) -> str: ...
481
+ def winfo_cells(self) -> int: ...
482
+ def winfo_children(self) -> list[Widget | Toplevel]: ...
483
+ def winfo_class(self) -> str: ...
484
+ def winfo_colormapfull(self) -> bool: ...
485
+ def winfo_containing(self, rootX: int, rootY: int, displayof: Literal[0] | Misc | None = 0) -> Misc | None: ...
486
+ def winfo_depth(self) -> int: ...
487
+ def winfo_exists(self) -> bool: ...
488
+ def winfo_fpixels(self, number: float | str) -> float: ...
489
+ def winfo_geometry(self) -> str: ...
490
+ def winfo_height(self) -> int: ...
491
+ def winfo_id(self) -> int: ...
492
+ def winfo_interps(self, displayof: Literal[0] | Misc | None = 0) -> tuple[str, ...]: ...
493
+ def winfo_ismapped(self) -> bool: ...
494
+ def winfo_manager(self) -> str: ...
495
+ def winfo_name(self) -> str: ...
496
+ def winfo_parent(self) -> str: ... # return value needs nametowidget()
497
+ def winfo_pathname(self, id: int, displayof: Literal[0] | Misc | None = 0): ...
498
+ def winfo_pixels(self, number: float | str) -> int: ...
499
+ def winfo_pointerx(self) -> int: ...
500
+ def winfo_pointerxy(self) -> tuple[int, int]: ...
501
+ def winfo_pointery(self) -> int: ...
502
+ def winfo_reqheight(self) -> int: ...
503
+ def winfo_reqwidth(self) -> int: ...
504
+ def winfo_rgb(self, color: str) -> tuple[int, int, int]: ...
505
+ def winfo_rootx(self) -> int: ...
506
+ def winfo_rooty(self) -> int: ...
507
+ def winfo_screen(self) -> str: ...
508
+ def winfo_screencells(self) -> int: ...
509
+ def winfo_screendepth(self) -> int: ...
510
+ def winfo_screenheight(self) -> int: ...
511
+ def winfo_screenmmheight(self) -> int: ...
512
+ def winfo_screenmmwidth(self) -> int: ...
513
+ def winfo_screenvisual(self) -> str: ...
514
+ def winfo_screenwidth(self) -> int: ...
515
+ def winfo_server(self) -> str: ...
516
+ def winfo_toplevel(self) -> Tk | Toplevel: ...
517
+ def winfo_viewable(self) -> bool: ...
518
+ def winfo_visual(self) -> str: ...
519
+ def winfo_visualid(self) -> str: ...
520
+ def winfo_visualsavailable(self, includeids: bool = False) -> list[tuple[str, int]]: ...
521
+ def winfo_vrootheight(self) -> int: ...
522
+ def winfo_vrootwidth(self) -> int: ...
523
+ def winfo_vrootx(self) -> int: ...
524
+ def winfo_vrooty(self) -> int: ...
525
+ def winfo_width(self) -> int: ...
526
+ def winfo_x(self) -> int: ...
527
+ def winfo_y(self) -> int: ...
528
+ def update(self) -> None: ...
529
+ def update_idletasks(self) -> None: ...
530
+
531
+ @overload
532
+ def bindtags(self, tagList: None = None) -> tuple[str, ...]: ...
533
+ @overload
534
+ def bindtags(self, tagList: list[str] | tuple[str, ...]) -> None: ...
535
+
536
+ # bind with isinstance(func, str) doesn't return anything, but all other
537
+ # binds do. The default value of func is not str.
538
+ @overload
539
+ def bind(
540
+ self,
541
+ sequence: str | None = None,
542
+ func: Callable[[Event[Misc]], object] | None = None,
543
+ add: Literal["", "+"] | bool | None = None,
544
+ ) -> str: ...
545
+ @overload
546
+ def bind(self, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
547
+ @overload
548
+ def bind(self, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
549
+
550
+ # There's no way to know what type of widget bind_all and bind_class
551
+ # callbacks will get, so those are Misc.
552
+ @overload
553
+ def bind_all(
554
+ self,
555
+ sequence: str | None = None,
556
+ func: Callable[[Event[Misc]], object] | None = None,
557
+ add: Literal["", "+"] | bool | None = None,
558
+ ) -> str: ...
559
+ @overload
560
+ def bind_all(self, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
561
+ @overload
562
+ def bind_all(self, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
563
+
564
+ @overload
565
+ def bind_class(
566
+ self,
567
+ className: str,
568
+ sequence: str | None = None,
569
+ func: Callable[[Event[Misc]], object] | None = None,
570
+ add: Literal["", "+"] | bool | None = None,
571
+ ) -> str: ...
572
+ @overload
573
+ def bind_class(self, className: str, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
574
+ @overload
575
+ def bind_class(self, className: str, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
576
+
577
+ def unbind(self, sequence: str, funcid: str | None = None) -> None: ...
578
+ def unbind_all(self, sequence: str) -> None: ...
579
+ def unbind_class(self, className: str, sequence: str) -> None: ...
580
+ def mainloop(self, n: int = 0) -> None: ...
581
+ def quit(self) -> None: ...
582
+ @property
583
+ def _windowingsystem(self) -> Literal["win32", "aqua", "x11"]: ...
584
+ def nametowidget(self, name: str | Misc | _tkinter.Tcl_Obj) -> Any: ...
585
+ def register(
586
+ self, func: Callable[..., object], subst: Callable[..., Sequence[Any]] | None = None, needcleanup: int = 1
587
+ ) -> str: ...
588
+ def keys(self) -> list[str]: ...
589
+
590
+ @overload
591
+ def pack_propagate(self, flag: bool) -> bool | None: ...
592
+ @overload
593
+ def pack_propagate(self) -> None: ...
594
+
595
+ propagate = pack_propagate
596
+ def grid_anchor(self, anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] | None = None) -> None: ...
597
+ anchor = grid_anchor
598
+
599
+ @overload
600
+ def grid_bbox(
601
+ self, column: None = None, row: None = None, col2: None = None, row2: None = None
602
+ ) -> tuple[int, int, int, int] | None: ...
603
+ @overload
604
+ def grid_bbox(self, column: int, row: int, col2: None = None, row2: None = None) -> tuple[int, int, int, int] | None: ...
605
+ @overload
606
+ def grid_bbox(self, column: int, row: int, col2: int, row2: int) -> tuple[int, int, int, int] | None: ...
607
+
608
+ bbox = grid_bbox
609
+ def grid_columnconfigure(
610
+ self,
611
+ index: int | str | list[int] | tuple[int, ...],
612
+ cnf: _GridIndexInfo = {},
613
+ *,
614
+ minsize: float | str = ...,
615
+ pad: float | str = ...,
616
+ uniform: str = ...,
617
+ weight: int = ...,
618
+ ) -> _GridIndexInfo | MaybeNone: ... # can be None but annoying to check
619
+ def grid_rowconfigure(
620
+ self,
621
+ index: int | str | list[int] | tuple[int, ...],
622
+ cnf: _GridIndexInfo = {},
623
+ *,
624
+ minsize: float | str = ...,
625
+ pad: float | str = ...,
626
+ uniform: str = ...,
627
+ weight: int = ...,
628
+ ) -> _GridIndexInfo | MaybeNone: ... # can be None but annoying to check
629
+ columnconfigure = grid_columnconfigure
630
+ rowconfigure = grid_rowconfigure
631
+ def grid_location(self, x: float | str, y: float | str) -> tuple[int, int]: ...
632
+
633
+ @overload
634
+ def grid_propagate(self, flag: bool) -> None: ...
635
+ @overload
636
+ def grid_propagate(self) -> bool: ...
637
+
638
+ def grid_size(self) -> tuple[int, int]: ...
639
+ size = grid_size
640
+ # Widget because Toplevel or Tk is never a slave
641
+ def pack_slaves(self) -> list[Widget]: ...
642
+ def grid_slaves(self, row: int | None = None, column: int | None = None) -> list[Widget]: ...
643
+ def place_slaves(self) -> list[Widget]: ...
644
+ slaves = pack_slaves
645
+ if sys.version_info >= (3, 15):
646
+ def pack_content(self) -> list[Widget]: ...
647
+ def grid_content(self, row: int | None = None, column: int | None = None) -> list[Widget]: ...
648
+ def place_content(self) -> list[Widget]: ...
649
+ content = pack_content
650
+
651
+ def event_add(self, virtual: str, *sequences: str) -> None: ...
652
+ def event_delete(self, virtual: str, *sequences: str) -> None: ...
653
+ def event_generate(
654
+ self,
655
+ sequence: str,
656
+ *,
657
+ above: Misc | int = ...,
658
+ borderwidth: float | str = ...,
659
+ button: int = ...,
660
+ count: int = ...,
661
+ data: Any = ..., # anything with usable str() value
662
+ delta: int = ...,
663
+ detail: str = ...,
664
+ focus: bool = ...,
665
+ height: float | str = ...,
666
+ keycode: int = ...,
667
+ keysym: str = ...,
668
+ mode: str = ...,
669
+ override: bool = ...,
670
+ place: Literal["PlaceOnTop", "PlaceOnBottom"] = ...,
671
+ root: Misc | int = ...,
672
+ rootx: float | str = ...,
673
+ rooty: float | str = ...,
674
+ sendevent: bool = ...,
675
+ serial: int = ...,
676
+ state: int | str = ...,
677
+ subwindow: Misc | int = ...,
678
+ time: int = ...,
679
+ warp: bool = ...,
680
+ width: float | str = ...,
681
+ when: Literal["now", "tail", "head", "mark"] = ...,
682
+ x: float | str = ...,
683
+ y: float | str = ...,
684
+ ) -> None: ...
685
+ def event_info(self, virtual: str | None = None) -> tuple[str, ...]: ...
686
+ def image_names(self) -> tuple[str, ...]: ...
687
+ def image_types(self) -> tuple[str, ...]: ...
688
+ # See #4363 and #4891
689
+ def __setitem__(self, key: str, value: Any) -> None: ...
690
+ def __getitem__(self, key: str) -> Any: ...
691
+ def cget(self, key: str) -> Any: ...
692
+ def configure(self, cnf: Any = None) -> Any: ...
693
+ config = configure
694
+
695
+ class CallWrapper:
696
+ func: Incomplete
697
+ subst: Incomplete
698
+ widget: Incomplete
699
+ def __init__(self, func, subst, widget) -> None: ...
700
+ def __call__(self, *args): ...
701
+
702
+ class XView:
703
+ @overload
704
+ def xview(self) -> tuple[float, float]: ...
705
+ @overload
706
+ def xview(self, *args) -> None: ...
707
+
708
+ def xview_moveto(self, fraction: float) -> None: ...
709
+
710
+ @overload
711
+ def xview_scroll(self, number: int, what: Literal["units", "pages"]) -> None: ...
712
+ @overload
713
+ def xview_scroll(self, number: float | str, what: Literal["pixels"]) -> None: ...
714
+
715
+ class YView:
716
+ @overload
717
+ def yview(self) -> tuple[float, float]: ...
718
+ @overload
719
+ def yview(self, *args) -> None: ...
720
+
721
+ def yview_moveto(self, fraction: float) -> None: ...
722
+
723
+ @overload
724
+ def yview_scroll(self, number: int, what: Literal["units", "pages"]) -> None: ...
725
+ @overload
726
+ def yview_scroll(self, number: float | str, what: Literal["pixels"]) -> None: ...
727
+
728
+ if sys.platform == "darwin":
729
+ @type_check_only
730
+ class _WmAttributes(TypedDict):
731
+ alpha: float
732
+ fullscreen: bool
733
+ modified: bool
734
+ notify: bool
735
+ titlepath: str
736
+ topmost: bool
737
+ transparent: bool
738
+ type: str # Present, but not actually used on darwin
739
+
740
+ elif sys.platform == "win32":
741
+ @type_check_only
742
+ class _WmAttributes(TypedDict):
743
+ alpha: float
744
+ transparentcolor: str
745
+ disabled: bool
746
+ fullscreen: bool
747
+ toolwindow: bool
748
+ topmost: bool
749
+
750
+ else:
751
+ # X11
752
+ @type_check_only
753
+ class _WmAttributes(TypedDict):
754
+ alpha: float
755
+ topmost: bool
756
+ zoomed: bool
757
+ fullscreen: bool
758
+ type: str
759
+
760
+ class Wm:
761
+ @overload
762
+ def wm_aspect(self, minNumer: int, minDenom: int, maxNumer: int, maxDenom: int) -> None: ...
763
+ @overload
764
+ def wm_aspect(
765
+ self, minNumer: None = None, minDenom: None = None, maxNumer: None = None, maxDenom: None = None
766
+ ) -> tuple[int, int, int, int] | None: ...
767
+
768
+ aspect = wm_aspect
769
+
770
+ # wm_attributes: Get all attributes
771
+ if sys.version_info >= (3, 13):
772
+ @overload
773
+ def wm_attributes(self, *, return_python_dict: Literal[False] = False) -> tuple[Any, ...]: ...
774
+ @overload
775
+ def wm_attributes(self, *, return_python_dict: Literal[True]) -> _WmAttributes: ...
776
+ else:
777
+ @overload
778
+ def wm_attributes(self) -> tuple[Any, ...]: ...
779
+
780
+ # wm_attributes: Get one attribute (old variant using string that starts with "-")
781
+ @overload
782
+ def wm_attributes(self, option: Literal["-alpha"], /) -> float: ...
783
+ @overload
784
+ def wm_attributes(self, option: Literal["-fullscreen"], /) -> bool: ...
785
+ @overload
786
+ def wm_attributes(self, option: Literal["-topmost"], /) -> bool: ...
787
+ if sys.platform == "darwin":
788
+ @overload
789
+ def wm_attributes(self, option: Literal["-modified"], /) -> bool: ...
790
+ @overload
791
+ def wm_attributes(self, option: Literal["-notify"], /) -> bool: ...
792
+ @overload
793
+ def wm_attributes(self, option: Literal["-titlepath"], /) -> str: ...
794
+ @overload
795
+ def wm_attributes(self, option: Literal["-transparent"], /) -> bool: ...
796
+ @overload
797
+ def wm_attributes(self, option: Literal["-type"], /) -> str: ...
798
+ elif sys.platform == "win32":
799
+ @overload
800
+ def wm_attributes(self, option: Literal["-transparentcolor"], /) -> str: ...
801
+ @overload
802
+ def wm_attributes(self, option: Literal["-disabled"], /) -> bool: ...
803
+ @overload
804
+ def wm_attributes(self, option: Literal["-toolwindow"], /) -> bool: ...
805
+ else:
806
+ # X11
807
+ @overload
808
+ def wm_attributes(self, option: Literal["-zoomed"], /) -> bool: ...
809
+ @overload
810
+ def wm_attributes(self, option: Literal["-type"], /) -> str: ...
811
+ if sys.version_info >= (3, 13):
812
+ # wm_attributes: Get one attribute (new variant without "-")
813
+ @overload
814
+ def wm_attributes(self, option: Literal["alpha"], /) -> float: ...
815
+ @overload
816
+ def wm_attributes(self, option: Literal["fullscreen"], /) -> bool: ...
817
+ @overload
818
+ def wm_attributes(self, option: Literal["topmost"], /) -> bool: ...
819
+ if sys.platform == "darwin":
820
+ @overload
821
+ def wm_attributes(self, option: Literal["modified"], /) -> bool: ...
822
+ @overload
823
+ def wm_attributes(self, option: Literal["notify"], /) -> bool: ...
824
+ @overload
825
+ def wm_attributes(self, option: Literal["titlepath"], /) -> str: ...
826
+ @overload
827
+ def wm_attributes(self, option: Literal["transparent"], /) -> bool: ...
828
+ @overload
829
+ def wm_attributes(self, option: Literal["type"], /) -> str: ...
830
+ elif sys.platform == "win32":
831
+ @overload
832
+ def wm_attributes(self, option: Literal["transparentcolor"], /) -> str: ...
833
+ @overload
834
+ def wm_attributes(self, option: Literal["disabled"], /) -> bool: ...
835
+ @overload
836
+ def wm_attributes(self, option: Literal["toolwindow"], /) -> bool: ...
837
+ else:
838
+ # X11
839
+ @overload
840
+ def wm_attributes(self, option: Literal["zoomed"], /) -> bool: ...
841
+ @overload
842
+ def wm_attributes(self, option: Literal["type"], /) -> str: ...
843
+
844
+ # wm_attributes: Set an attribute (old variant using string that starts with "-")
845
+ @overload
846
+ def wm_attributes(self, option: str, /): ...
847
+ @overload
848
+ def wm_attributes(self, option: Literal["-alpha"], value: float, /) -> Literal[""]: ...
849
+ @overload
850
+ def wm_attributes(self, option: Literal["-fullscreen"], value: bool, /) -> Literal[""]: ...
851
+ @overload
852
+ def wm_attributes(self, option: Literal["-topmost"], value: bool, /) -> Literal[""]: ...
853
+ if sys.platform == "darwin":
854
+ @overload
855
+ def wm_attributes(self, option: Literal["-modified"], value: bool, /) -> Literal[""]: ...
856
+ @overload
857
+ def wm_attributes(self, option: Literal["-notify"], value: bool, /) -> Literal[""]: ...
858
+ @overload
859
+ def wm_attributes(self, option: Literal["-titlepath"], value: str, /) -> Literal[""]: ...
860
+ @overload
861
+ def wm_attributes(self, option: Literal["-transparent"], value: bool, /) -> Literal[""]: ...
862
+ elif sys.platform == "win32":
863
+ @overload
864
+ def wm_attributes(self, option: Literal["-transparentcolor"], value: str, /) -> Literal[""]: ...
865
+ @overload
866
+ def wm_attributes(self, option: Literal["-disabled"], value: bool, /) -> Literal[""]: ...
867
+ @overload
868
+ def wm_attributes(self, option: Literal["-toolwindow"], value: bool, /) -> Literal[""]: ...
869
+ else:
870
+ # X11
871
+ @overload
872
+ def wm_attributes(self, option: Literal["-zoomed"], value: bool, /) -> Literal[""]: ...
873
+ @overload
874
+ def wm_attributes(self, option: Literal["-type"], value: str, /) -> Literal[""]: ...
875
+
876
+ # wm_attributes: Set multiple attributes (old variant using strings that start with "-")
877
+ @overload
878
+ def wm_attributes(self, option: str, value, /, *__other_option_value_pairs: Any) -> Literal[""]: ...
879
+
880
+ # wm_attributes: Set an attribute (new variant with kwarg instead of string)
881
+ if sys.version_info >= (3, 13):
882
+ if sys.platform == "darwin":
883
+ @overload
884
+ def wm_attributes(
885
+ self,
886
+ *,
887
+ alpha: float = ...,
888
+ fullscreen: bool = ...,
889
+ modified: bool = ...,
890
+ notify: bool = ...,
891
+ titlepath: str = ...,
892
+ topmost: bool = ...,
893
+ transparent: bool = ...,
894
+ ) -> None: ...
895
+ elif sys.platform == "win32":
896
+ @overload
897
+ def wm_attributes(
898
+ self,
899
+ *,
900
+ alpha: float = ...,
901
+ transparentcolor: str = ...,
902
+ disabled: bool = ...,
903
+ fullscreen: bool = ...,
904
+ toolwindow: bool = ...,
905
+ topmost: bool = ...,
906
+ ) -> None: ...
907
+ else:
908
+ # X11
909
+ @overload
910
+ def wm_attributes(
911
+ self, *, alpha: float = ..., topmost: bool = ..., zoomed: bool = ..., fullscreen: bool = ..., type: str = ...
912
+ ) -> None: ...
913
+
914
+ attributes = wm_attributes
915
+ def wm_client(self, name: str | None = None) -> str: ...
916
+ client = wm_client
917
+
918
+ @overload
919
+ def wm_colormapwindows(self) -> list[Misc]: ...
920
+ @overload
921
+ def wm_colormapwindows(self, wlist: list[Misc] | tuple[Misc, ...], /) -> None: ...
922
+ @overload
923
+ def wm_colormapwindows(self, first_wlist_item: Misc, /, *other_wlist_items: Misc) -> None: ...
924
+
925
+ colormapwindows = wm_colormapwindows
926
+ def wm_command(self, value: str | None = None) -> str: ...
927
+ command = wm_command
928
+ # Some of these always return empty string, but return type is set to None to prevent accidentally using it
929
+ def wm_deiconify(self) -> None: ...
930
+ deiconify = wm_deiconify
931
+ def wm_focusmodel(self, model: Literal["active", "passive"] | None = None) -> Literal["active", "passive", ""]: ...
932
+ focusmodel = wm_focusmodel
933
+ def wm_forget(self, window: Wm) -> None: ...
934
+ forget = wm_forget
935
+ def wm_frame(self) -> str: ...
936
+ frame = wm_frame
937
+
938
+ @overload
939
+ def wm_geometry(self, newGeometry: None = None) -> str: ...
940
+ @overload
941
+ def wm_geometry(self, newGeometry: str) -> None: ...
942
+
943
+ geometry = wm_geometry
944
+ def wm_grid(self, baseWidth=None, baseHeight=None, widthInc=None, heightInc=None): ...
945
+ grid = wm_grid
946
+ def wm_group(self, pathName=None): ...
947
+ group = wm_group
948
+ def wm_iconbitmap(self, bitmap=None, default=None): ...
949
+ iconbitmap = wm_iconbitmap
950
+ def wm_iconify(self) -> None: ...
951
+ iconify = wm_iconify
952
+ def wm_iconmask(self, bitmap=None): ...
953
+ iconmask = wm_iconmask
954
+ def wm_iconname(self, newName=None) -> str: ...
955
+ iconname = wm_iconname
956
+ def wm_iconphoto(self, default: bool, image1: _PhotoImageLike | str, /, *args: _PhotoImageLike | str) -> None: ...
957
+ iconphoto = wm_iconphoto
958
+ def wm_iconposition(self, x: int | None = None, y: int | None = None) -> tuple[int, int] | None: ...
959
+ iconposition = wm_iconposition
960
+ def wm_iconwindow(self, pathName=None): ...
961
+ iconwindow = wm_iconwindow
962
+ def wm_manage(self, widget) -> None: ...
963
+ manage = wm_manage
964
+
965
+ @overload
966
+ def wm_maxsize(self, width: None = None, height: None = None) -> tuple[int, int]: ...
967
+ @overload
968
+ def wm_maxsize(self, width: int, height: int) -> None: ...
969
+
970
+ maxsize = wm_maxsize
971
+
972
+ @overload
973
+ def wm_minsize(self, width: None = None, height: None = None) -> tuple[int, int]: ...
974
+ @overload
975
+ def wm_minsize(self, width: int, height: int) -> None: ...
976
+
977
+ minsize = wm_minsize
978
+
979
+ @overload
980
+ def wm_overrideredirect(self, boolean: None = None) -> bool | None: ... # returns True or None
981
+ @overload
982
+ def wm_overrideredirect(self, boolean: bool) -> None: ...
983
+
984
+ overrideredirect = wm_overrideredirect
985
+ def wm_positionfrom(self, who: Literal["program", "user"] | None = None) -> Literal["", "program", "user"]: ...
986
+ positionfrom = wm_positionfrom
987
+
988
+ @overload
989
+ def wm_protocol(self, name: str, func: Callable[[], object] | str) -> None: ...
990
+ @overload
991
+ def wm_protocol(self, name: str, func: None = None) -> str: ...
992
+ @overload
993
+ def wm_protocol(self, name: None = None, func: None = None) -> tuple[str, ...]: ...
994
+
995
+ protocol = wm_protocol
996
+
997
+ @overload
998
+ def wm_resizable(self, width: None = None, height: None = None) -> tuple[bool, bool]: ...
999
+ @overload
1000
+ def wm_resizable(self, width: bool, height: bool) -> None: ...
1001
+
1002
+ resizable = wm_resizable
1003
+ def wm_sizefrom(self, who: Literal["program", "user"] | None = None) -> Literal["", "program", "user"]: ...
1004
+ sizefrom = wm_sizefrom
1005
+
1006
+ @overload
1007
+ def wm_state(self, newstate: None = None) -> str: ...
1008
+ @overload
1009
+ def wm_state(self, newstate: str) -> None: ...
1010
+
1011
+ state = wm_state
1012
+
1013
+ @overload
1014
+ def wm_title(self, string: None = None) -> str: ...
1015
+ @overload
1016
+ def wm_title(self, string: str) -> None: ...
1017
+
1018
+ title = wm_title
1019
+
1020
+ @overload
1021
+ def wm_transient(self, master: None = None) -> _tkinter.Tcl_Obj: ...
1022
+ @overload
1023
+ def wm_transient(self, master: Wm | _tkinter.Tcl_Obj) -> None: ...
1024
+
1025
+ transient = wm_transient
1026
+ def wm_withdraw(self) -> None: ...
1027
+ withdraw = wm_withdraw
1028
+
1029
+ class Tk(Misc, Wm):
1030
+ master: None
1031
+ def __init__(
1032
+ # Make sure to keep in sync with other functions that use the same
1033
+ # args.
1034
+ # use `git grep screenName` to find them
1035
+ self,
1036
+ screenName: str | None = None,
1037
+ baseName: str | None = None,
1038
+ className: str = "Tk",
1039
+ useTk: bool = True,
1040
+ sync: bool = False,
1041
+ use: str | None = None,
1042
+ ) -> None: ...
1043
+
1044
+ # Keep this in sync with ttktheme.ThemedTk. See issue #13858
1045
+ @overload
1046
+ def configure(
1047
+ self,
1048
+ cnf: dict[str, Any] | None = None,
1049
+ *,
1050
+ background: str = ...,
1051
+ bd: float | str = ...,
1052
+ bg: str = ...,
1053
+ border: float | str = ...,
1054
+ borderwidth: float | str = ...,
1055
+ cursor: _Cursor = ...,
1056
+ height: float | str = ...,
1057
+ highlightbackground: str = ...,
1058
+ highlightcolor: str = ...,
1059
+ highlightthickness: float | str = ...,
1060
+ menu: Menu = ...,
1061
+ padx: float | str = ...,
1062
+ pady: float | str = ...,
1063
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1064
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
1065
+ width: float | str = ...,
1066
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
1067
+ @overload
1068
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
1069
+
1070
+ config = configure
1071
+ def destroy(self) -> None: ...
1072
+ def readprofile(self, baseName: str, className: str) -> None: ...
1073
+ report_callback_exception: Callable[[type[BaseException], BaseException, TracebackType | None], object]
1074
+ # Tk has __getattr__ so that tk_instance.foo falls back to tk_instance.tk.foo
1075
+ # Please keep in sync with _tkinter.TkappType.
1076
+ # Some methods are intentionally missing because they are inherited from Misc instead.
1077
+ def adderrorinfo(self, msg: str, /) -> None: ...
1078
+ def call(self, command: Any, /, *args: Any) -> Any: ...
1079
+ # TODO: Figure out what arguments the following `func` callbacks should accept
1080
+ def createcommand(self, name: str, func: Callable[..., object], /) -> None: ...
1081
+ if sys.platform != "win32":
1082
+ def createfilehandler(self, file: FileDescriptorLike, mask: int, func: Callable[..., object], /) -> None: ...
1083
+ def deletefilehandler(self, file: FileDescriptorLike, /) -> None: ...
1084
+
1085
+ def createtimerhandler(self, milliseconds: int, func: Callable[..., object], /): ...
1086
+ def dooneevent(self, flags: int = 0, /) -> int: ...
1087
+ def eval(self, script: str, /) -> str: ...
1088
+ def evalfile(self, fileName: str, /) -> str: ...
1089
+ def exprboolean(self, s: str, /) -> Literal[0, 1]: ...
1090
+ def exprdouble(self, s: str, /) -> float: ...
1091
+ def exprlong(self, s: str, /) -> int: ...
1092
+ def exprstring(self, s: str, /) -> str: ...
1093
+ def globalgetvar(self, *args, **kwargs): ...
1094
+ def globalsetvar(self, *args, **kwargs): ...
1095
+ def globalunsetvar(self, *args, **kwargs): ...
1096
+ def interpaddr(self) -> int: ...
1097
+ def loadtk(self) -> None: ...
1098
+ def record(self, script: str, /) -> str: ...
1099
+ if sys.version_info < (3, 11):
1100
+ @deprecated("Deprecated since Python 3.9; removed in Python 3.11. Use `splitlist()` instead.")
1101
+ def split(self, arg, /): ...
1102
+
1103
+ def splitlist(self, arg, /) -> tuple[Incomplete, ...]: ...
1104
+ def unsetvar(self, *args, **kwargs): ...
1105
+
1106
+ if sys.version_info >= (3, 14):
1107
+ @overload
1108
+ def wantobjects(self) -> Literal[0, 1]: ...
1109
+ else:
1110
+ @overload
1111
+ def wantobjects(self) -> bool: ...
1112
+
1113
+ @overload
1114
+ def wantobjects(self, wantobjects: Literal[0, 1] | bool, /) -> None: ...
1115
+
1116
+ def willdispatch(self) -> None: ...
1117
+
1118
+ def Tcl(screenName: str | None = None, baseName: str | None = None, className: str = "Tk", useTk: bool = False) -> Tk: ...
1119
+
1120
+ _InMiscTotal = TypedDict("_InMiscTotal", {"in": Misc})
1121
+ _InMiscNonTotal = TypedDict("_InMiscNonTotal", {"in": Misc}, total=False)
1122
+
1123
+ @type_check_only
1124
+ class _PackInfo(_InMiscTotal):
1125
+ # 'before' and 'after' never appear in _PackInfo
1126
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"]
1127
+ expand: bool
1128
+ fill: Literal["none", "x", "y", "both"]
1129
+ side: Literal["left", "right", "top", "bottom"]
1130
+ # Paddings come out as int or tuple of int, even though any screen units
1131
+ # can be specified in pack().
1132
+ ipadx: int
1133
+ ipady: int
1134
+ padx: int | tuple[int, int]
1135
+ pady: int | tuple[int, int]
1136
+
1137
+ class Pack:
1138
+ # _PackInfo is not the valid type for cnf because pad stuff accepts any
1139
+ # screen units instead of int only. I didn't bother to create another
1140
+ # TypedDict for cnf because it appears to be a legacy thing that was
1141
+ # replaced by **kwargs.
1142
+ def pack_configure(
1143
+ self,
1144
+ cnf: Mapping[str, Any] | None = {},
1145
+ *,
1146
+ after: Misc = ...,
1147
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
1148
+ before: Misc = ...,
1149
+ expand: bool | Literal[0, 1] = 0,
1150
+ fill: Literal["none", "x", "y", "both"] = ...,
1151
+ side: Literal["left", "right", "top", "bottom"] = ...,
1152
+ ipadx: float | str = ...,
1153
+ ipady: float | str = ...,
1154
+ padx: float | str | tuple[float | str, float | str] = ...,
1155
+ pady: float | str | tuple[float | str, float | str] = ...,
1156
+ in_: Misc = ...,
1157
+ **kw: Any, # allow keyword argument named 'in', see #4836
1158
+ ) -> None: ...
1159
+ def pack_forget(self) -> None: ...
1160
+ def pack_info(self) -> _PackInfo: ... # errors if widget hasn't been packed
1161
+ pack = pack_configure
1162
+ forget = pack_forget
1163
+ propagate = Misc.pack_propagate
1164
+
1165
+ @type_check_only
1166
+ class _PlaceInfo(_InMiscNonTotal): # empty dict if widget hasn't been placed
1167
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"]
1168
+ bordermode: Literal["inside", "outside", "ignore"]
1169
+ width: str # can be int()ed (even after e.g. widget.place(height='2.3c') or similar)
1170
+ height: str # can be int()ed
1171
+ x: str # can be int()ed
1172
+ y: str # can be int()ed
1173
+ relheight: str # can be float()ed if not empty string
1174
+ relwidth: str # can be float()ed if not empty string
1175
+ relx: str # can be float()ed if not empty string
1176
+ rely: str # can be float()ed if not empty string
1177
+
1178
+ class Place:
1179
+ def place_configure(
1180
+ self,
1181
+ cnf: Mapping[str, Any] | None = {},
1182
+ *,
1183
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
1184
+ bordermode: Literal["inside", "outside", "ignore"] = ...,
1185
+ width: float | str = ...,
1186
+ height: float | str = ...,
1187
+ x: float | str = ...,
1188
+ y: float | str = ...,
1189
+ # str allowed for compatibility with place_info()
1190
+ relheight: str | float = ...,
1191
+ relwidth: str | float = ...,
1192
+ relx: str | float = ...,
1193
+ rely: str | float = ...,
1194
+ in_: Misc = ...,
1195
+ **kw: Any, # allow keyword argument named 'in', see #4836
1196
+ ) -> None: ...
1197
+ def place_forget(self) -> None: ...
1198
+ def place_info(self) -> _PlaceInfo: ...
1199
+ place = place_configure
1200
+ info = place_info
1201
+
1202
+ @type_check_only
1203
+ class _GridInfo(_InMiscNonTotal): # empty dict if widget hasn't been gridded
1204
+ column: int
1205
+ columnspan: int
1206
+ row: int
1207
+ rowspan: int
1208
+ ipadx: int
1209
+ ipady: int
1210
+ padx: int | tuple[int, int]
1211
+ pady: int | tuple[int, int]
1212
+ sticky: str # consists of letters 'n', 's', 'w', 'e', no repeats, may be empty
1213
+
1214
+ class Grid:
1215
+ def grid_configure(
1216
+ self,
1217
+ cnf: Mapping[str, Any] | None = {},
1218
+ *,
1219
+ column: int = ...,
1220
+ columnspan: int = ...,
1221
+ row: int = ...,
1222
+ rowspan: int = ...,
1223
+ ipadx: float | str = ...,
1224
+ ipady: float | str = ...,
1225
+ padx: float | str | tuple[float | str, float | str] = ...,
1226
+ pady: float | str | tuple[float | str, float | str] = ...,
1227
+ sticky: (
1228
+ str | list[str] | tuple[str, ...]
1229
+ ) = ..., # consists of letters 'n', 's', 'w', 'e', may contain repeats, may be empty
1230
+ in_: Misc = ...,
1231
+ **kw: Any, # allow keyword argument named 'in', see #4836
1232
+ ) -> None: ...
1233
+ def grid_forget(self) -> None: ...
1234
+ def grid_remove(self) -> None: ...
1235
+ def grid_info(self) -> _GridInfo: ...
1236
+ grid = grid_configure
1237
+ location = Misc.grid_location
1238
+ size = Misc.grid_size
1239
+
1240
+ class BaseWidget(Misc):
1241
+ master: Misc
1242
+ widgetName: str
1243
+ def __init__(self, master, widgetName: str, cnf={}, kw={}, extra=()) -> None: ...
1244
+ def destroy(self) -> None: ...
1245
+
1246
+ # This class represents any widget except Toplevel or Tk.
1247
+ class Widget(BaseWidget, Pack, Place, Grid):
1248
+ # Allow bind callbacks to take e.g. Event[Label] instead of Event[Misc].
1249
+ # Tk and Toplevel get notified for their child widgets' events, but other
1250
+ # widgets don't.
1251
+ @overload
1252
+ def bind(
1253
+ self: _W,
1254
+ sequence: str | None = None,
1255
+ func: Callable[[Event[_W]], object] | None = None,
1256
+ add: Literal["", "+"] | bool | None = None,
1257
+ ) -> str: ...
1258
+ @overload
1259
+ def bind(self, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
1260
+ @overload
1261
+ def bind(self, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
1262
+
1263
+ class Toplevel(BaseWidget, Wm):
1264
+ # Toplevel and Tk have the same options because they correspond to the same
1265
+ # Tcl/Tk toplevel widget. For some reason, config and configure must be
1266
+ # copy/pasted here instead of aliasing as 'config = Tk.config'.
1267
+ def __init__(
1268
+ self,
1269
+ master: Misc | None = None,
1270
+ cnf: dict[str, Any] | None = {},
1271
+ *,
1272
+ background: str = ...,
1273
+ bd: float | str = 0,
1274
+ bg: str = ...,
1275
+ border: float | str = 0,
1276
+ borderwidth: float | str = 0,
1277
+ class_: str = "Toplevel",
1278
+ colormap: Literal["new", ""] | Misc = "",
1279
+ container: bool = False,
1280
+ cursor: _Cursor = "",
1281
+ height: float | str = 0,
1282
+ highlightbackground: str = ...,
1283
+ highlightcolor: str = ...,
1284
+ highlightthickness: float | str = 0,
1285
+ menu: Menu = ...,
1286
+ name: str = ...,
1287
+ padx: float | str = 0,
1288
+ pady: float | str = 0,
1289
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
1290
+ screen: str = "", # can't be changed after creating widget
1291
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
1292
+ use: int = ...,
1293
+ visual: str | tuple[str, int] = "",
1294
+ width: float | str = 0,
1295
+ ) -> None: ...
1296
+
1297
+ @overload
1298
+ def configure(
1299
+ self,
1300
+ cnf: dict[str, Any] | None = None,
1301
+ *,
1302
+ background: str = ...,
1303
+ bd: float | str = ...,
1304
+ bg: str = ...,
1305
+ border: float | str = ...,
1306
+ borderwidth: float | str = ...,
1307
+ cursor: _Cursor = ...,
1308
+ height: float | str = ...,
1309
+ highlightbackground: str = ...,
1310
+ highlightcolor: str = ...,
1311
+ highlightthickness: float | str = ...,
1312
+ menu: Menu = ...,
1313
+ padx: float | str = ...,
1314
+ pady: float | str = ...,
1315
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1316
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
1317
+ width: float | str = ...,
1318
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
1319
+ @overload
1320
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
1321
+
1322
+ config = configure
1323
+
1324
+ class Button(Widget):
1325
+ def __init__(
1326
+ self,
1327
+ master: Misc | None = None,
1328
+ cnf: dict[str, Any] | None = {},
1329
+ *,
1330
+ activebackground: str = ...,
1331
+ activeforeground: str = ...,
1332
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
1333
+ background: str = ...,
1334
+ bd: float | str = ..., # same as borderwidth
1335
+ bg: str = ..., # same as background
1336
+ bitmap: str = "",
1337
+ border: float | str = ..., # same as borderwidth
1338
+ borderwidth: float | str = ...,
1339
+ command: str | Callable[[], Any] = "",
1340
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
1341
+ cursor: _Cursor = "",
1342
+ default: Literal["normal", "active", "disabled"] = "disabled",
1343
+ disabledforeground: str = ...,
1344
+ fg: str = ..., # same as foreground
1345
+ font: _FontDescription = "TkDefaultFont",
1346
+ foreground: str = ...,
1347
+ # width and height must be int for buttons containing just text, but
1348
+ # buttons with an image accept any screen units.
1349
+ height: float | str = 0,
1350
+ highlightbackground: str = ...,
1351
+ highlightcolor: str = ...,
1352
+ highlightthickness: float | str = 1,
1353
+ image: _Image | str = "",
1354
+ justify: Literal["left", "center", "right"] = "center",
1355
+ name: str = ...,
1356
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = "",
1357
+ padx: float | str = ...,
1358
+ pady: float | str = ...,
1359
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1360
+ repeatdelay: int = ...,
1361
+ repeatinterval: int = ...,
1362
+ state: Literal["normal", "active", "disabled"] = "normal",
1363
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
1364
+ text: float | str = "",
1365
+ # We allow the textvariable to be any Variable, not necessarily
1366
+ # StringVar. This is useful for e.g. a button that displays the value
1367
+ # of an IntVar.
1368
+ textvariable: Variable = ...,
1369
+ underline: int = -1,
1370
+ width: float | str = 0,
1371
+ wraplength: float | str = 0,
1372
+ ) -> None: ...
1373
+
1374
+ @overload
1375
+ def configure(
1376
+ self,
1377
+ cnf: dict[str, Any] | None = None,
1378
+ *,
1379
+ activebackground: str = ...,
1380
+ activeforeground: str = ...,
1381
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
1382
+ background: str = ...,
1383
+ bd: float | str = ...,
1384
+ bg: str = ...,
1385
+ bitmap: str = ...,
1386
+ border: float | str = ...,
1387
+ borderwidth: float | str = ...,
1388
+ command: str | Callable[[], Any] = ...,
1389
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
1390
+ cursor: _Cursor = ...,
1391
+ default: Literal["normal", "active", "disabled"] = ...,
1392
+ disabledforeground: str = ...,
1393
+ fg: str = ...,
1394
+ font: _FontDescription = ...,
1395
+ foreground: str = ...,
1396
+ height: float | str = ...,
1397
+ highlightbackground: str = ...,
1398
+ highlightcolor: str = ...,
1399
+ highlightthickness: float | str = ...,
1400
+ image: _Image | str = ...,
1401
+ justify: Literal["left", "center", "right"] = ...,
1402
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = ...,
1403
+ padx: float | str = ...,
1404
+ pady: float | str = ...,
1405
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1406
+ repeatdelay: int = ...,
1407
+ repeatinterval: int = ...,
1408
+ state: Literal["normal", "active", "disabled"] = ...,
1409
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
1410
+ text: float | str = ...,
1411
+ textvariable: Variable = ...,
1412
+ underline: int = ...,
1413
+ width: float | str = ...,
1414
+ wraplength: float | str = ...,
1415
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
1416
+ @overload
1417
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
1418
+
1419
+ config = configure
1420
+ def flash(self) -> None: ...
1421
+ def invoke(self) -> Any: ...
1422
+
1423
+ class Canvas(Widget, XView, YView):
1424
+ def __init__(
1425
+ self,
1426
+ master: Misc | None = None,
1427
+ cnf: dict[str, Any] | None = {},
1428
+ *,
1429
+ background: str = ...,
1430
+ bd: float | str = 0,
1431
+ bg: str = ...,
1432
+ border: float | str = 0,
1433
+ borderwidth: float | str = 0,
1434
+ closeenough: float = 1.0,
1435
+ confine: bool = True,
1436
+ cursor: _Cursor = "",
1437
+ height: float | str = ..., # see COORDINATES in canvas manual page
1438
+ highlightbackground: str = ...,
1439
+ highlightcolor: str = ...,
1440
+ highlightthickness: float | str = ...,
1441
+ insertbackground: str = ...,
1442
+ insertborderwidth: float | str = 0,
1443
+ insertofftime: int = 300,
1444
+ insertontime: int = 600,
1445
+ insertwidth: float | str = 2,
1446
+ name: str = ...,
1447
+ offset=..., # undocumented
1448
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
1449
+ # Setting scrollregion to None doesn't reset it back to empty,
1450
+ # but setting it to () does.
1451
+ scrollregion: tuple[float | str, float | str, float | str, float | str] | tuple[()] = (),
1452
+ selectbackground: str = ...,
1453
+ selectborderwidth: float | str = 1,
1454
+ selectforeground: str = ...,
1455
+ # man page says that state can be 'hidden', but it can't
1456
+ state: Literal["normal", "disabled"] = "normal",
1457
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
1458
+ width: float | str = ...,
1459
+ xscrollcommand: str | Callable[[float, float], object] = "",
1460
+ xscrollincrement: float | str = 0,
1461
+ yscrollcommand: str | Callable[[float, float], object] = "",
1462
+ yscrollincrement: float | str = 0,
1463
+ ) -> None: ...
1464
+
1465
+ @overload
1466
+ def configure(
1467
+ self,
1468
+ cnf: dict[str, Any] | None = None,
1469
+ *,
1470
+ background: str = ...,
1471
+ bd: float | str = ...,
1472
+ bg: str = ...,
1473
+ border: float | str = ...,
1474
+ borderwidth: float | str = ...,
1475
+ closeenough: float = ...,
1476
+ confine: bool = ...,
1477
+ cursor: _Cursor = ...,
1478
+ height: float | str = ...,
1479
+ highlightbackground: str = ...,
1480
+ highlightcolor: str = ...,
1481
+ highlightthickness: float | str = ...,
1482
+ insertbackground: str = ...,
1483
+ insertborderwidth: float | str = ...,
1484
+ insertofftime: int = ...,
1485
+ insertontime: int = ...,
1486
+ insertwidth: float | str = ...,
1487
+ offset=..., # undocumented
1488
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1489
+ scrollregion: tuple[float | str, float | str, float | str, float | str] | tuple[()] = ...,
1490
+ selectbackground: str = ...,
1491
+ selectborderwidth: float | str = ...,
1492
+ selectforeground: str = ...,
1493
+ state: Literal["normal", "disabled"] = ...,
1494
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
1495
+ width: float | str = ...,
1496
+ xscrollcommand: str | Callable[[float, float], object] = ...,
1497
+ xscrollincrement: float | str = ...,
1498
+ yscrollcommand: str | Callable[[float, float], object] = ...,
1499
+ yscrollincrement: float | str = ...,
1500
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
1501
+ @overload
1502
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
1503
+
1504
+ config = configure
1505
+ def addtag(self, *args): ... # internal method
1506
+ def addtag_above(self, newtag: str, tagOrId: str | int) -> None: ...
1507
+ def addtag_all(self, newtag: str) -> None: ...
1508
+ def addtag_below(self, newtag: str, tagOrId: str | int) -> None: ...
1509
+ def addtag_closest(
1510
+ self, newtag: str, x: float | str, y: float | str, halo: float | str | None = None, start: str | int | None = None
1511
+ ) -> None: ...
1512
+ def addtag_enclosed(self, newtag: str, x1: float | str, y1: float | str, x2: float | str, y2: float | str) -> None: ...
1513
+ def addtag_overlapping(self, newtag: str, x1: float | str, y1: float | str, x2: float | str, y2: float | str) -> None: ...
1514
+ def addtag_withtag(self, newtag: str, tagOrId: str | int) -> None: ...
1515
+ def find(self, *args): ... # internal method
1516
+ def find_above(self, tagOrId: str | int) -> tuple[int, ...]: ...
1517
+ def find_all(self) -> tuple[int, ...]: ...
1518
+ def find_below(self, tagOrId: str | int) -> tuple[int, ...]: ...
1519
+ def find_closest(
1520
+ self, x: float | str, y: float | str, halo: float | str | None = None, start: str | int | None = None
1521
+ ) -> tuple[int, ...]: ...
1522
+ def find_enclosed(self, x1: float | str, y1: float | str, x2: float | str, y2: float | str) -> tuple[int, ...]: ...
1523
+ def find_overlapping(self, x1: float | str, y1: float | str, x2: float | str, y2: float) -> tuple[int, ...]: ...
1524
+ def find_withtag(self, tagOrId: str | int) -> tuple[int, ...]: ...
1525
+ # Incompatible with Misc.bbox(), tkinter violates LSP
1526
+ def bbox(self, *args: str | int) -> tuple[int, int, int, int]: ... # type: ignore[override]
1527
+
1528
+ @overload
1529
+ def tag_bind(
1530
+ self,
1531
+ tagOrId: str | int,
1532
+ sequence: str | None = None,
1533
+ func: Callable[[Event[Canvas]], object] | None = None,
1534
+ add: Literal["", "+"] | bool | None = None,
1535
+ ) -> str: ...
1536
+ @overload
1537
+ def tag_bind(
1538
+ self, tagOrId: str | int, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None
1539
+ ) -> None: ...
1540
+ @overload
1541
+ def tag_bind(self, tagOrId: str | int, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
1542
+
1543
+ def tag_unbind(self, tagOrId: str | int, sequence: str, funcid: str | None = None) -> None: ...
1544
+ def canvasx(self, screenx: float | str, gridspacing: float | str | None = None) -> float: ...
1545
+ def canvasy(self, screeny: float | str, gridspacing: float | str | None = None) -> float: ...
1546
+
1547
+ @overload
1548
+ def coords(self, tagOrId: str | int, /) -> list[float]: ...
1549
+ @overload
1550
+ def coords(self, tagOrId: str | int, args: list[int] | list[float] | tuple[float, ...], /) -> None: ...
1551
+ @overload
1552
+ def coords(self, tagOrId: str | int, x1: float, y1: float, /, *args: float) -> None: ...
1553
+
1554
+ # create_foo() methods accept coords as a list or tuple, or as separate arguments.
1555
+ # Lists and tuples can be flat as in [1, 2, 3, 4], or nested as in [(1, 2), (3, 4)].
1556
+ # Keyword arguments should be the same in all overloads of each method.
1557
+ def create_arc(self, *args, **kw) -> int: ...
1558
+ def create_bitmap(self, *args, **kw) -> int: ...
1559
+ def create_image(self, *args, **kw) -> int: ...
1560
+
1561
+ @overload
1562
+ def create_line(
1563
+ self,
1564
+ x0: float,
1565
+ y0: float,
1566
+ x1: float,
1567
+ y1: float,
1568
+ /,
1569
+ *,
1570
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1571
+ activefill: str = ...,
1572
+ activestipple: str = ...,
1573
+ activewidth: float | str = ...,
1574
+ arrow: Literal["first", "last", "both"] = ...,
1575
+ arrowshape: tuple[float, float, float] = ...,
1576
+ capstyle: Literal["round", "projecting", "butt"] = ...,
1577
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1578
+ dashoffset: float | str = ...,
1579
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1580
+ disabledfill: str = ...,
1581
+ disabledstipple: str = ...,
1582
+ disabledwidth: float | str = ...,
1583
+ fill: str = ...,
1584
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1585
+ offset: float | str = ...,
1586
+ smooth: bool = ...,
1587
+ splinesteps: float = ...,
1588
+ state: Literal["normal", "hidden", "disabled"] = ...,
1589
+ stipple: str = ...,
1590
+ tags: str | list[str] | tuple[str, ...] = ...,
1591
+ width: float | str = ...,
1592
+ ) -> int: ...
1593
+ @overload
1594
+ def create_line(
1595
+ self,
1596
+ xy_pair_0: tuple[float, float],
1597
+ xy_pair_1: tuple[float, float],
1598
+ /,
1599
+ *,
1600
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1601
+ activefill: str = ...,
1602
+ activestipple: str = ...,
1603
+ activewidth: float | str = ...,
1604
+ arrow: Literal["first", "last", "both"] = ...,
1605
+ arrowshape: tuple[float, float, float] = ...,
1606
+ capstyle: Literal["round", "projecting", "butt"] = ...,
1607
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1608
+ dashoffset: float | str = ...,
1609
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1610
+ disabledfill: str = ...,
1611
+ disabledstipple: str = ...,
1612
+ disabledwidth: float | str = ...,
1613
+ fill: str = ...,
1614
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1615
+ offset: float | str = ...,
1616
+ smooth: bool = ...,
1617
+ splinesteps: float = ...,
1618
+ state: Literal["normal", "hidden", "disabled"] = ...,
1619
+ stipple: str = ...,
1620
+ tags: str | list[str] | tuple[str, ...] = ...,
1621
+ width: float | str = ...,
1622
+ ) -> int: ...
1623
+ @overload
1624
+ def create_line(
1625
+ self,
1626
+ coords: (
1627
+ tuple[float, float, float, float]
1628
+ | tuple[tuple[float, float], tuple[float, float]]
1629
+ | list[int]
1630
+ | list[float]
1631
+ | list[tuple[int, int]]
1632
+ | list[tuple[float, float]]
1633
+ ),
1634
+ /,
1635
+ *,
1636
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1637
+ activefill: str = ...,
1638
+ activestipple: str = ...,
1639
+ activewidth: float | str = ...,
1640
+ arrow: Literal["first", "last", "both"] = ...,
1641
+ arrowshape: tuple[float, float, float] = ...,
1642
+ capstyle: Literal["round", "projecting", "butt"] = ...,
1643
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1644
+ dashoffset: float | str = ...,
1645
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1646
+ disabledfill: str = ...,
1647
+ disabledstipple: str = ...,
1648
+ disabledwidth: float | str = ...,
1649
+ fill: str = ...,
1650
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1651
+ offset: float | str = ...,
1652
+ smooth: bool = ...,
1653
+ splinesteps: float = ...,
1654
+ state: Literal["normal", "hidden", "disabled"] = ...,
1655
+ stipple: str = ...,
1656
+ tags: str | list[str] | tuple[str, ...] = ...,
1657
+ width: float | str = ...,
1658
+ ) -> int: ...
1659
+
1660
+ @overload
1661
+ def create_oval(
1662
+ self,
1663
+ x0: float,
1664
+ y0: float,
1665
+ x1: float,
1666
+ y1: float,
1667
+ /,
1668
+ *,
1669
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1670
+ activefill: str = ...,
1671
+ activeoutline: str = ...,
1672
+ activeoutlinestipple: str = ...,
1673
+ activestipple: str = ...,
1674
+ activewidth: float | str = ...,
1675
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1676
+ dashoffset: float | str = ...,
1677
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1678
+ disabledfill: str = ...,
1679
+ disabledoutline: str = ...,
1680
+ disabledoutlinestipple: str = ...,
1681
+ disabledstipple: str = ...,
1682
+ disabledwidth: float | str = ...,
1683
+ fill: str = ...,
1684
+ offset: float | str = ...,
1685
+ outline: str = ...,
1686
+ outlineoffset: float | str = ...,
1687
+ outlinestipple: str = ...,
1688
+ state: Literal["normal", "hidden", "disabled"] = ...,
1689
+ stipple: str = ...,
1690
+ tags: str | list[str] | tuple[str, ...] = ...,
1691
+ width: float | str = ...,
1692
+ ) -> int: ...
1693
+ @overload
1694
+ def create_oval(
1695
+ self,
1696
+ xy_pair_0: tuple[float, float],
1697
+ xy_pair_1: tuple[float, float],
1698
+ /,
1699
+ *,
1700
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1701
+ activefill: str = ...,
1702
+ activeoutline: str = ...,
1703
+ activeoutlinestipple: str = ...,
1704
+ activestipple: str = ...,
1705
+ activewidth: float | str = ...,
1706
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1707
+ dashoffset: float | str = ...,
1708
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1709
+ disabledfill: str = ...,
1710
+ disabledoutline: str = ...,
1711
+ disabledoutlinestipple: str = ...,
1712
+ disabledstipple: str = ...,
1713
+ disabledwidth: float | str = ...,
1714
+ fill: str = ...,
1715
+ offset: float | str = ...,
1716
+ outline: str = ...,
1717
+ outlineoffset: float | str = ...,
1718
+ outlinestipple: str = ...,
1719
+ state: Literal["normal", "hidden", "disabled"] = ...,
1720
+ stipple: str = ...,
1721
+ tags: str | list[str] | tuple[str, ...] = ...,
1722
+ width: float | str = ...,
1723
+ ) -> int: ...
1724
+ @overload
1725
+ def create_oval(
1726
+ self,
1727
+ coords: (
1728
+ tuple[float, float, float, float]
1729
+ | tuple[tuple[float, float], tuple[float, float]]
1730
+ | list[int]
1731
+ | list[float]
1732
+ | list[tuple[int, int]]
1733
+ | list[tuple[float, float]]
1734
+ ),
1735
+ /,
1736
+ *,
1737
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1738
+ activefill: str = ...,
1739
+ activeoutline: str = ...,
1740
+ activeoutlinestipple: str = ...,
1741
+ activestipple: str = ...,
1742
+ activewidth: float | str = ...,
1743
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1744
+ dashoffset: float | str = ...,
1745
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1746
+ disabledfill: str = ...,
1747
+ disabledoutline: str = ...,
1748
+ disabledoutlinestipple: str = ...,
1749
+ disabledstipple: str = ...,
1750
+ disabledwidth: float | str = ...,
1751
+ fill: str = ...,
1752
+ offset: float | str = ...,
1753
+ outline: str = ...,
1754
+ outlineoffset: float | str = ...,
1755
+ outlinestipple: str = ...,
1756
+ state: Literal["normal", "hidden", "disabled"] = ...,
1757
+ stipple: str = ...,
1758
+ tags: str | list[str] | tuple[str, ...] = ...,
1759
+ width: float | str = ...,
1760
+ ) -> int: ...
1761
+
1762
+ @overload
1763
+ def create_polygon(
1764
+ self,
1765
+ x0: float,
1766
+ y0: float,
1767
+ x1: float,
1768
+ y1: float,
1769
+ /,
1770
+ *xy_pairs: float,
1771
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1772
+ activefill: str = ...,
1773
+ activeoutline: str = ...,
1774
+ activeoutlinestipple: str = ...,
1775
+ activestipple: str = ...,
1776
+ activewidth: float | str = ...,
1777
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1778
+ dashoffset: float | str = ...,
1779
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1780
+ disabledfill: str = ...,
1781
+ disabledoutline: str = ...,
1782
+ disabledoutlinestipple: str = ...,
1783
+ disabledstipple: str = ...,
1784
+ disabledwidth: float | str = ...,
1785
+ fill: str = ...,
1786
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1787
+ offset: float | str = ...,
1788
+ outline: str = ...,
1789
+ outlineoffset: float | str = ...,
1790
+ outlinestipple: str = ...,
1791
+ smooth: bool = ...,
1792
+ splinesteps: float = ...,
1793
+ state: Literal["normal", "hidden", "disabled"] = ...,
1794
+ stipple: str = ...,
1795
+ tags: str | list[str] | tuple[str, ...] = ...,
1796
+ width: float | str = ...,
1797
+ ) -> int: ...
1798
+ @overload
1799
+ def create_polygon(
1800
+ self,
1801
+ xy_pair_0: tuple[float, float],
1802
+ xy_pair_1: tuple[float, float],
1803
+ /,
1804
+ *xy_pairs: tuple[float, float],
1805
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1806
+ activefill: str = ...,
1807
+ activeoutline: str = ...,
1808
+ activeoutlinestipple: str = ...,
1809
+ activestipple: str = ...,
1810
+ activewidth: float | str = ...,
1811
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1812
+ dashoffset: float | str = ...,
1813
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1814
+ disabledfill: str = ...,
1815
+ disabledoutline: str = ...,
1816
+ disabledoutlinestipple: str = ...,
1817
+ disabledstipple: str = ...,
1818
+ disabledwidth: float | str = ...,
1819
+ fill: str = ...,
1820
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1821
+ offset: float | str = ...,
1822
+ outline: str = ...,
1823
+ outlineoffset: float | str = ...,
1824
+ outlinestipple: str = ...,
1825
+ smooth: bool = ...,
1826
+ splinesteps: float = ...,
1827
+ state: Literal["normal", "hidden", "disabled"] = ...,
1828
+ stipple: str = ...,
1829
+ tags: str | list[str] | tuple[str, ...] = ...,
1830
+ width: float | str = ...,
1831
+ ) -> int: ...
1832
+ @overload
1833
+ def create_polygon(
1834
+ self,
1835
+ coords: (
1836
+ tuple[float, ...]
1837
+ | tuple[tuple[float, float], ...]
1838
+ | list[int]
1839
+ | list[float]
1840
+ | list[tuple[int, int]]
1841
+ | list[tuple[float, float]]
1842
+ ),
1843
+ /,
1844
+ *,
1845
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1846
+ activefill: str = ...,
1847
+ activeoutline: str = ...,
1848
+ activeoutlinestipple: str = ...,
1849
+ activestipple: str = ...,
1850
+ activewidth: float | str = ...,
1851
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1852
+ dashoffset: float | str = ...,
1853
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1854
+ disabledfill: str = ...,
1855
+ disabledoutline: str = ...,
1856
+ disabledoutlinestipple: str = ...,
1857
+ disabledstipple: str = ...,
1858
+ disabledwidth: float | str = ...,
1859
+ fill: str = ...,
1860
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1861
+ offset: float | str = ...,
1862
+ outline: str = ...,
1863
+ outlineoffset: float | str = ...,
1864
+ outlinestipple: str = ...,
1865
+ smooth: bool = ...,
1866
+ splinesteps: float = ...,
1867
+ state: Literal["normal", "hidden", "disabled"] = ...,
1868
+ stipple: str = ...,
1869
+ tags: str | list[str] | tuple[str, ...] = ...,
1870
+ width: float | str = ...,
1871
+ ) -> int: ...
1872
+
1873
+ @overload
1874
+ def create_rectangle(
1875
+ self,
1876
+ x0: float,
1877
+ y0: float,
1878
+ x1: float,
1879
+ y1: float,
1880
+ /,
1881
+ *,
1882
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1883
+ activefill: str = ...,
1884
+ activeoutline: str = ...,
1885
+ activeoutlinestipple: str = ...,
1886
+ activestipple: str = ...,
1887
+ activewidth: float | str = ...,
1888
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1889
+ dashoffset: float | str = ...,
1890
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1891
+ disabledfill: str = ...,
1892
+ disabledoutline: str = ...,
1893
+ disabledoutlinestipple: str = ...,
1894
+ disabledstipple: str = ...,
1895
+ disabledwidth: float | str = ...,
1896
+ fill: str = ...,
1897
+ offset: float | str = ...,
1898
+ outline: str = ...,
1899
+ outlineoffset: float | str = ...,
1900
+ outlinestipple: str = ...,
1901
+ state: Literal["normal", "hidden", "disabled"] = ...,
1902
+ stipple: str = ...,
1903
+ tags: str | list[str] | tuple[str, ...] = ...,
1904
+ width: float | str = ...,
1905
+ ) -> int: ...
1906
+ @overload
1907
+ def create_rectangle(
1908
+ self,
1909
+ xy_pair_0: tuple[float, float],
1910
+ xy_pair_1: tuple[float, float],
1911
+ /,
1912
+ *,
1913
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1914
+ activefill: str = ...,
1915
+ activeoutline: str = ...,
1916
+ activeoutlinestipple: str = ...,
1917
+ activestipple: str = ...,
1918
+ activewidth: float | str = ...,
1919
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1920
+ dashoffset: float | str = ...,
1921
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1922
+ disabledfill: str = ...,
1923
+ disabledoutline: str = ...,
1924
+ disabledoutlinestipple: str = ...,
1925
+ disabledstipple: str = ...,
1926
+ disabledwidth: float | str = ...,
1927
+ fill: str = ...,
1928
+ offset: float | str = ...,
1929
+ outline: str = ...,
1930
+ outlineoffset: float | str = ...,
1931
+ outlinestipple: str = ...,
1932
+ state: Literal["normal", "hidden", "disabled"] = ...,
1933
+ stipple: str = ...,
1934
+ tags: str | list[str] | tuple[str, ...] = ...,
1935
+ width: float | str = ...,
1936
+ ) -> int: ...
1937
+ @overload
1938
+ def create_rectangle(
1939
+ self,
1940
+ coords: (
1941
+ tuple[float, float, float, float]
1942
+ | tuple[tuple[float, float], tuple[float, float]]
1943
+ | list[int]
1944
+ | list[float]
1945
+ | list[tuple[int, int]]
1946
+ | list[tuple[float, float]]
1947
+ ),
1948
+ /,
1949
+ *,
1950
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1951
+ activefill: str = ...,
1952
+ activeoutline: str = ...,
1953
+ activeoutlinestipple: str = ...,
1954
+ activestipple: str = ...,
1955
+ activewidth: float | str = ...,
1956
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1957
+ dashoffset: float | str = ...,
1958
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1959
+ disabledfill: str = ...,
1960
+ disabledoutline: str = ...,
1961
+ disabledoutlinestipple: str = ...,
1962
+ disabledstipple: str = ...,
1963
+ disabledwidth: float | str = ...,
1964
+ fill: str = ...,
1965
+ offset: float | str = ...,
1966
+ outline: str = ...,
1967
+ outlineoffset: float | str = ...,
1968
+ outlinestipple: str = ...,
1969
+ state: Literal["normal", "hidden", "disabled"] = ...,
1970
+ stipple: str = ...,
1971
+ tags: str | list[str] | tuple[str, ...] = ...,
1972
+ width: float | str = ...,
1973
+ ) -> int: ...
1974
+
1975
+ @overload
1976
+ def create_text(
1977
+ self,
1978
+ x: float,
1979
+ y: float,
1980
+ /,
1981
+ *,
1982
+ activefill: str = ...,
1983
+ activestipple: str = ...,
1984
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
1985
+ angle: float | str = ...,
1986
+ disabledfill: str = ...,
1987
+ disabledstipple: str = ...,
1988
+ fill: str = ...,
1989
+ font: _FontDescription = ...,
1990
+ justify: Literal["left", "center", "right"] = ...,
1991
+ offset: float | str = ...,
1992
+ state: Literal["normal", "hidden", "disabled"] = ...,
1993
+ stipple: str = ...,
1994
+ tags: str | list[str] | tuple[str, ...] = ...,
1995
+ text: float | str = ...,
1996
+ width: float | str = ...,
1997
+ ) -> int: ...
1998
+ @overload
1999
+ def create_text(
2000
+ self,
2001
+ coords: tuple[float, float] | list[int] | list[float],
2002
+ /,
2003
+ *,
2004
+ activefill: str = ...,
2005
+ activestipple: str = ...,
2006
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2007
+ angle: float | str = ...,
2008
+ disabledfill: str = ...,
2009
+ disabledstipple: str = ...,
2010
+ fill: str = ...,
2011
+ font: _FontDescription = ...,
2012
+ justify: Literal["left", "center", "right"] = ...,
2013
+ offset: float | str = ...,
2014
+ state: Literal["normal", "hidden", "disabled"] = ...,
2015
+ stipple: str = ...,
2016
+ tags: str | list[str] | tuple[str, ...] = ...,
2017
+ text: float | str = ...,
2018
+ width: float | str = ...,
2019
+ ) -> int: ...
2020
+
2021
+ @overload
2022
+ def create_window(
2023
+ self,
2024
+ x: float,
2025
+ y: float,
2026
+ /,
2027
+ *,
2028
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2029
+ height: float | str = ...,
2030
+ state: Literal["normal", "hidden", "disabled"] = ...,
2031
+ tags: str | list[str] | tuple[str, ...] = ...,
2032
+ width: float | str = ...,
2033
+ window: Widget = ...,
2034
+ ) -> int: ...
2035
+ @overload
2036
+ def create_window(
2037
+ self,
2038
+ coords: tuple[float, float] | list[int] | list[float],
2039
+ /,
2040
+ *,
2041
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2042
+ height: float | str = ...,
2043
+ state: Literal["normal", "hidden", "disabled"] = ...,
2044
+ tags: str | list[str] | tuple[str, ...] = ...,
2045
+ width: float | str = ...,
2046
+ window: Widget = ...,
2047
+ ) -> int: ...
2048
+
2049
+ def dchars(self, *args) -> None: ...
2050
+ def delete(self, *tagsOrCanvasIds: str | int) -> None: ...
2051
+
2052
+ @overload
2053
+ def dtag(self, tag: str, tag_to_delete: str | None = ..., /) -> None: ...
2054
+ @overload
2055
+ def dtag(self, id: int, tag_to_delete: str, /) -> None: ...
2056
+
2057
+ def focus(self, *args): ...
2058
+ def gettags(self, tagOrId: str | int, /) -> tuple[str, ...]: ...
2059
+ def icursor(self, *args) -> None: ...
2060
+ def index(self, *args): ...
2061
+ def insert(self, *args) -> None: ...
2062
+ def itemcget(self, tagOrId, option): ...
2063
+ # itemconfigure kwargs depend on item type, which is not known when type checking
2064
+ def itemconfigure(
2065
+ self, tagOrId: str | int, cnf: dict[str, Any] | None = None, **kw: Any
2066
+ ) -> dict[str, tuple[str, str, str, str, str]] | None: ...
2067
+ itemconfig = itemconfigure
2068
+ def move(self, *args) -> None: ...
2069
+ def moveto(self, tagOrId: str | int, x: Literal[""] | float = "", y: Literal[""] | float = "") -> None: ...
2070
+ def postscript(self, cnf={}, **kw): ...
2071
+ # tkinter does:
2072
+ # lower = tag_lower
2073
+ # lift = tkraise = tag_raise
2074
+ #
2075
+ # But mypy doesn't like aliasing here (maybe because Misc defines the same names)
2076
+ def tag_lower(self, first: str | int, second: str | int | None = ..., /) -> None: ...
2077
+ def lower(self, first: str | int, second: str | int | None = ..., /) -> None: ... # type: ignore[override]
2078
+ def tag_raise(self, first: str | int, second: str | int | None = ..., /) -> None: ...
2079
+ def tkraise(self, first: str | int, second: str | int | None = ..., /) -> None: ... # type: ignore[override]
2080
+ def lift(self, first: str | int, second: str | int | None = ..., /) -> None: ... # type: ignore[override]
2081
+ def scale(self, tagOrId: str | int, xOrigin: float | str, yOrigin: float | str, xScale: float, yScale: float, /) -> None: ...
2082
+ def scan_mark(self, x, y) -> None: ...
2083
+ def scan_dragto(self, x, y, gain: int = 10) -> None: ...
2084
+ def select_adjust(self, tagOrId, index) -> None: ...
2085
+ def select_clear(self) -> None: ...
2086
+ def select_from(self, tagOrId, index) -> None: ...
2087
+ def select_item(self): ...
2088
+ def select_to(self, tagOrId, index) -> None: ...
2089
+ def type(self, tagOrId: str | int) -> int | None: ...
2090
+
2091
+ class Checkbutton(Widget):
2092
+ def __init__(
2093
+ self,
2094
+ master: Misc | None = None,
2095
+ cnf: dict[str, Any] | None = {},
2096
+ *,
2097
+ activebackground: str = ...,
2098
+ activeforeground: str = ...,
2099
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
2100
+ background: str = ...,
2101
+ bd: float | str = ...,
2102
+ bg: str = ...,
2103
+ bitmap: str = "",
2104
+ border: float | str = ...,
2105
+ borderwidth: float | str = ...,
2106
+ command: str | Callable[[], Any] = "",
2107
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
2108
+ cursor: _Cursor = "",
2109
+ disabledforeground: str = ...,
2110
+ fg: str = ...,
2111
+ font: _FontDescription = "TkDefaultFont",
2112
+ foreground: str = ...,
2113
+ height: float | str = 0,
2114
+ highlightbackground: str = ...,
2115
+ highlightcolor: str = ...,
2116
+ highlightthickness: float | str = 1,
2117
+ image: _Image | str = "",
2118
+ indicatoron: bool = True,
2119
+ justify: Literal["left", "center", "right"] = "center",
2120
+ name: str = ...,
2121
+ offrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2122
+ # The checkbutton puts a value to its variable when it's checked or
2123
+ # unchecked. We don't restrict the type of that value here, so
2124
+ # Any-typing is fine.
2125
+ #
2126
+ # I think Checkbutton shouldn't be generic, because then specifying
2127
+ # "any checkbutton regardless of what variable it uses" would be
2128
+ # difficult, and we might run into issues just like how list[float]
2129
+ # and list[int] are incompatible. Also, we would need a way to
2130
+ # specify "Checkbutton not associated with any variable", which is
2131
+ # done by setting variable to empty string (the default).
2132
+ offvalue: Any = 0,
2133
+ onvalue: Any = 1,
2134
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = "",
2135
+ padx: float | str = 1,
2136
+ pady: float | str = 1,
2137
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2138
+ selectcolor: str = ...,
2139
+ selectimage: _Image | str = "",
2140
+ state: Literal["normal", "active", "disabled"] = "normal",
2141
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
2142
+ text: float | str = "",
2143
+ textvariable: Variable = ...,
2144
+ tristateimage: _Image | str = "",
2145
+ tristatevalue: Any = "",
2146
+ underline: int = -1,
2147
+ variable: Variable | Literal[""] = ...,
2148
+ width: float | str = 0,
2149
+ wraplength: float | str = 0,
2150
+ ) -> None: ...
2151
+
2152
+ @overload
2153
+ def configure(
2154
+ self,
2155
+ cnf: dict[str, Any] | None = None,
2156
+ *,
2157
+ activebackground: str = ...,
2158
+ activeforeground: str = ...,
2159
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2160
+ background: str = ...,
2161
+ bd: float | str = ...,
2162
+ bg: str = ...,
2163
+ bitmap: str = ...,
2164
+ border: float | str = ...,
2165
+ borderwidth: float | str = ...,
2166
+ command: str | Callable[[], Any] = ...,
2167
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2168
+ cursor: _Cursor = ...,
2169
+ disabledforeground: str = ...,
2170
+ fg: str = ...,
2171
+ font: _FontDescription = ...,
2172
+ foreground: str = ...,
2173
+ height: float | str = ...,
2174
+ highlightbackground: str = ...,
2175
+ highlightcolor: str = ...,
2176
+ highlightthickness: float | str = ...,
2177
+ image: _Image | str = ...,
2178
+ indicatoron: bool = ...,
2179
+ justify: Literal["left", "center", "right"] = ...,
2180
+ offrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2181
+ offvalue: Any = ...,
2182
+ onvalue: Any = ...,
2183
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = ...,
2184
+ padx: float | str = ...,
2185
+ pady: float | str = ...,
2186
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2187
+ selectcolor: str = ...,
2188
+ selectimage: _Image | str = ...,
2189
+ state: Literal["normal", "active", "disabled"] = ...,
2190
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2191
+ text: float | str = ...,
2192
+ textvariable: Variable = ...,
2193
+ tristateimage: _Image | str = ...,
2194
+ tristatevalue: Any = ...,
2195
+ underline: int = ...,
2196
+ variable: Variable | Literal[""] = ...,
2197
+ width: float | str = ...,
2198
+ wraplength: float | str = ...,
2199
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2200
+ @overload
2201
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2202
+
2203
+ config = configure
2204
+ def deselect(self) -> None: ...
2205
+ def flash(self) -> None: ...
2206
+ def invoke(self) -> Any: ...
2207
+ def select(self) -> None: ...
2208
+ def toggle(self) -> None: ...
2209
+
2210
+ class Entry(Widget, XView):
2211
+ def __init__(
2212
+ self,
2213
+ master: Misc | None = None,
2214
+ cnf: dict[str, Any] | None = {},
2215
+ *,
2216
+ background: str = ...,
2217
+ bd: float | str = ...,
2218
+ bg: str = ...,
2219
+ border: float | str = ...,
2220
+ borderwidth: float | str = ...,
2221
+ cursor: _Cursor = "xterm",
2222
+ disabledbackground: str = ...,
2223
+ disabledforeground: str = ...,
2224
+ exportselection: bool = True,
2225
+ fg: str = ...,
2226
+ font: _FontDescription = "TkTextFont",
2227
+ foreground: str = ...,
2228
+ highlightbackground: str = ...,
2229
+ highlightcolor: str = ...,
2230
+ highlightthickness: float | str = ...,
2231
+ insertbackground: str = ...,
2232
+ insertborderwidth: float | str = 0,
2233
+ insertofftime: int = 300,
2234
+ insertontime: int = 600,
2235
+ insertwidth: float | str = ...,
2236
+ invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
2237
+ invcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = "", # same as invalidcommand
2238
+ justify: Literal["left", "center", "right"] = "left",
2239
+ name: str = ...,
2240
+ readonlybackground: str = ...,
2241
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "sunken",
2242
+ selectbackground: str = ...,
2243
+ selectborderwidth: float | str = ...,
2244
+ selectforeground: str = ...,
2245
+ show: str = "",
2246
+ state: Literal["normal", "disabled", "readonly"] = "normal",
2247
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
2248
+ textvariable: Variable = ...,
2249
+ validate: Literal["none", "focus", "focusin", "focusout", "key", "all"] = "none",
2250
+ validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
2251
+ vcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = "", # same as validatecommand
2252
+ width: int = 20,
2253
+ xscrollcommand: str | Callable[[float, float], object] = "",
2254
+ ) -> None: ...
2255
+
2256
+ @overload
2257
+ def configure(
2258
+ self,
2259
+ cnf: dict[str, Any] | None = None,
2260
+ *,
2261
+ background: str = ...,
2262
+ bd: float | str = ...,
2263
+ bg: str = ...,
2264
+ border: float | str = ...,
2265
+ borderwidth: float | str = ...,
2266
+ cursor: _Cursor = ...,
2267
+ disabledbackground: str = ...,
2268
+ disabledforeground: str = ...,
2269
+ exportselection: bool = ...,
2270
+ fg: str = ...,
2271
+ font: _FontDescription = ...,
2272
+ foreground: str = ...,
2273
+ highlightbackground: str = ...,
2274
+ highlightcolor: str = ...,
2275
+ highlightthickness: float | str = ...,
2276
+ insertbackground: str = ...,
2277
+ insertborderwidth: float | str = ...,
2278
+ insertofftime: int = ...,
2279
+ insertontime: int = ...,
2280
+ insertwidth: float | str = ...,
2281
+ invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
2282
+ invcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
2283
+ justify: Literal["left", "center", "right"] = ...,
2284
+ readonlybackground: str = ...,
2285
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2286
+ selectbackground: str = ...,
2287
+ selectborderwidth: float | str = ...,
2288
+ selectforeground: str = ...,
2289
+ show: str = ...,
2290
+ state: Literal["normal", "disabled", "readonly"] = ...,
2291
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2292
+ textvariable: Variable = ...,
2293
+ validate: Literal["none", "focus", "focusin", "focusout", "key", "all"] = ...,
2294
+ validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
2295
+ vcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
2296
+ width: int = ...,
2297
+ xscrollcommand: str | Callable[[float, float], object] = ...,
2298
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2299
+ @overload
2300
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2301
+
2302
+ config = configure
2303
+ def delete(self, first: str | int, last: str | int | None = None) -> None: ...
2304
+ def get(self) -> str: ...
2305
+ def icursor(self, index: str | int) -> None: ...
2306
+ def index(self, index: str | int) -> int: ...
2307
+ def insert(self, index: str | int, string: str) -> None: ...
2308
+ def scan_mark(self, x) -> None: ...
2309
+ def scan_dragto(self, x) -> None: ...
2310
+ def selection_adjust(self, index: str | int) -> None: ...
2311
+ def selection_clear(self) -> None: ... # type: ignore[override]
2312
+ def selection_from(self, index: str | int) -> None: ...
2313
+ def selection_present(self) -> bool: ...
2314
+ def selection_range(self, start: str | int, end: str | int) -> None: ...
2315
+ def selection_to(self, index: str | int) -> None: ...
2316
+ select_adjust = selection_adjust
2317
+ select_clear = selection_clear
2318
+ select_from = selection_from
2319
+ select_present = selection_present
2320
+ select_range = selection_range
2321
+ select_to = selection_to
2322
+
2323
+ class Frame(Widget):
2324
+ def __init__(
2325
+ self,
2326
+ master: Misc | None = None,
2327
+ cnf: dict[str, Any] | None = {},
2328
+ *,
2329
+ background: str = ...,
2330
+ bd: float | str = 0,
2331
+ bg: str = ...,
2332
+ border: float | str = 0,
2333
+ borderwidth: float | str = 0,
2334
+ class_: str = "Frame", # can't be changed with configure()
2335
+ colormap: Literal["new", ""] | Misc = "", # can't be changed with configure()
2336
+ container: bool = False, # can't be changed with configure()
2337
+ cursor: _Cursor = "",
2338
+ height: float | str = 0,
2339
+ highlightbackground: str = ...,
2340
+ highlightcolor: str = ...,
2341
+ highlightthickness: float | str = 0,
2342
+ name: str = ...,
2343
+ padx: float | str = 0,
2344
+ pady: float | str = 0,
2345
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2346
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2347
+ visual: str | tuple[str, int] = "", # can't be changed with configure()
2348
+ width: float | str = 0,
2349
+ ) -> None: ...
2350
+
2351
+ @overload
2352
+ def configure(
2353
+ self,
2354
+ cnf: dict[str, Any] | None = None,
2355
+ *,
2356
+ background: str = ...,
2357
+ bd: float | str = ...,
2358
+ bg: str = ...,
2359
+ border: float | str = ...,
2360
+ borderwidth: float | str = ...,
2361
+ cursor: _Cursor = ...,
2362
+ height: float | str = ...,
2363
+ highlightbackground: str = ...,
2364
+ highlightcolor: str = ...,
2365
+ highlightthickness: float | str = ...,
2366
+ padx: float | str = ...,
2367
+ pady: float | str = ...,
2368
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2369
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2370
+ width: float | str = ...,
2371
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2372
+ @overload
2373
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2374
+
2375
+ config = configure
2376
+
2377
+ class Label(Widget):
2378
+ def __init__(
2379
+ self,
2380
+ master: Misc | None = None,
2381
+ cnf: dict[str, Any] | None = {},
2382
+ *,
2383
+ activebackground: str = ...,
2384
+ activeforeground: str = ...,
2385
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
2386
+ background: str = ...,
2387
+ bd: float | str = ...,
2388
+ bg: str = ...,
2389
+ bitmap: str = "",
2390
+ border: float | str = ...,
2391
+ borderwidth: float | str = ...,
2392
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
2393
+ cursor: _Cursor = "",
2394
+ disabledforeground: str = ...,
2395
+ fg: str = ...,
2396
+ font: _FontDescription = "TkDefaultFont",
2397
+ foreground: str = ...,
2398
+ height: float | str = 0,
2399
+ highlightbackground: str = ...,
2400
+ highlightcolor: str = ...,
2401
+ highlightthickness: float | str = 0,
2402
+ image: _Image | str = "",
2403
+ justify: Literal["left", "center", "right"] = "center",
2404
+ name: str = ...,
2405
+ padx: float | str = 1,
2406
+ pady: float | str = 1,
2407
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2408
+ state: Literal["normal", "active", "disabled"] = "normal",
2409
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2410
+ text: float | str = "",
2411
+ textvariable: Variable = ...,
2412
+ underline: int = -1,
2413
+ width: float | str = 0,
2414
+ wraplength: float | str = 0,
2415
+ ) -> None: ...
2416
+
2417
+ @overload
2418
+ def configure(
2419
+ self,
2420
+ cnf: dict[str, Any] | None = None,
2421
+ *,
2422
+ activebackground: str = ...,
2423
+ activeforeground: str = ...,
2424
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2425
+ background: str = ...,
2426
+ bd: float | str = ...,
2427
+ bg: str = ...,
2428
+ bitmap: str = ...,
2429
+ border: float | str = ...,
2430
+ borderwidth: float | str = ...,
2431
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2432
+ cursor: _Cursor = ...,
2433
+ disabledforeground: str = ...,
2434
+ fg: str = ...,
2435
+ font: _FontDescription = ...,
2436
+ foreground: str = ...,
2437
+ height: float | str = ...,
2438
+ highlightbackground: str = ...,
2439
+ highlightcolor: str = ...,
2440
+ highlightthickness: float | str = ...,
2441
+ image: _Image | str = ...,
2442
+ justify: Literal["left", "center", "right"] = ...,
2443
+ padx: float | str = ...,
2444
+ pady: float | str = ...,
2445
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2446
+ state: Literal["normal", "active", "disabled"] = ...,
2447
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2448
+ text: float | str = ...,
2449
+ textvariable: Variable = ...,
2450
+ underline: int = ...,
2451
+ width: float | str = ...,
2452
+ wraplength: float | str = ...,
2453
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2454
+ @overload
2455
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2456
+
2457
+ config = configure
2458
+
2459
+ class Listbox(Widget, XView, YView):
2460
+ def __init__(
2461
+ self,
2462
+ master: Misc | None = None,
2463
+ cnf: dict[str, Any] | None = {},
2464
+ *,
2465
+ activestyle: Literal["dotbox", "none", "underline"] = ...,
2466
+ background: str = ...,
2467
+ bd: float | str = 1,
2468
+ bg: str = ...,
2469
+ border: float | str = 1,
2470
+ borderwidth: float | str = 1,
2471
+ cursor: _Cursor = "",
2472
+ disabledforeground: str = ...,
2473
+ exportselection: bool | Literal[0, 1] = 1,
2474
+ fg: str = ...,
2475
+ font: _FontDescription = ...,
2476
+ foreground: str = ...,
2477
+ height: int = 10,
2478
+ highlightbackground: str = ...,
2479
+ highlightcolor: str = ...,
2480
+ highlightthickness: float | str = ...,
2481
+ justify: Literal["left", "center", "right"] = "left",
2482
+ # There's no tkinter.ListVar, but seems like bare tkinter.Variable
2483
+ # actually works for this:
2484
+ #
2485
+ # >>> import tkinter
2486
+ # >>> lb = tkinter.Listbox()
2487
+ # >>> var = lb['listvariable'] = tkinter.Variable()
2488
+ # >>> var.set(['foo', 'bar', 'baz'])
2489
+ # >>> lb.get(0, 'end')
2490
+ # ('foo', 'bar', 'baz')
2491
+ listvariable: Variable = ...,
2492
+ name: str = ...,
2493
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2494
+ selectbackground: str = ...,
2495
+ selectborderwidth: float | str = 0,
2496
+ selectforeground: str = ...,
2497
+ # from listbox man page: "The value of the [selectmode] option may be
2498
+ # arbitrary, but the default bindings expect it to be either single,
2499
+ # browse, multiple, or extended"
2500
+ #
2501
+ # I have never seen anyone setting this to something else than what
2502
+ # "the default bindings expect", but let's support it anyway.
2503
+ selectmode: str | Literal["single", "browse", "multiple", "extended"] = "browse", # noqa: Y051
2504
+ setgrid: bool = False,
2505
+ state: Literal["normal", "disabled"] = "normal",
2506
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
2507
+ width: int = 20,
2508
+ xscrollcommand: str | Callable[[float, float], object] = "",
2509
+ yscrollcommand: str | Callable[[float, float], object] = "",
2510
+ ) -> None: ...
2511
+
2512
+ @overload
2513
+ def configure(
2514
+ self,
2515
+ cnf: dict[str, Any] | None = None,
2516
+ *,
2517
+ activestyle: Literal["dotbox", "none", "underline"] = ...,
2518
+ background: str = ...,
2519
+ bd: float | str = ...,
2520
+ bg: str = ...,
2521
+ border: float | str = ...,
2522
+ borderwidth: float | str = ...,
2523
+ cursor: _Cursor = ...,
2524
+ disabledforeground: str = ...,
2525
+ exportselection: bool = ...,
2526
+ fg: str = ...,
2527
+ font: _FontDescription = ...,
2528
+ foreground: str = ...,
2529
+ height: int = ...,
2530
+ highlightbackground: str = ...,
2531
+ highlightcolor: str = ...,
2532
+ highlightthickness: float | str = ...,
2533
+ justify: Literal["left", "center", "right"] = ...,
2534
+ listvariable: Variable = ...,
2535
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2536
+ selectbackground: str = ...,
2537
+ selectborderwidth: float | str = ...,
2538
+ selectforeground: str = ...,
2539
+ selectmode: str | Literal["single", "browse", "multiple", "extended"] = ..., # noqa: Y051
2540
+ setgrid: bool = ...,
2541
+ state: Literal["normal", "disabled"] = ...,
2542
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2543
+ width: int = ...,
2544
+ xscrollcommand: str | Callable[[float, float], object] = ...,
2545
+ yscrollcommand: str | Callable[[float, float], object] = ...,
2546
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2547
+ @overload
2548
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2549
+
2550
+ config = configure
2551
+ def activate(self, index: str | int) -> None: ...
2552
+ def bbox(self, index: str | int) -> tuple[int, int, int, int] | None: ... # type: ignore[override]
2553
+ def curselection(self): ...
2554
+ def delete(self, first: str | int, last: str | int | None = None) -> None: ...
2555
+ def get(self, first: str | int, last: str | int | None = None): ...
2556
+ def index(self, index: str | int) -> int: ...
2557
+ def insert(self, index: str | int, *elements: str | float) -> None: ...
2558
+ def nearest(self, y): ...
2559
+ def scan_mark(self, x, y) -> None: ...
2560
+ def scan_dragto(self, x, y) -> None: ...
2561
+ def see(self, index: str | int) -> None: ...
2562
+ def selection_anchor(self, index: str | int) -> None: ...
2563
+ select_anchor = selection_anchor
2564
+ def selection_clear(self, first: str | int, last: str | int | None = None) -> None: ... # type: ignore[override]
2565
+ select_clear = selection_clear
2566
+ def selection_includes(self, index: str | int): ...
2567
+ select_includes = selection_includes
2568
+ def selection_set(self, first: str | int, last: str | int | None = None) -> None: ...
2569
+ select_set = selection_set
2570
+ def size(self) -> int: ... # type: ignore[override]
2571
+ def itemcget(self, index: str | int, option): ...
2572
+ def itemconfigure(self, index: str | int, cnf=None, **kw): ...
2573
+ itemconfig = itemconfigure
2574
+
2575
+ class Menu(Widget):
2576
+ def __init__(
2577
+ self,
2578
+ master: Misc | None = None,
2579
+ cnf: dict[str, Any] | None = {},
2580
+ *,
2581
+ activebackground: str = ...,
2582
+ activeborderwidth: float | str = ...,
2583
+ activeforeground: str = ...,
2584
+ background: str = ...,
2585
+ bd: float | str = ...,
2586
+ bg: str = ...,
2587
+ border: float | str = ...,
2588
+ borderwidth: float | str = ...,
2589
+ cursor: _Cursor = "arrow",
2590
+ disabledforeground: str = ...,
2591
+ fg: str = ...,
2592
+ font: _FontDescription = ...,
2593
+ foreground: str = ...,
2594
+ name: str = ...,
2595
+ postcommand: Callable[[], object] | str = "",
2596
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2597
+ selectcolor: str = ...,
2598
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2599
+ tearoff: bool | Literal[0, 1] = 1,
2600
+ # I guess tearoffcommand arguments are supposed to be widget objects,
2601
+ # but they are widget name strings. Use nametowidget() to handle the
2602
+ # arguments of tearoffcommand.
2603
+ tearoffcommand: Callable[[str, str], object] | str = "",
2604
+ title: str = "",
2605
+ type: Literal["menubar", "tearoff", "normal"] = "normal",
2606
+ ) -> None: ...
2607
+
2608
+ @overload
2609
+ def configure(
2610
+ self,
2611
+ cnf: dict[str, Any] | None = None,
2612
+ *,
2613
+ activebackground: str = ...,
2614
+ activeborderwidth: float | str = ...,
2615
+ activeforeground: str = ...,
2616
+ background: str = ...,
2617
+ bd: float | str = ...,
2618
+ bg: str = ...,
2619
+ border: float | str = ...,
2620
+ borderwidth: float | str = ...,
2621
+ cursor: _Cursor = ...,
2622
+ disabledforeground: str = ...,
2623
+ fg: str = ...,
2624
+ font: _FontDescription = ...,
2625
+ foreground: str = ...,
2626
+ postcommand: Callable[[], object] | str = ...,
2627
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2628
+ selectcolor: str = ...,
2629
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2630
+ tearoff: bool = ...,
2631
+ tearoffcommand: Callable[[str, str], object] | str = ...,
2632
+ title: str = ...,
2633
+ type: Literal["menubar", "tearoff", "normal"] = ...,
2634
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2635
+ @overload
2636
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2637
+
2638
+ config = configure
2639
+ def tk_popup(self, x: int, y: int, entry: str | int = "") -> None: ...
2640
+ def activate(self, index: str | int) -> None: ...
2641
+ def add(self, itemType, cnf={}, **kw): ... # docstring says "Internal function."
2642
+ def insert(self, index, itemType, cnf={}, **kw): ... # docstring says "Internal function."
2643
+ def add_cascade(
2644
+ self,
2645
+ cnf: dict[str, Any] | None = {},
2646
+ *,
2647
+ accelerator: str = ...,
2648
+ activebackground: str = ...,
2649
+ activeforeground: str = ...,
2650
+ background: str = ...,
2651
+ bitmap: str = ...,
2652
+ columnbreak: int = ...,
2653
+ command: Callable[[], object] | str = ...,
2654
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2655
+ font: _FontDescription = ...,
2656
+ foreground: str = ...,
2657
+ hidemargin: bool = ...,
2658
+ image: _Image | str = ...,
2659
+ label: str = ...,
2660
+ menu: Menu = ...,
2661
+ state: Literal["normal", "active", "disabled"] = ...,
2662
+ underline: int = ...,
2663
+ ) -> None: ...
2664
+ def add_checkbutton(
2665
+ self,
2666
+ cnf: dict[str, Any] | None = {},
2667
+ *,
2668
+ accelerator: str = ...,
2669
+ activebackground: str = ...,
2670
+ activeforeground: str = ...,
2671
+ background: str = ...,
2672
+ bitmap: str = ...,
2673
+ columnbreak: int = ...,
2674
+ command: Callable[[], object] | str = ...,
2675
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2676
+ font: _FontDescription = ...,
2677
+ foreground: str = ...,
2678
+ hidemargin: bool = ...,
2679
+ image: _Image | str = ...,
2680
+ indicatoron: bool = ...,
2681
+ label: str = ...,
2682
+ offvalue: Any = ...,
2683
+ onvalue: Any = ...,
2684
+ selectcolor: str = ...,
2685
+ selectimage: _Image | str = ...,
2686
+ state: Literal["normal", "active", "disabled"] = ...,
2687
+ underline: int = ...,
2688
+ variable: Variable = ...,
2689
+ ) -> None: ...
2690
+ def add_command(
2691
+ self,
2692
+ cnf: dict[str, Any] | None = {},
2693
+ *,
2694
+ accelerator: str = ...,
2695
+ activebackground: str = ...,
2696
+ activeforeground: str = ...,
2697
+ background: str = ...,
2698
+ bitmap: str = ...,
2699
+ columnbreak: int = ...,
2700
+ command: Callable[[], object] | str = ...,
2701
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2702
+ font: _FontDescription = ...,
2703
+ foreground: str = ...,
2704
+ hidemargin: bool = ...,
2705
+ image: _Image | str = ...,
2706
+ label: str = ...,
2707
+ state: Literal["normal", "active", "disabled"] = ...,
2708
+ underline: int = ...,
2709
+ ) -> None: ...
2710
+ def add_radiobutton(
2711
+ self,
2712
+ cnf: dict[str, Any] | None = {},
2713
+ *,
2714
+ accelerator: str = ...,
2715
+ activebackground: str = ...,
2716
+ activeforeground: str = ...,
2717
+ background: str = ...,
2718
+ bitmap: str = ...,
2719
+ columnbreak: int = ...,
2720
+ command: Callable[[], object] | str = ...,
2721
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2722
+ font: _FontDescription = ...,
2723
+ foreground: str = ...,
2724
+ hidemargin: bool = ...,
2725
+ image: _Image | str = ...,
2726
+ indicatoron: bool = ...,
2727
+ label: str = ...,
2728
+ selectcolor: str = ...,
2729
+ selectimage: _Image | str = ...,
2730
+ state: Literal["normal", "active", "disabled"] = ...,
2731
+ underline: int = ...,
2732
+ value: Any = ...,
2733
+ variable: Variable = ...,
2734
+ ) -> None: ...
2735
+ def add_separator(self, cnf: dict[str, Any] | None = {}, *, background: str = ...) -> None: ...
2736
+ def insert_cascade(
2737
+ self,
2738
+ index: str | int,
2739
+ cnf: dict[str, Any] | None = {},
2740
+ *,
2741
+ accelerator: str = ...,
2742
+ activebackground: str = ...,
2743
+ activeforeground: str = ...,
2744
+ background: str = ...,
2745
+ bitmap: str = ...,
2746
+ columnbreak: int = ...,
2747
+ command: Callable[[], object] | str = ...,
2748
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2749
+ font: _FontDescription = ...,
2750
+ foreground: str = ...,
2751
+ hidemargin: bool = ...,
2752
+ image: _Image | str = ...,
2753
+ label: str = ...,
2754
+ menu: Menu = ...,
2755
+ state: Literal["normal", "active", "disabled"] = ...,
2756
+ underline: int = ...,
2757
+ ) -> None: ...
2758
+ def insert_checkbutton(
2759
+ self,
2760
+ index: str | int,
2761
+ cnf: dict[str, Any] | None = {},
2762
+ *,
2763
+ accelerator: str = ...,
2764
+ activebackground: str = ...,
2765
+ activeforeground: str = ...,
2766
+ background: str = ...,
2767
+ bitmap: str = ...,
2768
+ columnbreak: int = ...,
2769
+ command: Callable[[], object] | str = ...,
2770
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2771
+ font: _FontDescription = ...,
2772
+ foreground: str = ...,
2773
+ hidemargin: bool = ...,
2774
+ image: _Image | str = ...,
2775
+ indicatoron: bool = ...,
2776
+ label: str = ...,
2777
+ offvalue: Any = ...,
2778
+ onvalue: Any = ...,
2779
+ selectcolor: str = ...,
2780
+ selectimage: _Image | str = ...,
2781
+ state: Literal["normal", "active", "disabled"] = ...,
2782
+ underline: int = ...,
2783
+ variable: Variable = ...,
2784
+ ) -> None: ...
2785
+ def insert_command(
2786
+ self,
2787
+ index: str | int,
2788
+ cnf: dict[str, Any] | None = {},
2789
+ *,
2790
+ accelerator: str = ...,
2791
+ activebackground: str = ...,
2792
+ activeforeground: str = ...,
2793
+ background: str = ...,
2794
+ bitmap: str = ...,
2795
+ columnbreak: int = ...,
2796
+ command: Callable[[], object] | str = ...,
2797
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2798
+ font: _FontDescription = ...,
2799
+ foreground: str = ...,
2800
+ hidemargin: bool = ...,
2801
+ image: _Image | str = ...,
2802
+ label: str = ...,
2803
+ state: Literal["normal", "active", "disabled"] = ...,
2804
+ underline: int = ...,
2805
+ ) -> None: ...
2806
+ def insert_radiobutton(
2807
+ self,
2808
+ index: str | int,
2809
+ cnf: dict[str, Any] | None = {},
2810
+ *,
2811
+ accelerator: str = ...,
2812
+ activebackground: str = ...,
2813
+ activeforeground: str = ...,
2814
+ background: str = ...,
2815
+ bitmap: str = ...,
2816
+ columnbreak: int = ...,
2817
+ command: Callable[[], object] | str = ...,
2818
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2819
+ font: _FontDescription = ...,
2820
+ foreground: str = ...,
2821
+ hidemargin: bool = ...,
2822
+ image: _Image | str = ...,
2823
+ indicatoron: bool = ...,
2824
+ label: str = ...,
2825
+ selectcolor: str = ...,
2826
+ selectimage: _Image | str = ...,
2827
+ state: Literal["normal", "active", "disabled"] = ...,
2828
+ underline: int = ...,
2829
+ value: Any = ...,
2830
+ variable: Variable = ...,
2831
+ ) -> None: ...
2832
+ def insert_separator(self, index: str | int, cnf: dict[str, Any] | None = {}, *, background: str = ...) -> None: ...
2833
+ def delete(self, index1: str | int, index2: str | int | None = None) -> None: ...
2834
+ def entrycget(self, index: str | int, option: str) -> Any: ...
2835
+ def entryconfigure(
2836
+ self, index: str | int, cnf: dict[str, Any] | None = None, **kw: Any
2837
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2838
+ entryconfig = entryconfigure
2839
+ def index(self, index: str | int) -> int | None: ...
2840
+ def invoke(self, index: str | int) -> Any: ...
2841
+ def post(self, x: int, y: int) -> None: ...
2842
+ def type(self, index: str | int) -> Literal["cascade", "checkbutton", "command", "radiobutton", "separator"]: ...
2843
+ def unpost(self) -> None: ...
2844
+ def xposition(self, index: str | int) -> int: ...
2845
+ def yposition(self, index: str | int) -> int: ...
2846
+
2847
+ class Menubutton(Widget):
2848
+ def __init__(
2849
+ self,
2850
+ master: Misc | None = None,
2851
+ cnf: dict[str, Any] | None = {},
2852
+ *,
2853
+ activebackground: str = ...,
2854
+ activeforeground: str = ...,
2855
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2856
+ background: str = ...,
2857
+ bd: float | str = ...,
2858
+ bg: str = ...,
2859
+ bitmap: str = "",
2860
+ border: float | str = ...,
2861
+ borderwidth: float | str = ...,
2862
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
2863
+ cursor: _Cursor = "",
2864
+ direction: Literal["above", "below", "left", "right", "flush"] = "below",
2865
+ disabledforeground: str = ...,
2866
+ fg: str = ...,
2867
+ font: _FontDescription = "TkDefaultFont",
2868
+ foreground: str = ...,
2869
+ height: float | str = 0,
2870
+ highlightbackground: str = ...,
2871
+ highlightcolor: str = ...,
2872
+ highlightthickness: float | str = 0,
2873
+ image: _Image | str = "",
2874
+ indicatoron: bool = ...,
2875
+ justify: Literal["left", "center", "right"] = ...,
2876
+ menu: Menu = ...,
2877
+ name: str = ...,
2878
+ padx: float | str = ...,
2879
+ pady: float | str = ...,
2880
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2881
+ state: Literal["normal", "active", "disabled"] = "normal",
2882
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2883
+ text: float | str = "",
2884
+ textvariable: Variable = ...,
2885
+ underline: int = -1,
2886
+ width: float | str = 0,
2887
+ wraplength: float | str = 0,
2888
+ ) -> None: ...
2889
+
2890
+ @overload
2891
+ def configure(
2892
+ self,
2893
+ cnf: dict[str, Any] | None = None,
2894
+ *,
2895
+ activebackground: str = ...,
2896
+ activeforeground: str = ...,
2897
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2898
+ background: str = ...,
2899
+ bd: float | str = ...,
2900
+ bg: str = ...,
2901
+ bitmap: str = ...,
2902
+ border: float | str = ...,
2903
+ borderwidth: float | str = ...,
2904
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2905
+ cursor: _Cursor = ...,
2906
+ direction: Literal["above", "below", "left", "right", "flush"] = ...,
2907
+ disabledforeground: str = ...,
2908
+ fg: str = ...,
2909
+ font: _FontDescription = ...,
2910
+ foreground: str = ...,
2911
+ height: float | str = ...,
2912
+ highlightbackground: str = ...,
2913
+ highlightcolor: str = ...,
2914
+ highlightthickness: float | str = ...,
2915
+ image: _Image | str = ...,
2916
+ indicatoron: bool = ...,
2917
+ justify: Literal["left", "center", "right"] = ...,
2918
+ menu: Menu = ...,
2919
+ padx: float | str = ...,
2920
+ pady: float | str = ...,
2921
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2922
+ state: Literal["normal", "active", "disabled"] = ...,
2923
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2924
+ text: float | str = ...,
2925
+ textvariable: Variable = ...,
2926
+ underline: int = ...,
2927
+ width: float | str = ...,
2928
+ wraplength: float | str = ...,
2929
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2930
+ @overload
2931
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2932
+
2933
+ config = configure
2934
+
2935
+ class Message(Widget):
2936
+ def __init__(
2937
+ self,
2938
+ master: Misc | None = None,
2939
+ cnf: dict[str, Any] | None = {},
2940
+ *,
2941
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
2942
+ aspect: int = 150,
2943
+ background: str = ...,
2944
+ bd: float | str = 1,
2945
+ bg: str = ...,
2946
+ border: float | str = 1,
2947
+ borderwidth: float | str = 1,
2948
+ cursor: _Cursor = "",
2949
+ fg: str = ...,
2950
+ font: _FontDescription = "TkDefaultFont",
2951
+ foreground: str = ...,
2952
+ highlightbackground: str = ...,
2953
+ highlightcolor: str = ...,
2954
+ highlightthickness: float | str = 0,
2955
+ justify: Literal["left", "center", "right"] = "left",
2956
+ name: str = ...,
2957
+ padx: float | str = ...,
2958
+ pady: float | str = ...,
2959
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2960
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2961
+ text: float | str = "",
2962
+ textvariable: Variable = ...,
2963
+ # there's width but no height
2964
+ width: float | str = 0,
2965
+ ) -> None: ...
2966
+
2967
+ @overload
2968
+ def configure(
2969
+ self,
2970
+ cnf: dict[str, Any] | None = None,
2971
+ *,
2972
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2973
+ aspect: int = ...,
2974
+ background: str = ...,
2975
+ bd: float | str = ...,
2976
+ bg: str = ...,
2977
+ border: float | str = ...,
2978
+ borderwidth: float | str = ...,
2979
+ cursor: _Cursor = ...,
2980
+ fg: str = ...,
2981
+ font: _FontDescription = ...,
2982
+ foreground: str = ...,
2983
+ highlightbackground: str = ...,
2984
+ highlightcolor: str = ...,
2985
+ highlightthickness: float | str = ...,
2986
+ justify: Literal["left", "center", "right"] = ...,
2987
+ padx: float | str = ...,
2988
+ pady: float | str = ...,
2989
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2990
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2991
+ text: float | str = ...,
2992
+ textvariable: Variable = ...,
2993
+ width: float | str = ...,
2994
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2995
+ @overload
2996
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2997
+
2998
+ config = configure
2999
+
3000
+ class Radiobutton(Widget):
3001
+ def __init__(
3002
+ self,
3003
+ master: Misc | None = None,
3004
+ cnf: dict[str, Any] | None = {},
3005
+ *,
3006
+ activebackground: str = ...,
3007
+ activeforeground: str = ...,
3008
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
3009
+ background: str = ...,
3010
+ bd: float | str = ...,
3011
+ bg: str = ...,
3012
+ bitmap: str = "",
3013
+ border: float | str = ...,
3014
+ borderwidth: float | str = ...,
3015
+ command: str | Callable[[], Any] = "",
3016
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
3017
+ cursor: _Cursor = "",
3018
+ disabledforeground: str = ...,
3019
+ fg: str = ...,
3020
+ font: _FontDescription = "TkDefaultFont",
3021
+ foreground: str = ...,
3022
+ height: float | str = 0,
3023
+ highlightbackground: str = ...,
3024
+ highlightcolor: str = ...,
3025
+ highlightthickness: float | str = 1,
3026
+ image: _Image | str = "",
3027
+ indicatoron: bool = True,
3028
+ justify: Literal["left", "center", "right"] = "center",
3029
+ name: str = ...,
3030
+ offrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3031
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = "",
3032
+ padx: float | str = 1,
3033
+ pady: float | str = 1,
3034
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
3035
+ selectcolor: str = ...,
3036
+ selectimage: _Image | str = "",
3037
+ state: Literal["normal", "active", "disabled"] = "normal",
3038
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
3039
+ text: float | str = "",
3040
+ textvariable: Variable = ...,
3041
+ tristateimage: _Image | str = "",
3042
+ tristatevalue: Any = "",
3043
+ underline: int = -1,
3044
+ value: Any = "",
3045
+ variable: Variable | Literal[""] = ...,
3046
+ width: float | str = 0,
3047
+ wraplength: float | str = 0,
3048
+ ) -> None: ...
3049
+
3050
+ @overload
3051
+ def configure(
3052
+ self,
3053
+ cnf: dict[str, Any] | None = None,
3054
+ *,
3055
+ activebackground: str = ...,
3056
+ activeforeground: str = ...,
3057
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
3058
+ background: str = ...,
3059
+ bd: float | str = ...,
3060
+ bg: str = ...,
3061
+ bitmap: str = ...,
3062
+ border: float | str = ...,
3063
+ borderwidth: float | str = ...,
3064
+ command: str | Callable[[], Any] = ...,
3065
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
3066
+ cursor: _Cursor = ...,
3067
+ disabledforeground: str = ...,
3068
+ fg: str = ...,
3069
+ font: _FontDescription = ...,
3070
+ foreground: str = ...,
3071
+ height: float | str = ...,
3072
+ highlightbackground: str = ...,
3073
+ highlightcolor: str = ...,
3074
+ highlightthickness: float | str = ...,
3075
+ image: _Image | str = ...,
3076
+ indicatoron: bool = ...,
3077
+ justify: Literal["left", "center", "right"] = ...,
3078
+ offrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3079
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = ...,
3080
+ padx: float | str = ...,
3081
+ pady: float | str = ...,
3082
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3083
+ selectcolor: str = ...,
3084
+ selectimage: _Image | str = ...,
3085
+ state: Literal["normal", "active", "disabled"] = ...,
3086
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
3087
+ text: float | str = ...,
3088
+ textvariable: Variable = ...,
3089
+ tristateimage: _Image | str = ...,
3090
+ tristatevalue: Any = ...,
3091
+ underline: int = ...,
3092
+ value: Any = ...,
3093
+ variable: Variable | Literal[""] = ...,
3094
+ width: float | str = ...,
3095
+ wraplength: float | str = ...,
3096
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3097
+ @overload
3098
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3099
+
3100
+ config = configure
3101
+ def deselect(self) -> None: ...
3102
+ def flash(self) -> None: ...
3103
+ def invoke(self) -> Any: ...
3104
+ def select(self) -> None: ...
3105
+
3106
+ class Scale(Widget):
3107
+ def __init__(
3108
+ self,
3109
+ master: Misc | None = None,
3110
+ cnf: dict[str, Any] | None = {},
3111
+ *,
3112
+ activebackground: str = ...,
3113
+ background: str = ...,
3114
+ bd: float | str = 1,
3115
+ bg: str = ...,
3116
+ bigincrement: float = 0.0,
3117
+ border: float | str = 1,
3118
+ borderwidth: float | str = 1,
3119
+ # don't know why the callback gets string instead of float
3120
+ command: str | Callable[[str], object] = "",
3121
+ cursor: _Cursor = "",
3122
+ digits: int = 0,
3123
+ fg: str = ...,
3124
+ font: _FontDescription = "TkDefaultFont",
3125
+ foreground: str = ...,
3126
+ from_: float = 0.0,
3127
+ highlightbackground: str = ...,
3128
+ highlightcolor: str = ...,
3129
+ highlightthickness: float | str = ...,
3130
+ label: str = "",
3131
+ length: float | str = 100,
3132
+ name: str = ...,
3133
+ orient: Literal["horizontal", "vertical"] = "vertical",
3134
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
3135
+ repeatdelay: int = 300,
3136
+ repeatinterval: int = 100,
3137
+ resolution: float = 1.0,
3138
+ showvalue: bool = True,
3139
+ sliderlength: float | str = 30,
3140
+ sliderrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "raised",
3141
+ state: Literal["normal", "active", "disabled"] = "normal",
3142
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
3143
+ tickinterval: float = 0.0,
3144
+ to: float = 100.0,
3145
+ troughcolor: str = ...,
3146
+ variable: IntVar | DoubleVar = ...,
3147
+ width: float | str = 15,
3148
+ ) -> None: ...
3149
+
3150
+ @overload
3151
+ def configure(
3152
+ self,
3153
+ cnf: dict[str, Any] | None = None,
3154
+ *,
3155
+ activebackground: str = ...,
3156
+ background: str = ...,
3157
+ bd: float | str = ...,
3158
+ bg: str = ...,
3159
+ bigincrement: float = ...,
3160
+ border: float | str = ...,
3161
+ borderwidth: float | str = ...,
3162
+ command: str | Callable[[str], object] = ...,
3163
+ cursor: _Cursor = ...,
3164
+ digits: int = ...,
3165
+ fg: str = ...,
3166
+ font: _FontDescription = ...,
3167
+ foreground: str = ...,
3168
+ from_: float = ...,
3169
+ highlightbackground: str = ...,
3170
+ highlightcolor: str = ...,
3171
+ highlightthickness: float | str = ...,
3172
+ label: str = ...,
3173
+ length: float | str = ...,
3174
+ orient: Literal["horizontal", "vertical"] = ...,
3175
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3176
+ repeatdelay: int = ...,
3177
+ repeatinterval: int = ...,
3178
+ resolution: float = ...,
3179
+ showvalue: bool = ...,
3180
+ sliderlength: float | str = ...,
3181
+ sliderrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3182
+ state: Literal["normal", "active", "disabled"] = ...,
3183
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
3184
+ tickinterval: float = ...,
3185
+ to: float = ...,
3186
+ troughcolor: str = ...,
3187
+ variable: IntVar | DoubleVar = ...,
3188
+ width: float | str = ...,
3189
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3190
+ @overload
3191
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3192
+
3193
+ config = configure
3194
+ def get(self) -> float: ...
3195
+ def set(self, value) -> None: ...
3196
+ def coords(self, value: float | None = None) -> tuple[int, int]: ...
3197
+ def identify(self, x, y) -> Literal["", "slider", "trough1", "trough2"]: ...
3198
+
3199
+ class Scrollbar(Widget):
3200
+ def __init__(
3201
+ self,
3202
+ master: Misc | None = None,
3203
+ cnf: dict[str, Any] | None = {},
3204
+ *,
3205
+ activebackground: str = ...,
3206
+ activerelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "raised",
3207
+ background: str = ...,
3208
+ bd: float | str = ...,
3209
+ bg: str = ...,
3210
+ border: float | str = ...,
3211
+ borderwidth: float | str = ...,
3212
+ # There are many ways how the command may get called. Search for
3213
+ # 'SCROLLING COMMANDS' in scrollbar man page. There doesn't seem to
3214
+ # be any way to specify an overloaded callback function, so we say
3215
+ # that it can take any args while it can't in reality.
3216
+ command: Callable[..., tuple[float, float] | None] | str = "",
3217
+ cursor: _Cursor = "",
3218
+ elementborderwidth: float | str = -1,
3219
+ highlightbackground: str = ...,
3220
+ highlightcolor: str = ...,
3221
+ highlightthickness: float | str = 0,
3222
+ jump: bool = False,
3223
+ name: str = ...,
3224
+ orient: Literal["horizontal", "vertical"] = "vertical",
3225
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3226
+ repeatdelay: int = 300,
3227
+ repeatinterval: int = 100,
3228
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
3229
+ troughcolor: str = ...,
3230
+ width: float | str = ...,
3231
+ ) -> None: ...
3232
+
3233
+ @overload
3234
+ def configure(
3235
+ self,
3236
+ cnf: dict[str, Any] | None = None,
3237
+ *,
3238
+ activebackground: str = ...,
3239
+ activerelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3240
+ background: str = ...,
3241
+ bd: float | str = ...,
3242
+ bg: str = ...,
3243
+ border: float | str = ...,
3244
+ borderwidth: float | str = ...,
3245
+ command: Callable[..., tuple[float, float] | None] | str = ...,
3246
+ cursor: _Cursor = ...,
3247
+ elementborderwidth: float | str = ...,
3248
+ highlightbackground: str = ...,
3249
+ highlightcolor: str = ...,
3250
+ highlightthickness: float | str = ...,
3251
+ jump: bool = ...,
3252
+ orient: Literal["horizontal", "vertical"] = ...,
3253
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3254
+ repeatdelay: int = ...,
3255
+ repeatinterval: int = ...,
3256
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
3257
+ troughcolor: str = ...,
3258
+ width: float | str = ...,
3259
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3260
+ @overload
3261
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3262
+
3263
+ config = configure
3264
+ def activate(self, index=None): ...
3265
+ def delta(self, deltax: int, deltay: int) -> float: ...
3266
+ def fraction(self, x: int, y: int) -> float: ...
3267
+ def identify(self, x: int, y: int) -> Literal["arrow1", "arrow2", "slider", "trough1", "trough2", ""]: ...
3268
+ def get(self) -> tuple[float, float, float, float] | tuple[float, float]: ...
3269
+ def set(self, first: float | str, last: float | str) -> None: ...
3270
+
3271
+ _WhatToCount: TypeAlias = Literal[
3272
+ "chars", "displaychars", "displayindices", "displaylines", "indices", "lines", "xpixels", "ypixels"
3273
+ ]
3274
+
3275
+ class Text(Widget, XView, YView):
3276
+ def __init__(
3277
+ self,
3278
+ master: Misc | None = None,
3279
+ cnf: dict[str, Any] | None = {},
3280
+ *,
3281
+ autoseparators: bool = True,
3282
+ background: str = ...,
3283
+ bd: float | str = ...,
3284
+ bg: str = ...,
3285
+ blockcursor: bool = False,
3286
+ border: float | str = ...,
3287
+ borderwidth: float | str = ...,
3288
+ cursor: _Cursor = "xterm",
3289
+ endline: int | Literal[""] = "",
3290
+ exportselection: bool = True,
3291
+ fg: str = ...,
3292
+ font: _FontDescription = "TkFixedFont",
3293
+ foreground: str = ...,
3294
+ # width is always int, but height is allowed to be screen units.
3295
+ # This doesn't make any sense to me, and this isn't documented.
3296
+ # The docs seem to say that both should be integers.
3297
+ height: float | str = 24,
3298
+ highlightbackground: str = ...,
3299
+ highlightcolor: str = ...,
3300
+ highlightthickness: float | str = ...,
3301
+ inactiveselectbackground: str = ...,
3302
+ insertbackground: str = ...,
3303
+ insertborderwidth: float | str = 0,
3304
+ insertofftime: int = 300,
3305
+ insertontime: int = 600,
3306
+ insertunfocussed: Literal["none", "hollow", "solid"] = "none",
3307
+ insertwidth: float | str = ...,
3308
+ maxundo: int = 0,
3309
+ name: str = ...,
3310
+ padx: float | str = 1,
3311
+ pady: float | str = 1,
3312
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3313
+ selectbackground: str = ...,
3314
+ selectborderwidth: float | str = ...,
3315
+ selectforeground: str = ...,
3316
+ setgrid: bool = False,
3317
+ spacing1: float | str = 0,
3318
+ spacing2: float | str = 0,
3319
+ spacing3: float | str = 0,
3320
+ startline: int | Literal[""] = "",
3321
+ state: Literal["normal", "disabled"] = "normal",
3322
+ # Literal inside Tuple doesn't actually work
3323
+ tabs: float | str | tuple[float | str, ...] = "",
3324
+ tabstyle: Literal["tabular", "wordprocessor"] = "tabular",
3325
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
3326
+ undo: bool = False,
3327
+ width: int = 80,
3328
+ wrap: Literal["none", "char", "word"] = "char",
3329
+ xscrollcommand: str | Callable[[float, float], object] = "",
3330
+ yscrollcommand: str | Callable[[float, float], object] = "",
3331
+ ) -> None: ...
3332
+
3333
+ @overload
3334
+ def configure(
3335
+ self,
3336
+ cnf: dict[str, Any] | None = None,
3337
+ *,
3338
+ autoseparators: bool = ...,
3339
+ background: str = ...,
3340
+ bd: float | str = ...,
3341
+ bg: str = ...,
3342
+ blockcursor: bool = ...,
3343
+ border: float | str = ...,
3344
+ borderwidth: float | str = ...,
3345
+ cursor: _Cursor = ...,
3346
+ endline: int | Literal[""] = ...,
3347
+ exportselection: bool = ...,
3348
+ fg: str = ...,
3349
+ font: _FontDescription = ...,
3350
+ foreground: str = ...,
3351
+ height: float | str = ...,
3352
+ highlightbackground: str = ...,
3353
+ highlightcolor: str = ...,
3354
+ highlightthickness: float | str = ...,
3355
+ inactiveselectbackground: str = ...,
3356
+ insertbackground: str = ...,
3357
+ insertborderwidth: float | str = ...,
3358
+ insertofftime: int = ...,
3359
+ insertontime: int = ...,
3360
+ insertunfocussed: Literal["none", "hollow", "solid"] = ...,
3361
+ insertwidth: float | str = ...,
3362
+ maxundo: int = ...,
3363
+ padx: float | str = ...,
3364
+ pady: float | str = ...,
3365
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3366
+ selectbackground: str = ...,
3367
+ selectborderwidth: float | str = ...,
3368
+ selectforeground: str = ...,
3369
+ setgrid: bool = ...,
3370
+ spacing1: float | str = ...,
3371
+ spacing2: float | str = ...,
3372
+ spacing3: float | str = ...,
3373
+ startline: int | Literal[""] = ...,
3374
+ state: Literal["normal", "disabled"] = ...,
3375
+ tabs: float | str | tuple[float | str, ...] = ...,
3376
+ tabstyle: Literal["tabular", "wordprocessor"] = ...,
3377
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
3378
+ undo: bool = ...,
3379
+ width: int = ...,
3380
+ wrap: Literal["none", "char", "word"] = ...,
3381
+ xscrollcommand: str | Callable[[float, float], object] = ...,
3382
+ yscrollcommand: str | Callable[[float, float], object] = ...,
3383
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3384
+ @overload
3385
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3386
+
3387
+ config = configure
3388
+ def bbox(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> tuple[int, int, int, int] | None: ... # type: ignore[override]
3389
+ def compare(
3390
+ self,
3391
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3392
+ op: Literal["<", "<=", "==", ">=", ">", "!="],
3393
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3394
+ ) -> bool: ...
3395
+
3396
+ if sys.version_info >= (3, 13):
3397
+ @overload
3398
+ def count(
3399
+ self,
3400
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3401
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3402
+ *,
3403
+ return_ints: Literal[True],
3404
+ ) -> int: ...
3405
+ @overload
3406
+ def count(
3407
+ self,
3408
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3409
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3410
+ arg: _WhatToCount | Literal["update"],
3411
+ /,
3412
+ *,
3413
+ return_ints: Literal[True],
3414
+ ) -> int: ...
3415
+ @overload
3416
+ def count(
3417
+ self,
3418
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3419
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3420
+ arg1: Literal["update"],
3421
+ arg2: _WhatToCount,
3422
+ /,
3423
+ *,
3424
+ return_ints: Literal[True],
3425
+ ) -> int: ...
3426
+ @overload
3427
+ def count(
3428
+ self,
3429
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3430
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3431
+ arg1: _WhatToCount,
3432
+ arg2: Literal["update"],
3433
+ /,
3434
+ *,
3435
+ return_ints: Literal[True],
3436
+ ) -> int: ...
3437
+ @overload
3438
+ def count(
3439
+ self,
3440
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3441
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3442
+ arg1: _WhatToCount,
3443
+ arg2: _WhatToCount,
3444
+ /,
3445
+ *,
3446
+ return_ints: Literal[True],
3447
+ ) -> tuple[int, int]: ...
3448
+ @overload
3449
+ def count(
3450
+ self,
3451
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3452
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3453
+ arg1: _WhatToCount | Literal["update"],
3454
+ arg2: _WhatToCount | Literal["update"],
3455
+ arg3: _WhatToCount | Literal["update"],
3456
+ /,
3457
+ *args: _WhatToCount | Literal["update"],
3458
+ return_ints: Literal[True],
3459
+ ) -> tuple[int, ...]: ...
3460
+ @overload
3461
+ def count(
3462
+ self,
3463
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3464
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3465
+ *,
3466
+ return_ints: Literal[False] = False,
3467
+ ) -> tuple[int] | None: ...
3468
+ @overload
3469
+ def count(
3470
+ self,
3471
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3472
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3473
+ arg: _WhatToCount | Literal["update"],
3474
+ /,
3475
+ *,
3476
+ return_ints: Literal[False] = False,
3477
+ ) -> tuple[int] | None: ...
3478
+ @overload
3479
+ def count(
3480
+ self,
3481
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3482
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3483
+ arg1: Literal["update"],
3484
+ arg2: _WhatToCount,
3485
+ /,
3486
+ *,
3487
+ return_ints: Literal[False] = False,
3488
+ ) -> int | None: ...
3489
+ @overload
3490
+ def count(
3491
+ self,
3492
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3493
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3494
+ arg1: _WhatToCount,
3495
+ arg2: Literal["update"],
3496
+ /,
3497
+ *,
3498
+ return_ints: Literal[False] = False,
3499
+ ) -> int | None: ...
3500
+ @overload
3501
+ def count(
3502
+ self,
3503
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3504
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3505
+ arg1: _WhatToCount,
3506
+ arg2: _WhatToCount,
3507
+ /,
3508
+ *,
3509
+ return_ints: Literal[False] = False,
3510
+ ) -> tuple[int, int]: ...
3511
+ @overload
3512
+ def count(
3513
+ self,
3514
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3515
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3516
+ arg1: _WhatToCount | Literal["update"],
3517
+ arg2: _WhatToCount | Literal["update"],
3518
+ arg3: _WhatToCount | Literal["update"],
3519
+ /,
3520
+ *args: _WhatToCount | Literal["update"],
3521
+ return_ints: Literal[False] = False,
3522
+ ) -> tuple[int, ...]: ...
3523
+ else:
3524
+ @overload
3525
+ def count(
3526
+ self, index1: str | float | _tkinter.Tcl_Obj | Widget, index2: str | float | _tkinter.Tcl_Obj | Widget
3527
+ ) -> tuple[int] | None: ...
3528
+ @overload
3529
+ def count(
3530
+ self,
3531
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3532
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3533
+ arg: _WhatToCount | Literal["update"],
3534
+ /,
3535
+ ) -> tuple[int] | None: ...
3536
+ @overload
3537
+ def count(
3538
+ self,
3539
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3540
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3541
+ arg1: Literal["update"],
3542
+ arg2: _WhatToCount,
3543
+ /,
3544
+ ) -> int | None: ...
3545
+ @overload
3546
+ def count(
3547
+ self,
3548
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3549
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3550
+ arg1: _WhatToCount,
3551
+ arg2: Literal["update"],
3552
+ /,
3553
+ ) -> int | None: ...
3554
+ @overload
3555
+ def count(
3556
+ self,
3557
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3558
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3559
+ arg1: _WhatToCount,
3560
+ arg2: _WhatToCount,
3561
+ /,
3562
+ ) -> tuple[int, int]: ...
3563
+ @overload
3564
+ def count(
3565
+ self,
3566
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3567
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3568
+ arg1: _WhatToCount | Literal["update"],
3569
+ arg2: _WhatToCount | Literal["update"],
3570
+ arg3: _WhatToCount | Literal["update"],
3571
+ /,
3572
+ *args: _WhatToCount | Literal["update"],
3573
+ ) -> tuple[int, ...]: ...
3574
+
3575
+ @overload
3576
+ def debug(self, boolean: None = None) -> bool: ...
3577
+ @overload
3578
+ def debug(self, boolean: bool) -> None: ...
3579
+
3580
+ def delete(
3581
+ self, index1: str | float | _tkinter.Tcl_Obj | Widget, index2: str | float | _tkinter.Tcl_Obj | Widget | None = None
3582
+ ) -> None: ...
3583
+ def dlineinfo(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> tuple[int, int, int, int, int] | None: ...
3584
+
3585
+ @overload
3586
+ def dump(
3587
+ self,
3588
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3589
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3590
+ command: None = None,
3591
+ *,
3592
+ all: bool = ...,
3593
+ image: bool = ...,
3594
+ mark: bool = ...,
3595
+ tag: bool = ...,
3596
+ text: bool = ...,
3597
+ window: bool = ...,
3598
+ ) -> list[tuple[str, str, str]]: ...
3599
+ @overload
3600
+ def dump(
3601
+ self,
3602
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3603
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None,
3604
+ command: Callable[[str, str, str], object] | str,
3605
+ *,
3606
+ all: bool = ...,
3607
+ image: bool = ...,
3608
+ mark: bool = ...,
3609
+ tag: bool = ...,
3610
+ text: bool = ...,
3611
+ window: bool = ...,
3612
+ ) -> None: ...
3613
+ @overload
3614
+ def dump(
3615
+ self,
3616
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3617
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3618
+ *,
3619
+ command: Callable[[str, str, str], object] | str,
3620
+ all: bool = ...,
3621
+ image: bool = ...,
3622
+ mark: bool = ...,
3623
+ tag: bool = ...,
3624
+ text: bool = ...,
3625
+ window: bool = ...,
3626
+ ) -> None: ...
3627
+
3628
+ def edit(self, *args): ... # docstring says "Internal method"
3629
+
3630
+ @overload
3631
+ def edit_modified(self, arg: None = None) -> bool: ... # actually returns Literal[0, 1]
3632
+ @overload
3633
+ def edit_modified(self, arg: bool) -> None: ... # actually returns empty string
3634
+
3635
+ def edit_redo(self) -> None: ... # actually returns empty string
3636
+ def edit_reset(self) -> None: ... # actually returns empty string
3637
+ def edit_separator(self) -> None: ... # actually returns empty string
3638
+ def edit_undo(self) -> None: ... # actually returns empty string
3639
+ def get(
3640
+ self, index1: str | float | _tkinter.Tcl_Obj | Widget, index2: str | float | _tkinter.Tcl_Obj | Widget | None = None
3641
+ ) -> str: ...
3642
+
3643
+ @overload
3644
+ def image_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["image", "name"]) -> str: ...
3645
+ @overload
3646
+ def image_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["padx", "pady"]) -> int: ...
3647
+ @overload
3648
+ def image_cget(
3649
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["align"]
3650
+ ) -> Literal["baseline", "bottom", "center", "top"]: ...
3651
+ @overload
3652
+ def image_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: str) -> Any: ...
3653
+
3654
+ @overload
3655
+ def image_configure(
3656
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, cnf: str
3657
+ ) -> tuple[str, str, str, str, str | int]: ...
3658
+ @overload
3659
+ def image_configure(
3660
+ self,
3661
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3662
+ cnf: dict[str, Any] | None = None,
3663
+ *,
3664
+ align: Literal["baseline", "bottom", "center", "top"] = ...,
3665
+ image: _Image | str = ...,
3666
+ name: str = ...,
3667
+ padx: float | str = ...,
3668
+ pady: float | str = ...,
3669
+ ) -> dict[str, tuple[str, str, str, str, str | int]] | None: ...
3670
+
3671
+ def image_create(
3672
+ self,
3673
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3674
+ cnf: dict[str, Any] | None = {},
3675
+ *,
3676
+ align: Literal["baseline", "bottom", "center", "top"] = ...,
3677
+ image: _Image | str = ...,
3678
+ name: str = ...,
3679
+ padx: float | str = ...,
3680
+ pady: float | str = ...,
3681
+ ) -> str: ...
3682
+ def image_names(self) -> tuple[str, ...]: ...
3683
+ def index(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> str: ...
3684
+ def insert(
3685
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, chars: str, *args: str | list[str] | tuple[str, ...]
3686
+ ) -> None: ...
3687
+
3688
+ @overload
3689
+ def mark_gravity(self, markName: str, direction: None = None) -> Literal["left", "right"]: ...
3690
+ @overload
3691
+ def mark_gravity(self, markName: str, direction: Literal["left", "right"]) -> None: ... # actually returns empty string
3692
+
3693
+ def mark_names(self) -> tuple[str, ...]: ...
3694
+ def mark_set(self, markName: str, index: str | float | _tkinter.Tcl_Obj | Widget) -> None: ...
3695
+ def mark_unset(self, *markNames: str) -> None: ...
3696
+ def mark_next(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> str | None: ...
3697
+ def mark_previous(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> str | None: ...
3698
+ # **kw of peer_create is same as the kwargs of Text.__init__
3699
+ def peer_create(self, newPathName: str | Text, cnf: dict[str, Any] = {}, **kw) -> None: ...
3700
+ def peer_names(self) -> tuple[_tkinter.Tcl_Obj, ...]: ...
3701
+ def replace(
3702
+ self,
3703
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3704
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3705
+ chars: str,
3706
+ *args: str | list[str] | tuple[str, ...],
3707
+ ) -> None: ...
3708
+ def scan_mark(self, x: int, y: int) -> None: ...
3709
+ def scan_dragto(self, x: int, y: int) -> None: ...
3710
+ if sys.version_info >= (3, 15):
3711
+ def search(
3712
+ self,
3713
+ pattern: str,
3714
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3715
+ stopindex: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3716
+ forwards: bool | None = None,
3717
+ backwards: bool | None = None,
3718
+ exact: bool | None = None,
3719
+ regexp: bool | None = None,
3720
+ nocase: bool | None = None,
3721
+ count: Variable | None = None,
3722
+ elide: bool | None = None,
3723
+ *,
3724
+ nolinestop: bool | None = None,
3725
+ strictlimits: bool | None = None,
3726
+ ) -> str: ... # returns empty string for not found
3727
+ def search_all(
3728
+ self,
3729
+ pattern: str,
3730
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3731
+ stopindex: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3732
+ *,
3733
+ forwards: bool | None = None,
3734
+ backwards: bool | None = None,
3735
+ exact: bool | None = None,
3736
+ regexp: bool | None = None,
3737
+ nocase: bool | None = None,
3738
+ count: Variable | None = None,
3739
+ elide: bool | None = None,
3740
+ nolinestop: bool | None = None,
3741
+ overlap: bool | None = None,
3742
+ strictlimits: bool | None = None,
3743
+ ) -> tuple[_tkinter.Tcl_Obj, ...]: ...
3744
+ else:
3745
+ def search(
3746
+ self,
3747
+ pattern: str,
3748
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3749
+ stopindex: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3750
+ forwards: bool | None = None,
3751
+ backwards: bool | None = None,
3752
+ exact: bool | None = None,
3753
+ regexp: bool | None = None,
3754
+ nocase: bool | None = None,
3755
+ count: Variable | None = None,
3756
+ elide: bool | None = None,
3757
+ ) -> str: ... # returns empty string for not found
3758
+
3759
+ def see(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> None: ...
3760
+ def tag_add(
3761
+ self, tagName: str, index1: str | float | _tkinter.Tcl_Obj | Widget, *args: str | float | _tkinter.Tcl_Obj | Widget
3762
+ ) -> None: ...
3763
+
3764
+ # tag_bind stuff is very similar to Canvas
3765
+ @overload
3766
+ def tag_bind(
3767
+ self,
3768
+ tagName: str,
3769
+ sequence: str | None,
3770
+ func: Callable[[Event[Text]], object] | None,
3771
+ add: Literal["", "+"] | bool | None = None,
3772
+ ) -> str: ...
3773
+ @overload
3774
+ def tag_bind(self, tagName: str, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
3775
+
3776
+ def tag_unbind(self, tagName: str, sequence: str, funcid: str | None = None) -> None: ...
3777
+ # allowing any string for cget instead of just Literals because there's no other way to look up tag options
3778
+ def tag_cget(self, tagName: str, option: str): ...
3779
+
3780
+ @overload
3781
+ def tag_configure(
3782
+ self,
3783
+ tagName: str,
3784
+ cnf: dict[str, Any] | None = None,
3785
+ *,
3786
+ background: str = ...,
3787
+ bgstipple: str = ...,
3788
+ borderwidth: float | str = ...,
3789
+ border: float | str = ..., # alias for borderwidth
3790
+ elide: bool = ...,
3791
+ fgstipple: str = ...,
3792
+ font: _FontDescription = ...,
3793
+ foreground: str = ...,
3794
+ justify: Literal["left", "right", "center"] = ...,
3795
+ lmargin1: float | str = ...,
3796
+ lmargin2: float | str = ...,
3797
+ lmargincolor: str = ...,
3798
+ offset: float | str = ...,
3799
+ overstrike: bool = ...,
3800
+ overstrikefg: str = ...,
3801
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3802
+ rmargin: float | str = ...,
3803
+ rmargincolor: str = ...,
3804
+ selectbackground: str = ...,
3805
+ selectforeground: str = ...,
3806
+ spacing1: float | str = ...,
3807
+ spacing2: float | str = ...,
3808
+ spacing3: float | str = ...,
3809
+ tabs: Any = ..., # the exact type is kind of complicated, see manual page
3810
+ tabstyle: Literal["tabular", "wordprocessor"] = ...,
3811
+ underline: bool = ...,
3812
+ underlinefg: str = ...,
3813
+ wrap: Literal["none", "char", "word"] = ..., # be careful with "none" vs None
3814
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3815
+ @overload
3816
+ def tag_configure(self, tagName: str, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3817
+
3818
+ tag_config = tag_configure
3819
+ def tag_delete(self, first_tag_name: str, /, *tagNames: str) -> None: ... # error if no tag names given
3820
+ def tag_lower(self, tagName: str, belowThis: str | None = None) -> None: ...
3821
+ def tag_names(self, index: str | float | _tkinter.Tcl_Obj | Widget | None = None) -> tuple[str, ...]: ...
3822
+ def tag_nextrange(
3823
+ self,
3824
+ tagName: str,
3825
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3826
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3827
+ ) -> tuple[str, str] | tuple[()]: ...
3828
+ def tag_prevrange(
3829
+ self,
3830
+ tagName: str,
3831
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3832
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3833
+ ) -> tuple[str, str] | tuple[()]: ...
3834
+ def tag_raise(self, tagName: str, aboveThis: str | None = None) -> None: ...
3835
+ def tag_ranges(self, tagName: str) -> tuple[_tkinter.Tcl_Obj, ...]: ...
3836
+ # tag_remove and tag_delete are different
3837
+ def tag_remove(
3838
+ self,
3839
+ tagName: str,
3840
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3841
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3842
+ ) -> None: ...
3843
+
3844
+ @overload
3845
+ def window_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["padx", "pady"]) -> int: ...
3846
+ @overload
3847
+ def window_cget(
3848
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["stretch"]
3849
+ ) -> bool: ... # actually returns Literal[0, 1]
3850
+ @overload
3851
+ def window_cget(
3852
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["align"]
3853
+ ) -> Literal["baseline", "bottom", "center", "top"]: ...
3854
+ @overload # window is set to a widget, but read as the string name.
3855
+ def window_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["create", "window"]) -> str: ...
3856
+ @overload
3857
+ def window_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: str) -> Any: ...
3858
+
3859
+ @overload
3860
+ def window_configure(
3861
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, cnf: str
3862
+ ) -> tuple[str, str, str, str, str | int]: ...
3863
+ @overload
3864
+ def window_configure(
3865
+ self,
3866
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3867
+ cnf: dict[str, Any] | None = None,
3868
+ *,
3869
+ align: Literal["baseline", "bottom", "center", "top"] = ...,
3870
+ create: str = ...,
3871
+ padx: float | str = ...,
3872
+ pady: float | str = ...,
3873
+ stretch: bool | Literal[0, 1] = ...,
3874
+ window: Misc | str = ...,
3875
+ ) -> dict[str, tuple[str, str, str, str, str | int]] | None: ...
3876
+
3877
+ window_config = window_configure
3878
+ def window_create(
3879
+ self,
3880
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3881
+ cnf: dict[str, Any] | None = {},
3882
+ *,
3883
+ align: Literal["baseline", "bottom", "center", "top"] = ...,
3884
+ create: str = ...,
3885
+ padx: float | str = ...,
3886
+ pady: float | str = ...,
3887
+ stretch: bool | Literal[0, 1] = ...,
3888
+ window: Misc | str = ...,
3889
+ ) -> None: ...
3890
+ def window_names(self) -> tuple[str, ...]: ...
3891
+ def yview_pickplace(self, *what): ... # deprecated
3892
+
3893
+ class _setit:
3894
+ def __init__(self, var, value, callback=None) -> None: ...
3895
+ def __call__(self, *args) -> None: ...
3896
+
3897
+ # manual page: tk_optionMenu
3898
+ class OptionMenu(Menubutton):
3899
+ menuname: Incomplete
3900
+ if sys.version_info >= (3, 14):
3901
+ def __init__(
3902
+ # differs from other widgets
3903
+ self,
3904
+ master: Misc | None,
3905
+ variable: StringVar,
3906
+ value: str,
3907
+ *values: str,
3908
+ command: Callable[[StringVar], object] | None = ...,
3909
+ name: str | None = None,
3910
+ ) -> None: ...
3911
+ else:
3912
+ def __init__(
3913
+ # differs from other widgets
3914
+ self,
3915
+ master: Misc | None,
3916
+ variable: StringVar,
3917
+ value: str,
3918
+ *values: str,
3919
+ command: Callable[[StringVar], object] | None = ...,
3920
+ ) -> None: ...
3921
+ # configure, config, cget are inherited from Menubutton
3922
+ # destroy and __getitem__ are overridden, signature does not change
3923
+
3924
+ # This matches tkinter's image classes (PhotoImage and BitmapImage)
3925
+ # and PIL's tkinter-compatible class (PIL.ImageTk.PhotoImage),
3926
+ # but not a plain PIL image that isn't tkinter compatible.
3927
+ # The reason is that PIL has width and height attributes, not methods.
3928
+ @type_check_only
3929
+ class _Image(Protocol):
3930
+ def width(self) -> int: ...
3931
+ def height(self) -> int: ...
3932
+
3933
+ @type_check_only
3934
+ class _BitmapImageLike(_Image): ...
3935
+
3936
+ @type_check_only
3937
+ class _PhotoImageLike(_Image): ...
3938
+
3939
+ class Image(_Image):
3940
+ name: Incomplete
3941
+ tk: _tkinter.TkappType
3942
+ def __init__(self, imgtype, name=None, cnf={}, master: Misc | _tkinter.TkappType | None = None, **kw) -> None: ...
3943
+ def __del__(self) -> None: ...
3944
+ def __setitem__(self, key, value) -> None: ...
3945
+ def __getitem__(self, key): ...
3946
+ configure: Incomplete
3947
+ config: Incomplete
3948
+ def type(self): ...
3949
+
3950
+ class PhotoImage(Image, _PhotoImageLike):
3951
+ # This should be kept in sync with PIL.ImageTK.PhotoImage.__init__()
3952
+ def __init__(
3953
+ self,
3954
+ name: str | None = None,
3955
+ cnf: dict[str, Any] = {},
3956
+ master: Misc | _tkinter.TkappType | None = None,
3957
+ *,
3958
+ data: str | bytes = ..., # not same as data argument of put()
3959
+ format: str = ...,
3960
+ file: StrOrBytesPath = ...,
3961
+ gamma: float = ...,
3962
+ height: int = ...,
3963
+ palette: int | str = ...,
3964
+ width: int = ...,
3965
+ ) -> None: ...
3966
+ def configure(
3967
+ self,
3968
+ *,
3969
+ data: str | bytes = ...,
3970
+ format: str = ...,
3971
+ file: StrOrBytesPath = ...,
3972
+ gamma: float = ...,
3973
+ height: int = ...,
3974
+ palette: int | str = ...,
3975
+ width: int = ...,
3976
+ ) -> None: ...
3977
+ config = configure
3978
+ def blank(self) -> None: ...
3979
+ def cget(self, option: str) -> str: ...
3980
+ def __getitem__(self, key: str) -> str: ... # always string: image['height'] can be '0'
3981
+ if sys.version_info >= (3, 13):
3982
+ def copy(
3983
+ self,
3984
+ *,
3985
+ from_coords: Iterable[int] | None = None,
3986
+ zoom: int | tuple[int, int] | list[int] | None = None,
3987
+ subsample: int | tuple[int, int] | list[int] | None = None,
3988
+ ) -> PhotoImage: ...
3989
+ def subsample(self, x: int, y: int | Literal[""] = "", *, from_coords: Iterable[int] | None = None) -> PhotoImage: ...
3990
+ def zoom(self, x: int, y: int | Literal[""] = "", *, from_coords: Iterable[int] | None = None) -> PhotoImage: ...
3991
+ def copy_replace(
3992
+ self,
3993
+ sourceImage: PhotoImage | str,
3994
+ *,
3995
+ from_coords: Iterable[int] | None = None,
3996
+ to: Iterable[int] | None = None,
3997
+ shrink: bool = False,
3998
+ zoom: int | tuple[int, int] | list[int] | None = None,
3999
+ subsample: int | tuple[int, int] | list[int] | None = None,
4000
+ # `None` defaults to overlay.
4001
+ compositingrule: Literal["overlay", "set"] | None = None,
4002
+ ) -> None: ...
4003
+ else:
4004
+ def copy(self) -> PhotoImage: ...
4005
+ def zoom(self, x: int, y: int | Literal[""] = "") -> PhotoImage: ...
4006
+ def subsample(self, x: int, y: int | Literal[""] = "") -> PhotoImage: ...
4007
+
4008
+ def get(self, x: int, y: int) -> tuple[int, int, int]: ...
4009
+ def put(
4010
+ self,
4011
+ data: (
4012
+ str
4013
+ | bytes
4014
+ | list[str]
4015
+ | list[list[str]]
4016
+ | list[tuple[str, ...]]
4017
+ | tuple[str, ...]
4018
+ | tuple[list[str], ...]
4019
+ | tuple[tuple[str, ...], ...]
4020
+ ),
4021
+ to: tuple[int, int] | tuple[int, int, int, int] | None = None,
4022
+ ) -> None: ...
4023
+ if sys.version_info >= (3, 13):
4024
+ def read(
4025
+ self,
4026
+ filename: StrOrBytesPath,
4027
+ format: str | None = None,
4028
+ *,
4029
+ from_coords: Iterable[int] | None = None,
4030
+ to: Iterable[int] | None = None,
4031
+ shrink: bool = False,
4032
+ ) -> None: ...
4033
+ def write(
4034
+ self,
4035
+ filename: StrOrBytesPath,
4036
+ format: str | None = None,
4037
+ from_coords: Iterable[int] | None = None,
4038
+ *,
4039
+ background: str | None = None,
4040
+ grayscale: bool = False,
4041
+ ) -> None: ...
4042
+
4043
+ @overload
4044
+ def data(
4045
+ self, format: str, *, from_coords: Iterable[int] | None = None, background: str | None = None, grayscale: bool = False
4046
+ ) -> bytes: ...
4047
+ @overload
4048
+ def data(
4049
+ self,
4050
+ format: None = None,
4051
+ *,
4052
+ from_coords: Iterable[int] | None = None,
4053
+ background: str | None = None,
4054
+ grayscale: bool = False,
4055
+ ) -> tuple[str, ...]: ...
4056
+
4057
+ else:
4058
+ def write(
4059
+ self, filename: StrOrBytesPath, format: str | None = None, from_coords: tuple[int, int] | None = None
4060
+ ) -> None: ...
4061
+
4062
+ def transparency_get(self, x: int, y: int) -> bool: ...
4063
+ def transparency_set(self, x: int, y: int, boolean: bool) -> None: ...
4064
+
4065
+ class BitmapImage(Image, _BitmapImageLike):
4066
+ # This should be kept in sync with PIL.ImageTK.BitmapImage.__init__()
4067
+ def __init__(
4068
+ self,
4069
+ name=None,
4070
+ cnf: dict[str, Any] = {},
4071
+ master: Misc | _tkinter.TkappType | None = None,
4072
+ *,
4073
+ background: str = ...,
4074
+ data: str | bytes = ...,
4075
+ file: StrOrBytesPath = ...,
4076
+ foreground: str = ...,
4077
+ maskdata: str = ...,
4078
+ maskfile: StrOrBytesPath = ...,
4079
+ ) -> None: ...
4080
+
4081
+ def image_names() -> tuple[str, ...]: ...
4082
+ def image_types() -> tuple[str, ...]: ...
4083
+
4084
+ class Spinbox(Widget, XView):
4085
+ def __init__(
4086
+ self,
4087
+ master: Misc | None = None,
4088
+ cnf: dict[str, Any] | None = {},
4089
+ *,
4090
+ activebackground: str = ...,
4091
+ background: str = ...,
4092
+ bd: float | str = ...,
4093
+ bg: str = ...,
4094
+ border: float | str = ...,
4095
+ borderwidth: float | str = ...,
4096
+ buttonbackground: str = ...,
4097
+ buttoncursor: _Cursor = "",
4098
+ buttondownrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4099
+ buttonuprelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4100
+ # percent substitutions don't seem to be supported, it's similar to Entry's validation stuff
4101
+ command: Callable[[], object] | str | list[str] | tuple[str, ...] = "",
4102
+ cursor: _Cursor = "xterm",
4103
+ disabledbackground: str = ...,
4104
+ disabledforeground: str = ...,
4105
+ exportselection: bool = True,
4106
+ fg: str = ...,
4107
+ font: _FontDescription = "TkTextFont",
4108
+ foreground: str = ...,
4109
+ format: str = "",
4110
+ from_: float = 0.0,
4111
+ highlightbackground: str = ...,
4112
+ highlightcolor: str = ...,
4113
+ highlightthickness: float | str = ...,
4114
+ increment: float = 1.0,
4115
+ insertbackground: str = ...,
4116
+ insertborderwidth: float | str = 0,
4117
+ insertofftime: int = 300,
4118
+ insertontime: int = 600,
4119
+ insertwidth: float | str = ...,
4120
+ invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
4121
+ invcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
4122
+ justify: Literal["left", "center", "right"] = "left",
4123
+ name: str = ...,
4124
+ readonlybackground: str = ...,
4125
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "sunken",
4126
+ repeatdelay: int = 400,
4127
+ repeatinterval: int = 100,
4128
+ selectbackground: str = ...,
4129
+ selectborderwidth: float | str = ...,
4130
+ selectforeground: str = ...,
4131
+ state: Literal["normal", "disabled", "readonly"] = "normal",
4132
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
4133
+ textvariable: Variable = ...,
4134
+ to: float = 0.0,
4135
+ validate: Literal["none", "focus", "focusin", "focusout", "key", "all"] = "none",
4136
+ validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
4137
+ vcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
4138
+ values: list[str] | tuple[str, ...] = ...,
4139
+ width: int = 20,
4140
+ wrap: bool = False,
4141
+ xscrollcommand: str | Callable[[float, float], object] = "",
4142
+ ) -> None: ...
4143
+
4144
+ @overload
4145
+ def configure(
4146
+ self,
4147
+ cnf: dict[str, Any] | None = None,
4148
+ *,
4149
+ activebackground: str = ...,
4150
+ background: str = ...,
4151
+ bd: float | str = ...,
4152
+ bg: str = ...,
4153
+ border: float | str = ...,
4154
+ borderwidth: float | str = ...,
4155
+ buttonbackground: str = ...,
4156
+ buttoncursor: _Cursor = ...,
4157
+ buttondownrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4158
+ buttonuprelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4159
+ command: Callable[[], object] | str | list[str] | tuple[str, ...] = ...,
4160
+ cursor: _Cursor = ...,
4161
+ disabledbackground: str = ...,
4162
+ disabledforeground: str = ...,
4163
+ exportselection: bool = ...,
4164
+ fg: str = ...,
4165
+ font: _FontDescription = ...,
4166
+ foreground: str = ...,
4167
+ format: str = ...,
4168
+ from_: float = ...,
4169
+ highlightbackground: str = ...,
4170
+ highlightcolor: str = ...,
4171
+ highlightthickness: float | str = ...,
4172
+ increment: float = ...,
4173
+ insertbackground: str = ...,
4174
+ insertborderwidth: float | str = ...,
4175
+ insertofftime: int = ...,
4176
+ insertontime: int = ...,
4177
+ insertwidth: float | str = ...,
4178
+ invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
4179
+ invcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
4180
+ justify: Literal["left", "center", "right"] = ...,
4181
+ readonlybackground: str = ...,
4182
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4183
+ repeatdelay: int = ...,
4184
+ repeatinterval: int = ...,
4185
+ selectbackground: str = ...,
4186
+ selectborderwidth: float | str = ...,
4187
+ selectforeground: str = ...,
4188
+ state: Literal["normal", "disabled", "readonly"] = ...,
4189
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
4190
+ textvariable: Variable = ...,
4191
+ to: float = ...,
4192
+ validate: Literal["none", "focus", "focusin", "focusout", "key", "all"] = ...,
4193
+ validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
4194
+ vcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
4195
+ values: list[str] | tuple[str, ...] = ...,
4196
+ width: int = ...,
4197
+ wrap: bool = ...,
4198
+ xscrollcommand: str | Callable[[float, float], object] = ...,
4199
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
4200
+ @overload
4201
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
4202
+
4203
+ config = configure
4204
+ def bbox(self, index) -> tuple[int, int, int, int] | None: ... # type: ignore[override]
4205
+ def delete(self, first, last=None) -> Literal[""]: ...
4206
+ def get(self) -> str: ...
4207
+ def icursor(self, index): ...
4208
+ def identify(self, x: int, y: int) -> Literal["", "buttondown", "buttonup", "entry"]: ...
4209
+ def index(self, index: str | int) -> int: ...
4210
+ def insert(self, index: str | int, s: str) -> Literal[""]: ...
4211
+ # spinbox.invoke("asdf") gives error mentioning .invoke("none"), but it's not documented
4212
+ def invoke(self, element: Literal["none", "buttonup", "buttondown"]) -> Literal[""]: ...
4213
+ def scan(self, *args): ...
4214
+ def scan_mark(self, x): ...
4215
+ def scan_dragto(self, x): ...
4216
+ def selection(self, *args) -> tuple[int, ...]: ...
4217
+ def selection_adjust(self, index): ...
4218
+ def selection_clear(self): ... # type: ignore[override]
4219
+ def selection_element(self, element=None): ...
4220
+ def selection_from(self, index: int) -> None: ...
4221
+ def selection_present(self) -> None: ...
4222
+ def selection_range(self, start: int, end: int) -> None: ...
4223
+ def selection_to(self, index: int) -> None: ...
4224
+
4225
+ class LabelFrame(Widget):
4226
+ def __init__(
4227
+ self,
4228
+ master: Misc | None = None,
4229
+ cnf: dict[str, Any] | None = {},
4230
+ *,
4231
+ background: str = ...,
4232
+ bd: float | str = 2,
4233
+ bg: str = ...,
4234
+ border: float | str = 2,
4235
+ borderwidth: float | str = 2,
4236
+ class_: str = "Labelframe", # can't be changed with configure()
4237
+ colormap: Literal["new", ""] | Misc = "", # can't be changed with configure()
4238
+ container: bool = False, # undocumented, can't be changed with configure()
4239
+ cursor: _Cursor = "",
4240
+ fg: str = ...,
4241
+ font: _FontDescription = "TkDefaultFont",
4242
+ foreground: str = ...,
4243
+ height: float | str = 0,
4244
+ highlightbackground: str = ...,
4245
+ highlightcolor: str = ...,
4246
+ highlightthickness: float | str = 0,
4247
+ # 'ne' and 'en' are valid labelanchors, but only 'ne' is a valid _Anchor.
4248
+ labelanchor: Literal["nw", "n", "ne", "en", "e", "es", "se", "s", "sw", "ws", "w", "wn"] = "nw",
4249
+ labelwidget: Misc = ...,
4250
+ name: str = ...,
4251
+ padx: float | str = 0,
4252
+ pady: float | str = 0,
4253
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "groove",
4254
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
4255
+ text: float | str = "",
4256
+ visual: str | tuple[str, int] = "", # can't be changed with configure()
4257
+ width: float | str = 0,
4258
+ ) -> None: ...
4259
+
4260
+ @overload
4261
+ def configure(
4262
+ self,
4263
+ cnf: dict[str, Any] | None = None,
4264
+ *,
4265
+ background: str = ...,
4266
+ bd: float | str = ...,
4267
+ bg: str = ...,
4268
+ border: float | str = ...,
4269
+ borderwidth: float | str = ...,
4270
+ cursor: _Cursor = ...,
4271
+ fg: str = ...,
4272
+ font: _FontDescription = ...,
4273
+ foreground: str = ...,
4274
+ height: float | str = ...,
4275
+ highlightbackground: str = ...,
4276
+ highlightcolor: str = ...,
4277
+ highlightthickness: float | str = ...,
4278
+ labelanchor: Literal["nw", "n", "ne", "en", "e", "es", "se", "s", "sw", "ws", "w", "wn"] = ...,
4279
+ labelwidget: Misc = ...,
4280
+ padx: float | str = ...,
4281
+ pady: float | str = ...,
4282
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4283
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
4284
+ text: float | str = ...,
4285
+ width: float | str = ...,
4286
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
4287
+ @overload
4288
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
4289
+
4290
+ config = configure
4291
+
4292
+ class PanedWindow(Widget):
4293
+ def __init__(
4294
+ self,
4295
+ master: Misc | None = None,
4296
+ cnf: dict[str, Any] | None = {},
4297
+ *,
4298
+ background: str = ...,
4299
+ bd: float | str = 1,
4300
+ bg: str = ...,
4301
+ border: float | str = 1,
4302
+ borderwidth: float | str = 1,
4303
+ cursor: _Cursor = "",
4304
+ handlepad: float | str = 8,
4305
+ handlesize: float | str = 8,
4306
+ height: float | str = "",
4307
+ name: str = ...,
4308
+ opaqueresize: bool = True,
4309
+ orient: Literal["horizontal", "vertical"] = "horizontal",
4310
+ proxybackground: str = "",
4311
+ proxyborderwidth: float | str = 2,
4312
+ proxyrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
4313
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
4314
+ sashcursor: _Cursor = "",
4315
+ sashpad: float | str = 0,
4316
+ sashrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
4317
+ sashwidth: float | str = 3,
4318
+ showhandle: bool = False,
4319
+ width: float | str = "",
4320
+ ) -> None: ...
4321
+
4322
+ @overload
4323
+ def configure(
4324
+ self,
4325
+ cnf: dict[str, Any] | None = None,
4326
+ *,
4327
+ background: str = ...,
4328
+ bd: float | str = ...,
4329
+ bg: str = ...,
4330
+ border: float | str = ...,
4331
+ borderwidth: float | str = ...,
4332
+ cursor: _Cursor = ...,
4333
+ handlepad: float | str = ...,
4334
+ handlesize: float | str = ...,
4335
+ height: float | str = ...,
4336
+ opaqueresize: bool = ...,
4337
+ orient: Literal["horizontal", "vertical"] = ...,
4338
+ proxybackground: str = ...,
4339
+ proxyborderwidth: float | str = ...,
4340
+ proxyrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4341
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4342
+ sashcursor: _Cursor = ...,
4343
+ sashpad: float | str = ...,
4344
+ sashrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4345
+ sashwidth: float | str = ...,
4346
+ showhandle: bool = ...,
4347
+ width: float | str = ...,
4348
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
4349
+ @overload
4350
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
4351
+
4352
+ config = configure
4353
+ def add(self, child: Widget, **kw) -> None: ...
4354
+ def remove(self, child) -> None: ...
4355
+ forget = remove # type: ignore[assignment]
4356
+ def identify(self, x: int, y: int): ...
4357
+ def proxy(self, *args) -> tuple[Incomplete, ...]: ...
4358
+ def proxy_coord(self) -> tuple[Incomplete, ...]: ...
4359
+ def proxy_forget(self) -> tuple[Incomplete, ...]: ...
4360
+ def proxy_place(self, x, y) -> tuple[Incomplete, ...]: ...
4361
+ def sash(self, *args) -> tuple[Incomplete, ...]: ...
4362
+ def sash_coord(self, index) -> tuple[Incomplete, ...]: ...
4363
+ def sash_mark(self, index) -> tuple[Incomplete, ...]: ...
4364
+ def sash_place(self, index, x, y) -> tuple[Incomplete, ...]: ...
4365
+ def panecget(self, child, option): ...
4366
+ def paneconfigure(self, tagOrId, cnf=None, **kw): ...
4367
+ paneconfig = paneconfigure
4368
+ def panes(self): ...
4369
+
4370
+ def _test() -> None: ...