com.googler.python 1.1.4 → 1.1.5

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 (2648) hide show
  1. package/package.json +1 -1
  2. package/python3.6.2/lib/libcrypto.so.1.0.0 +0 -0
  3. package/python3.6.2/lib/libformw.so.5 +0 -0
  4. package/python3.6.2/lib/libformw.so.5.9 +0 -0
  5. package/python3.6.2/lib/libhistory.so.6 +0 -0
  6. package/python3.6.2/lib/libhistory.so.6.3 +0 -0
  7. package/python3.6.2/lib/libmenuw.so.5 +0 -0
  8. package/python3.6.2/lib/libmenuw.so.5.9 +0 -0
  9. package/python3.6.2/lib/libncursesw.so.5 +0 -0
  10. package/python3.6.2/lib/libncursesw.so.5.9 +0 -0
  11. package/python3.6.2/lib/libpanelw.so.5 +0 -0
  12. package/python3.6.2/lib/libpanelw.so.5.9 +0 -0
  13. package/python3.6.2/lib/libpython3.6m.so.1.0 +0 -0
  14. package/python3.6.2/lib/libpython3.so +0 -0
  15. package/python3.6.2/lib/libreadline.so.6 +0 -0
  16. package/python3.6.2/lib/libreadline.so.6.3 +0 -0
  17. package/python3.6.2/lib/libssl.so.1.0.0 +0 -0
  18. package/python3.6.2/lib/libtinfow.so.5 +0 -0
  19. package/python3.6.2/lib/libtinfow.so.5.9 +0 -0
  20. package/python3.6.2/lib/python3.6/__future__.py +140 -0
  21. package/python3.6.2/lib/python3.6/__phello__.foo.py +1 -0
  22. package/python3.6.2/lib/python3.6/_bootlocale.py +34 -0
  23. package/python3.6.2/lib/python3.6/_collections_abc.py +1008 -0
  24. package/python3.6.2/lib/python3.6/_compat_pickle.py +251 -0
  25. package/python3.6.2/lib/python3.6/_compression.py +152 -0
  26. package/python3.6.2/lib/python3.6/_dummy_thread.py +163 -0
  27. package/python3.6.2/lib/python3.6/_markupbase.py +395 -0
  28. package/python3.6.2/lib/python3.6/_osx_support.py +502 -0
  29. package/python3.6.2/lib/python3.6/_pydecimal.py +6449 -0
  30. package/python3.6.2/lib/python3.6/_pyio.py +2531 -0
  31. package/python3.6.2/lib/python3.6/_sitebuiltins.py +103 -0
  32. package/python3.6.2/lib/python3.6/_strptime.py +576 -0
  33. package/python3.6.2/lib/python3.6/_threading_local.py +246 -0
  34. package/python3.6.2/lib/python3.6/_weakrefset.py +196 -0
  35. package/python3.6.2/lib/python3.6/abc.py +248 -0
  36. package/python3.6.2/lib/python3.6/aifc.py +943 -0
  37. package/python3.6.2/lib/python3.6/antigravity.py +17 -0
  38. package/python3.6.2/lib/python3.6/argparse.py +2389 -0
  39. package/python3.6.2/lib/python3.6/ast.py +322 -0
  40. package/python3.6.2/lib/python3.6/asynchat.py +307 -0
  41. package/python3.6.2/lib/python3.6/asyncio/__init__.py +50 -0
  42. package/python3.6.2/lib/python3.6/asyncio/base_events.py +1474 -0
  43. package/python3.6.2/lib/python3.6/asyncio/base_futures.py +71 -0
  44. package/python3.6.2/lib/python3.6/asyncio/base_subprocess.py +293 -0
  45. package/python3.6.2/lib/python3.6/asyncio/base_tasks.py +76 -0
  46. package/python3.6.2/lib/python3.6/asyncio/compat.py +18 -0
  47. package/python3.6.2/lib/python3.6/asyncio/constants.py +12 -0
  48. package/python3.6.2/lib/python3.6/asyncio/coroutines.py +346 -0
  49. package/python3.6.2/lib/python3.6/asyncio/events.py +715 -0
  50. package/python3.6.2/lib/python3.6/asyncio/futures.py +439 -0
  51. package/python3.6.2/lib/python3.6/asyncio/locks.py +485 -0
  52. package/python3.6.2/lib/python3.6/asyncio/log.py +7 -0
  53. package/python3.6.2/lib/python3.6/asyncio/proactor_events.py +551 -0
  54. package/python3.6.2/lib/python3.6/asyncio/protocols.py +134 -0
  55. package/python3.6.2/lib/python3.6/asyncio/queues.py +259 -0
  56. package/python3.6.2/lib/python3.6/asyncio/selector_events.py +1141 -0
  57. package/python3.6.2/lib/python3.6/asyncio/sslproto.py +697 -0
  58. package/python3.6.2/lib/python3.6/asyncio/streams.py +701 -0
  59. package/python3.6.2/lib/python3.6/asyncio/subprocess.py +226 -0
  60. package/python3.6.2/lib/python3.6/asyncio/tasks.py +717 -0
  61. package/python3.6.2/lib/python3.6/asyncio/test_utils.py +519 -0
  62. package/python3.6.2/lib/python3.6/asyncio/transports.py +306 -0
  63. package/python3.6.2/lib/python3.6/asyncio/unix_events.py +1074 -0
  64. package/python3.6.2/lib/python3.6/asyncio/windows_events.py +779 -0
  65. package/python3.6.2/lib/python3.6/asyncio/windows_utils.py +224 -0
  66. package/python3.6.2/lib/python3.6/asyncore.py +645 -0
  67. package/python3.6.2/lib/python3.6/base64.py +602 -0
  68. package/python3.6.2/lib/python3.6/bdb.py +673 -0
  69. package/python3.6.2/lib/python3.6/binhex.py +479 -0
  70. package/python3.6.2/lib/python3.6/bisect.py +92 -0
  71. package/python3.6.2/lib/python3.6/bz2.py +361 -0
  72. package/python3.6.2/lib/python3.6/cProfile.py +160 -0
  73. package/python3.6.2/lib/python3.6/calendar.py +713 -0
  74. package/python3.6.2/lib/python3.6/cgi.py +1077 -0
  75. package/python3.6.2/lib/python3.6/cgitb.py +319 -0
  76. package/python3.6.2/lib/python3.6/chunk.py +169 -0
  77. package/python3.6.2/lib/python3.6/cmd.py +401 -0
  78. package/python3.6.2/lib/python3.6/code.py +314 -0
  79. package/python3.6.2/lib/python3.6/codecs.py +1113 -0
  80. package/python3.6.2/lib/python3.6/codeop.py +168 -0
  81. package/python3.6.2/lib/python3.6/collections/__init__.py +1244 -0
  82. package/python3.6.2/lib/python3.6/collections/abc.py +2 -0
  83. package/python3.6.2/lib/python3.6/colorsys.py +164 -0
  84. package/python3.6.2/lib/python3.6/compileall.py +295 -0
  85. package/python3.6.2/lib/python3.6/concurrent/__init__.py +1 -0
  86. package/python3.6.2/lib/python3.6/concurrent/futures/__init__.py +18 -0
  87. package/python3.6.2/lib/python3.6/concurrent/futures/_base.py +612 -0
  88. package/python3.6.2/lib/python3.6/concurrent/futures/process.py +515 -0
  89. package/python3.6.2/lib/python3.6/concurrent/futures/thread.py +153 -0
  90. package/python3.6.2/lib/python3.6/configparser.py +1342 -0
  91. package/python3.6.2/lib/python3.6/contextlib.py +384 -0
  92. package/python3.6.2/lib/python3.6/copy.py +313 -0
  93. package/python3.6.2/lib/python3.6/copyreg.py +206 -0
  94. package/python3.6.2/lib/python3.6/crypt.py +61 -0
  95. package/python3.6.2/lib/python3.6/csv.py +449 -0
  96. package/python3.6.2/lib/python3.6/ctypes/__init__.py +538 -0
  97. package/python3.6.2/lib/python3.6/ctypes/_endian.py +61 -0
  98. package/python3.6.2/lib/python3.6/ctypes/macholib/__init__.py +9 -0
  99. package/python3.6.2/lib/python3.6/ctypes/macholib/dyld.py +159 -0
  100. package/python3.6.2/lib/python3.6/ctypes/macholib/dylib.py +63 -0
  101. package/python3.6.2/lib/python3.6/ctypes/macholib/framework.py +65 -0
  102. package/python3.6.2/lib/python3.6/ctypes/test/__init__.py +14 -0
  103. package/python3.6.2/lib/python3.6/ctypes/test/__main__.py +4 -0
  104. package/python3.6.2/lib/python3.6/ctypes/test/test_anon.py +73 -0
  105. package/python3.6.2/lib/python3.6/ctypes/test/test_array_in_pointer.py +64 -0
  106. package/python3.6.2/lib/python3.6/ctypes/test/test_arrays.py +185 -0
  107. package/python3.6.2/lib/python3.6/ctypes/test/test_as_parameter.py +226 -0
  108. package/python3.6.2/lib/python3.6/ctypes/test/test_bitfields.py +290 -0
  109. package/python3.6.2/lib/python3.6/ctypes/test/test_buffers.py +64 -0
  110. package/python3.6.2/lib/python3.6/ctypes/test/test_bytes.py +65 -0
  111. package/python3.6.2/lib/python3.6/ctypes/test/test_byteswap.py +315 -0
  112. package/python3.6.2/lib/python3.6/ctypes/test/test_callbacks.py +293 -0
  113. package/python3.6.2/lib/python3.6/ctypes/test/test_cast.py +86 -0
  114. package/python3.6.2/lib/python3.6/ctypes/test/test_cfuncs.py +212 -0
  115. package/python3.6.2/lib/python3.6/ctypes/test/test_checkretval.py +36 -0
  116. package/python3.6.2/lib/python3.6/ctypes/test/test_delattr.py +21 -0
  117. package/python3.6.2/lib/python3.6/ctypes/test/test_errno.py +79 -0
  118. package/python3.6.2/lib/python3.6/ctypes/test/test_find.py +116 -0
  119. package/python3.6.2/lib/python3.6/ctypes/test/test_frombuffer.py +141 -0
  120. package/python3.6.2/lib/python3.6/ctypes/test/test_funcptr.py +132 -0
  121. package/python3.6.2/lib/python3.6/ctypes/test/test_functions.py +402 -0
  122. package/python3.6.2/lib/python3.6/ctypes/test/test_incomplete.py +42 -0
  123. package/python3.6.2/lib/python3.6/ctypes/test/test_init.py +40 -0
  124. package/python3.6.2/lib/python3.6/ctypes/test/test_internals.py +100 -0
  125. package/python3.6.2/lib/python3.6/ctypes/test/test_keeprefs.py +153 -0
  126. package/python3.6.2/lib/python3.6/ctypes/test/test_libc.py +33 -0
  127. package/python3.6.2/lib/python3.6/ctypes/test/test_loading.py +116 -0
  128. package/python3.6.2/lib/python3.6/ctypes/test/test_macholib.py +63 -0
  129. package/python3.6.2/lib/python3.6/ctypes/test/test_memfunctions.py +79 -0
  130. package/python3.6.2/lib/python3.6/ctypes/test/test_numbers.py +290 -0
  131. package/python3.6.2/lib/python3.6/ctypes/test/test_objects.py +67 -0
  132. package/python3.6.2/lib/python3.6/ctypes/test/test_parameters.py +207 -0
  133. package/python3.6.2/lib/python3.6/ctypes/test/test_pep3118.py +233 -0
  134. package/python3.6.2/lib/python3.6/ctypes/test/test_pickling.py +81 -0
  135. package/python3.6.2/lib/python3.6/ctypes/test/test_pointers.py +223 -0
  136. package/python3.6.2/lib/python3.6/ctypes/test/test_prototypes.py +222 -0
  137. package/python3.6.2/lib/python3.6/ctypes/test/test_python_api.py +89 -0
  138. package/python3.6.2/lib/python3.6/ctypes/test/test_random_things.py +74 -0
  139. package/python3.6.2/lib/python3.6/ctypes/test/test_refcounts.py +101 -0
  140. package/python3.6.2/lib/python3.6/ctypes/test/test_repr.py +29 -0
  141. package/python3.6.2/lib/python3.6/ctypes/test/test_returnfuncptrs.py +66 -0
  142. package/python3.6.2/lib/python3.6/ctypes/test/test_simplesubclasses.py +55 -0
  143. package/python3.6.2/lib/python3.6/ctypes/test/test_sizes.py +33 -0
  144. package/python3.6.2/lib/python3.6/ctypes/test/test_slicing.py +167 -0
  145. package/python3.6.2/lib/python3.6/ctypes/test/test_stringptr.py +77 -0
  146. package/python3.6.2/lib/python3.6/ctypes/test/test_strings.py +225 -0
  147. package/python3.6.2/lib/python3.6/ctypes/test/test_struct_fields.py +74 -0
  148. package/python3.6.2/lib/python3.6/ctypes/test/test_structures.py +491 -0
  149. package/python3.6.2/lib/python3.6/ctypes/test/test_unaligned_structures.py +45 -0
  150. package/python3.6.2/lib/python3.6/ctypes/test/test_unicode.py +56 -0
  151. package/python3.6.2/lib/python3.6/ctypes/test/test_values.py +100 -0
  152. package/python3.6.2/lib/python3.6/ctypes/test/test_varsize_struct.py +50 -0
  153. package/python3.6.2/lib/python3.6/ctypes/test/test_win32.py +147 -0
  154. package/python3.6.2/lib/python3.6/ctypes/test/test_wintypes.py +41 -0
  155. package/python3.6.2/lib/python3.6/ctypes/util.py +337 -0
  156. package/python3.6.2/lib/python3.6/ctypes/wintypes.py +202 -0
  157. package/python3.6.2/lib/python3.6/curses/__init__.py +101 -0
  158. package/python3.6.2/lib/python3.6/curses/ascii.py +99 -0
  159. package/python3.6.2/lib/python3.6/curses/has_key.py +192 -0
  160. package/python3.6.2/lib/python3.6/curses/panel.py +6 -0
  161. package/python3.6.2/lib/python3.6/curses/textpad.py +201 -0
  162. package/python3.6.2/lib/python3.6/datetime.py +2280 -0
  163. package/python3.6.2/lib/python3.6/dbm/__init__.py +188 -0
  164. package/python3.6.2/lib/python3.6/dbm/dumb.py +324 -0
  165. package/python3.6.2/lib/python3.6/dbm/gnu.py +3 -0
  166. package/python3.6.2/lib/python3.6/dbm/ndbm.py +3 -0
  167. package/python3.6.2/lib/python3.6/decimal.py +11 -0
  168. package/python3.6.2/lib/python3.6/difflib.py +2093 -0
  169. package/python3.6.2/lib/python3.6/dis.py +490 -0
  170. package/python3.6.2/lib/python3.6/distutils/__init__.py +13 -0
  171. package/python3.6.2/lib/python3.6/distutils/_msvccompiler.py +574 -0
  172. package/python3.6.2/lib/python3.6/distutils/archive_util.py +248 -0
  173. package/python3.6.2/lib/python3.6/distutils/bcppcompiler.py +393 -0
  174. package/python3.6.2/lib/python3.6/distutils/ccompiler.py +1115 -0
  175. package/python3.6.2/lib/python3.6/distutils/cmd.py +434 -0
  176. package/python3.6.2/lib/python3.6/distutils/command/__init__.py +31 -0
  177. package/python3.6.2/lib/python3.6/distutils/command/bdist.py +143 -0
  178. package/python3.6.2/lib/python3.6/distutils/command/bdist_dumb.py +123 -0
  179. package/python3.6.2/lib/python3.6/distutils/command/bdist_msi.py +741 -0
  180. package/python3.6.2/lib/python3.6/distutils/command/bdist_rpm.py +582 -0
  181. package/python3.6.2/lib/python3.6/distutils/command/bdist_wininst.py +365 -0
  182. package/python3.6.2/lib/python3.6/distutils/command/build.py +157 -0
  183. package/python3.6.2/lib/python3.6/distutils/command/build_clib.py +209 -0
  184. package/python3.6.2/lib/python3.6/distutils/command/build_ext.py +755 -0
  185. package/python3.6.2/lib/python3.6/distutils/command/build_py.py +416 -0
  186. package/python3.6.2/lib/python3.6/distutils/command/build_scripts.py +160 -0
  187. package/python3.6.2/lib/python3.6/distutils/command/check.py +145 -0
  188. package/python3.6.2/lib/python3.6/distutils/command/clean.py +76 -0
  189. package/python3.6.2/lib/python3.6/distutils/command/config.py +347 -0
  190. package/python3.6.2/lib/python3.6/distutils/command/install.py +656 -0
  191. package/python3.6.2/lib/python3.6/distutils/command/install_data.py +79 -0
  192. package/python3.6.2/lib/python3.6/distutils/command/install_egg_info.py +77 -0
  193. package/python3.6.2/lib/python3.6/distutils/command/install_headers.py +47 -0
  194. package/python3.6.2/lib/python3.6/distutils/command/install_lib.py +217 -0
  195. package/python3.6.2/lib/python3.6/distutils/command/install_scripts.py +60 -0
  196. package/python3.6.2/lib/python3.6/distutils/command/register.py +304 -0
  197. package/python3.6.2/lib/python3.6/distutils/command/sdist.py +456 -0
  198. package/python3.6.2/lib/python3.6/distutils/command/upload.py +201 -0
  199. package/python3.6.2/lib/python3.6/distutils/command/wininst-10.0-amd64.exe +0 -0
  200. package/python3.6.2/lib/python3.6/distutils/command/wininst-10.0.exe +0 -0
  201. package/python3.6.2/lib/python3.6/distutils/command/wininst-14.0-amd64.exe +0 -0
  202. package/python3.6.2/lib/python3.6/distutils/command/wininst-14.0.exe +0 -0
  203. package/python3.6.2/lib/python3.6/distutils/command/wininst-6.0.exe +0 -0
  204. package/python3.6.2/lib/python3.6/distutils/command/wininst-7.1.exe +0 -0
  205. package/python3.6.2/lib/python3.6/distutils/command/wininst-8.0.exe +0 -0
  206. package/python3.6.2/lib/python3.6/distutils/command/wininst-9.0-amd64.exe +0 -0
  207. package/python3.6.2/lib/python3.6/distutils/command/wininst-9.0.exe +0 -0
  208. package/python3.6.2/lib/python3.6/distutils/config.py +131 -0
  209. package/python3.6.2/lib/python3.6/distutils/core.py +234 -0
  210. package/python3.6.2/lib/python3.6/distutils/cygwinccompiler.py +405 -0
  211. package/python3.6.2/lib/python3.6/distutils/debug.py +5 -0
  212. package/python3.6.2/lib/python3.6/distutils/dep_util.py +92 -0
  213. package/python3.6.2/lib/python3.6/distutils/dir_util.py +210 -0
  214. package/python3.6.2/lib/python3.6/distutils/dist.py +1236 -0
  215. package/python3.6.2/lib/python3.6/distutils/errors.py +97 -0
  216. package/python3.6.2/lib/python3.6/distutils/extension.py +240 -0
  217. package/python3.6.2/lib/python3.6/distutils/fancy_getopt.py +457 -0
  218. package/python3.6.2/lib/python3.6/distutils/file_util.py +238 -0
  219. package/python3.6.2/lib/python3.6/distutils/filelist.py +327 -0
  220. package/python3.6.2/lib/python3.6/distutils/log.py +75 -0
  221. package/python3.6.2/lib/python3.6/distutils/msvc9compiler.py +791 -0
  222. package/python3.6.2/lib/python3.6/distutils/msvccompiler.py +643 -0
  223. package/python3.6.2/lib/python3.6/distutils/spawn.py +192 -0
  224. package/python3.6.2/lib/python3.6/distutils/sysconfig.py +532 -0
  225. package/python3.6.2/lib/python3.6/distutils/tests/Setup.sample +67 -0
  226. package/python3.6.2/lib/python3.6/distutils/tests/__init__.py +36 -0
  227. package/python3.6.2/lib/python3.6/distutils/tests/support.py +210 -0
  228. package/python3.6.2/lib/python3.6/distutils/tests/test_archive_util.py +395 -0
  229. package/python3.6.2/lib/python3.6/distutils/tests/test_bdist.py +50 -0
  230. package/python3.6.2/lib/python3.6/distutils/tests/test_bdist_dumb.py +97 -0
  231. package/python3.6.2/lib/python3.6/distutils/tests/test_bdist_msi.py +25 -0
  232. package/python3.6.2/lib/python3.6/distutils/tests/test_bdist_rpm.py +135 -0
  233. package/python3.6.2/lib/python3.6/distutils/tests/test_bdist_wininst.py +31 -0
  234. package/python3.6.2/lib/python3.6/distutils/tests/test_build.py +56 -0
  235. package/python3.6.2/lib/python3.6/distutils/tests/test_build_clib.py +135 -0
  236. package/python3.6.2/lib/python3.6/distutils/tests/test_build_ext.py +521 -0
  237. package/python3.6.2/lib/python3.6/distutils/tests/test_build_py.py +179 -0
  238. package/python3.6.2/lib/python3.6/distutils/tests/test_build_scripts.py +112 -0
  239. package/python3.6.2/lib/python3.6/distutils/tests/test_check.py +149 -0
  240. package/python3.6.2/lib/python3.6/distutils/tests/test_clean.py +49 -0
  241. package/python3.6.2/lib/python3.6/distutils/tests/test_cmd.py +126 -0
  242. package/python3.6.2/lib/python3.6/distutils/tests/test_config.py +140 -0
  243. package/python3.6.2/lib/python3.6/distutils/tests/test_config_cmd.py +92 -0
  244. package/python3.6.2/lib/python3.6/distutils/tests/test_core.py +140 -0
  245. package/python3.6.2/lib/python3.6/distutils/tests/test_cygwinccompiler.py +154 -0
  246. package/python3.6.2/lib/python3.6/distutils/tests/test_dep_util.py +80 -0
  247. package/python3.6.2/lib/python3.6/distutils/tests/test_dir_util.py +139 -0
  248. package/python3.6.2/lib/python3.6/distutils/tests/test_dist.py +456 -0
  249. package/python3.6.2/lib/python3.6/distutils/tests/test_extension.py +69 -0
  250. package/python3.6.2/lib/python3.6/distutils/tests/test_file_util.py +114 -0
  251. package/python3.6.2/lib/python3.6/distutils/tests/test_filelist.py +340 -0
  252. package/python3.6.2/lib/python3.6/distutils/tests/test_install.py +248 -0
  253. package/python3.6.2/lib/python3.6/distutils/tests/test_install_data.py +75 -0
  254. package/python3.6.2/lib/python3.6/distutils/tests/test_install_headers.py +39 -0
  255. package/python3.6.2/lib/python3.6/distutils/tests/test_install_lib.py +115 -0
  256. package/python3.6.2/lib/python3.6/distutils/tests/test_install_scripts.py +82 -0
  257. package/python3.6.2/lib/python3.6/distutils/tests/test_log.py +38 -0
  258. package/python3.6.2/lib/python3.6/distutils/tests/test_msvc9compiler.py +184 -0
  259. package/python3.6.2/lib/python3.6/distutils/tests/test_msvccompiler.py +132 -0
  260. package/python3.6.2/lib/python3.6/distutils/tests/test_register.py +323 -0
  261. package/python3.6.2/lib/python3.6/distutils/tests/test_sdist.py +484 -0
  262. package/python3.6.2/lib/python3.6/distutils/tests/test_spawn.py +58 -0
  263. package/python3.6.2/lib/python3.6/distutils/tests/test_sysconfig.py +198 -0
  264. package/python3.6.2/lib/python3.6/distutils/tests/test_text_file.py +107 -0
  265. package/python3.6.2/lib/python3.6/distutils/tests/test_unixccompiler.py +149 -0
  266. package/python3.6.2/lib/python3.6/distutils/tests/test_upload.py +181 -0
  267. package/python3.6.2/lib/python3.6/distutils/tests/test_util.py +300 -0
  268. package/python3.6.2/lib/python3.6/distutils/tests/test_version.py +71 -0
  269. package/python3.6.2/lib/python3.6/distutils/tests/test_versionpredicate.py +13 -0
  270. package/python3.6.2/lib/python3.6/distutils/text_file.py +286 -0
  271. package/python3.6.2/lib/python3.6/distutils/unixccompiler.py +322 -0
  272. package/python3.6.2/lib/python3.6/distutils/util.py +557 -0
  273. package/python3.6.2/lib/python3.6/distutils/version.py +343 -0
  274. package/python3.6.2/lib/python3.6/distutils/versionpredicate.py +166 -0
  275. package/python3.6.2/lib/python3.6/doctest.py +2787 -0
  276. package/python3.6.2/lib/python3.6/dummy_threading.py +78 -0
  277. package/python3.6.2/lib/python3.6/email/__init__.py +62 -0
  278. package/python3.6.2/lib/python3.6/email/_encoded_words.py +221 -0
  279. package/python3.6.2/lib/python3.6/email/_header_value_parser.py +2811 -0
  280. package/python3.6.2/lib/python3.6/email/_parseaddr.py +540 -0
  281. package/python3.6.2/lib/python3.6/email/_policybase.py +374 -0
  282. package/python3.6.2/lib/python3.6/email/base64mime.py +119 -0
  283. package/python3.6.2/lib/python3.6/email/charset.py +406 -0
  284. package/python3.6.2/lib/python3.6/email/contentmanager.py +250 -0
  285. package/python3.6.2/lib/python3.6/email/encoders.py +69 -0
  286. package/python3.6.2/lib/python3.6/email/errors.py +107 -0
  287. package/python3.6.2/lib/python3.6/email/feedparser.py +536 -0
  288. package/python3.6.2/lib/python3.6/email/generator.py +508 -0
  289. package/python3.6.2/lib/python3.6/email/header.py +578 -0
  290. package/python3.6.2/lib/python3.6/email/headerregistry.py +589 -0
  291. package/python3.6.2/lib/python3.6/email/iterators.py +71 -0
  292. package/python3.6.2/lib/python3.6/email/message.py +1164 -0
  293. package/python3.6.2/lib/python3.6/email/mime/__init__.py +0 -0
  294. package/python3.6.2/lib/python3.6/email/mime/application.py +37 -0
  295. package/python3.6.2/lib/python3.6/email/mime/audio.py +74 -0
  296. package/python3.6.2/lib/python3.6/email/mime/base.py +30 -0
  297. package/python3.6.2/lib/python3.6/email/mime/image.py +47 -0
  298. package/python3.6.2/lib/python3.6/email/mime/message.py +34 -0
  299. package/python3.6.2/lib/python3.6/email/mime/multipart.py +48 -0
  300. package/python3.6.2/lib/python3.6/email/mime/nonmultipart.py +22 -0
  301. package/python3.6.2/lib/python3.6/email/mime/text.py +42 -0
  302. package/python3.6.2/lib/python3.6/email/parser.py +132 -0
  303. package/python3.6.2/lib/python3.6/email/policy.py +223 -0
  304. package/python3.6.2/lib/python3.6/email/quoprimime.py +299 -0
  305. package/python3.6.2/lib/python3.6/email/utils.py +388 -0
  306. package/python3.6.2/lib/python3.6/encodings/__init__.py +169 -0
  307. package/python3.6.2/lib/python3.6/encodings/aliases.py +550 -0
  308. package/python3.6.2/lib/python3.6/encodings/ascii.py +50 -0
  309. package/python3.6.2/lib/python3.6/encodings/base64_codec.py +55 -0
  310. package/python3.6.2/lib/python3.6/encodings/big5.py +39 -0
  311. package/python3.6.2/lib/python3.6/encodings/big5hkscs.py +39 -0
  312. package/python3.6.2/lib/python3.6/encodings/bz2_codec.py +78 -0
  313. package/python3.6.2/lib/python3.6/encodings/charmap.py +69 -0
  314. package/python3.6.2/lib/python3.6/encodings/cp037.py +307 -0
  315. package/python3.6.2/lib/python3.6/encodings/cp1006.py +307 -0
  316. package/python3.6.2/lib/python3.6/encodings/cp1026.py +307 -0
  317. package/python3.6.2/lib/python3.6/encodings/cp1125.py +698 -0
  318. package/python3.6.2/lib/python3.6/encodings/cp1140.py +307 -0
  319. package/python3.6.2/lib/python3.6/encodings/cp1250.py +307 -0
  320. package/python3.6.2/lib/python3.6/encodings/cp1251.py +307 -0
  321. package/python3.6.2/lib/python3.6/encodings/cp1252.py +307 -0
  322. package/python3.6.2/lib/python3.6/encodings/cp1253.py +307 -0
  323. package/python3.6.2/lib/python3.6/encodings/cp1254.py +307 -0
  324. package/python3.6.2/lib/python3.6/encodings/cp1255.py +307 -0
  325. package/python3.6.2/lib/python3.6/encodings/cp1256.py +307 -0
  326. package/python3.6.2/lib/python3.6/encodings/cp1257.py +307 -0
  327. package/python3.6.2/lib/python3.6/encodings/cp1258.py +307 -0
  328. package/python3.6.2/lib/python3.6/encodings/cp273.py +307 -0
  329. package/python3.6.2/lib/python3.6/encodings/cp424.py +307 -0
  330. package/python3.6.2/lib/python3.6/encodings/cp437.py +698 -0
  331. package/python3.6.2/lib/python3.6/encodings/cp500.py +307 -0
  332. package/python3.6.2/lib/python3.6/encodings/cp65001.py +43 -0
  333. package/python3.6.2/lib/python3.6/encodings/cp720.py +309 -0
  334. package/python3.6.2/lib/python3.6/encodings/cp737.py +698 -0
  335. package/python3.6.2/lib/python3.6/encodings/cp775.py +697 -0
  336. package/python3.6.2/lib/python3.6/encodings/cp850.py +698 -0
  337. package/python3.6.2/lib/python3.6/encodings/cp852.py +698 -0
  338. package/python3.6.2/lib/python3.6/encodings/cp855.py +698 -0
  339. package/python3.6.2/lib/python3.6/encodings/cp856.py +307 -0
  340. package/python3.6.2/lib/python3.6/encodings/cp857.py +694 -0
  341. package/python3.6.2/lib/python3.6/encodings/cp858.py +698 -0
  342. package/python3.6.2/lib/python3.6/encodings/cp860.py +698 -0
  343. package/python3.6.2/lib/python3.6/encodings/cp861.py +698 -0
  344. package/python3.6.2/lib/python3.6/encodings/cp862.py +698 -0
  345. package/python3.6.2/lib/python3.6/encodings/cp863.py +698 -0
  346. package/python3.6.2/lib/python3.6/encodings/cp864.py +690 -0
  347. package/python3.6.2/lib/python3.6/encodings/cp865.py +698 -0
  348. package/python3.6.2/lib/python3.6/encodings/cp866.py +698 -0
  349. package/python3.6.2/lib/python3.6/encodings/cp869.py +689 -0
  350. package/python3.6.2/lib/python3.6/encodings/cp874.py +307 -0
  351. package/python3.6.2/lib/python3.6/encodings/cp875.py +307 -0
  352. package/python3.6.2/lib/python3.6/encodings/cp932.py +39 -0
  353. package/python3.6.2/lib/python3.6/encodings/cp949.py +39 -0
  354. package/python3.6.2/lib/python3.6/encodings/cp950.py +39 -0
  355. package/python3.6.2/lib/python3.6/encodings/euc_jis_2004.py +39 -0
  356. package/python3.6.2/lib/python3.6/encodings/euc_jisx0213.py +39 -0
  357. package/python3.6.2/lib/python3.6/encodings/euc_jp.py +39 -0
  358. package/python3.6.2/lib/python3.6/encodings/euc_kr.py +39 -0
  359. package/python3.6.2/lib/python3.6/encodings/gb18030.py +39 -0
  360. package/python3.6.2/lib/python3.6/encodings/gb2312.py +39 -0
  361. package/python3.6.2/lib/python3.6/encodings/gbk.py +39 -0
  362. package/python3.6.2/lib/python3.6/encodings/hex_codec.py +55 -0
  363. package/python3.6.2/lib/python3.6/encodings/hp_roman8.py +314 -0
  364. package/python3.6.2/lib/python3.6/encodings/hz.py +39 -0
  365. package/python3.6.2/lib/python3.6/encodings/idna.py +309 -0
  366. package/python3.6.2/lib/python3.6/encodings/iso2022_jp.py +39 -0
  367. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_1.py +39 -0
  368. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_2.py +39 -0
  369. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_2004.py +39 -0
  370. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_3.py +39 -0
  371. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_ext.py +39 -0
  372. package/python3.6.2/lib/python3.6/encodings/iso2022_kr.py +39 -0
  373. package/python3.6.2/lib/python3.6/encodings/iso8859_1.py +307 -0
  374. package/python3.6.2/lib/python3.6/encodings/iso8859_10.py +307 -0
  375. package/python3.6.2/lib/python3.6/encodings/iso8859_11.py +307 -0
  376. package/python3.6.2/lib/python3.6/encodings/iso8859_13.py +307 -0
  377. package/python3.6.2/lib/python3.6/encodings/iso8859_14.py +307 -0
  378. package/python3.6.2/lib/python3.6/encodings/iso8859_15.py +307 -0
  379. package/python3.6.2/lib/python3.6/encodings/iso8859_16.py +307 -0
  380. package/python3.6.2/lib/python3.6/encodings/iso8859_2.py +307 -0
  381. package/python3.6.2/lib/python3.6/encodings/iso8859_3.py +307 -0
  382. package/python3.6.2/lib/python3.6/encodings/iso8859_4.py +307 -0
  383. package/python3.6.2/lib/python3.6/encodings/iso8859_5.py +307 -0
  384. package/python3.6.2/lib/python3.6/encodings/iso8859_6.py +307 -0
  385. package/python3.6.2/lib/python3.6/encodings/iso8859_7.py +307 -0
  386. package/python3.6.2/lib/python3.6/encodings/iso8859_8.py +307 -0
  387. package/python3.6.2/lib/python3.6/encodings/iso8859_9.py +307 -0
  388. package/python3.6.2/lib/python3.6/encodings/johab.py +39 -0
  389. package/python3.6.2/lib/python3.6/encodings/koi8_r.py +307 -0
  390. package/python3.6.2/lib/python3.6/encodings/koi8_t.py +308 -0
  391. package/python3.6.2/lib/python3.6/encodings/koi8_u.py +307 -0
  392. package/python3.6.2/lib/python3.6/encodings/kz1048.py +307 -0
  393. package/python3.6.2/lib/python3.6/encodings/latin_1.py +50 -0
  394. package/python3.6.2/lib/python3.6/encodings/mac_arabic.py +698 -0
  395. package/python3.6.2/lib/python3.6/encodings/mac_centeuro.py +307 -0
  396. package/python3.6.2/lib/python3.6/encodings/mac_croatian.py +307 -0
  397. package/python3.6.2/lib/python3.6/encodings/mac_cyrillic.py +307 -0
  398. package/python3.6.2/lib/python3.6/encodings/mac_farsi.py +307 -0
  399. package/python3.6.2/lib/python3.6/encodings/mac_greek.py +307 -0
  400. package/python3.6.2/lib/python3.6/encodings/mac_iceland.py +307 -0
  401. package/python3.6.2/lib/python3.6/encodings/mac_latin2.py +312 -0
  402. package/python3.6.2/lib/python3.6/encodings/mac_roman.py +307 -0
  403. package/python3.6.2/lib/python3.6/encodings/mac_romanian.py +307 -0
  404. package/python3.6.2/lib/python3.6/encodings/mac_turkish.py +307 -0
  405. package/python3.6.2/lib/python3.6/encodings/mbcs.py +47 -0
  406. package/python3.6.2/lib/python3.6/encodings/oem.py +41 -0
  407. package/python3.6.2/lib/python3.6/encodings/palmos.py +308 -0
  408. package/python3.6.2/lib/python3.6/encodings/ptcp154.py +312 -0
  409. package/python3.6.2/lib/python3.6/encodings/punycode.py +237 -0
  410. package/python3.6.2/lib/python3.6/encodings/quopri_codec.py +56 -0
  411. package/python3.6.2/lib/python3.6/encodings/raw_unicode_escape.py +45 -0
  412. package/python3.6.2/lib/python3.6/encodings/rot_13.py +113 -0
  413. package/python3.6.2/lib/python3.6/encodings/shift_jis.py +39 -0
  414. package/python3.6.2/lib/python3.6/encodings/shift_jis_2004.py +39 -0
  415. package/python3.6.2/lib/python3.6/encodings/shift_jisx0213.py +39 -0
  416. package/python3.6.2/lib/python3.6/encodings/tis_620.py +307 -0
  417. package/python3.6.2/lib/python3.6/encodings/undefined.py +49 -0
  418. package/python3.6.2/lib/python3.6/encodings/unicode_escape.py +45 -0
  419. package/python3.6.2/lib/python3.6/encodings/unicode_internal.py +45 -0
  420. package/python3.6.2/lib/python3.6/encodings/utf_16.py +155 -0
  421. package/python3.6.2/lib/python3.6/encodings/utf_16_be.py +42 -0
  422. package/python3.6.2/lib/python3.6/encodings/utf_16_le.py +42 -0
  423. package/python3.6.2/lib/python3.6/encodings/utf_32.py +150 -0
  424. package/python3.6.2/lib/python3.6/encodings/utf_32_be.py +37 -0
  425. package/python3.6.2/lib/python3.6/encodings/utf_32_le.py +37 -0
  426. package/python3.6.2/lib/python3.6/encodings/utf_7.py +38 -0
  427. package/python3.6.2/lib/python3.6/encodings/utf_8.py +42 -0
  428. package/python3.6.2/lib/python3.6/encodings/utf_8_sig.py +130 -0
  429. package/python3.6.2/lib/python3.6/encodings/uu_codec.py +99 -0
  430. package/python3.6.2/lib/python3.6/encodings/zlib_codec.py +77 -0
  431. package/python3.6.2/lib/python3.6/ensurepip/__init__.py +205 -0
  432. package/python3.6.2/lib/python3.6/ensurepip/__main__.py +5 -0
  433. package/python3.6.2/lib/python3.6/ensurepip/_uninstall.py +31 -0
  434. package/python3.6.2/lib/python3.6/enum.py +875 -0
  435. package/python3.6.2/lib/python3.6/filecmp.py +305 -0
  436. package/python3.6.2/lib/python3.6/fileinput.py +425 -0
  437. package/python3.6.2/lib/python3.6/fnmatch.py +109 -0
  438. package/python3.6.2/lib/python3.6/formatter.py +452 -0
  439. package/python3.6.2/lib/python3.6/fractions.py +643 -0
  440. package/python3.6.2/lib/python3.6/ftplib.py +989 -0
  441. package/python3.6.2/lib/python3.6/functools.py +811 -0
  442. package/python3.6.2/lib/python3.6/genericpath.py +151 -0
  443. package/python3.6.2/lib/python3.6/getopt.py +215 -0
  444. package/python3.6.2/lib/python3.6/getpass.py +185 -0
  445. package/python3.6.2/lib/python3.6/gettext.py +637 -0
  446. package/python3.6.2/lib/python3.6/glob.py +171 -0
  447. package/python3.6.2/lib/python3.6/gzip.py +574 -0
  448. package/python3.6.2/lib/python3.6/hashlib.py +251 -0
  449. package/python3.6.2/lib/python3.6/heapq.py +607 -0
  450. package/python3.6.2/lib/python3.6/hmac.py +144 -0
  451. package/python3.6.2/lib/python3.6/html/__init__.py +132 -0
  452. package/python3.6.2/lib/python3.6/html/entities.py +2509 -0
  453. package/python3.6.2/lib/python3.6/html/parser.py +470 -0
  454. package/python3.6.2/lib/python3.6/http/__init__.py +134 -0
  455. package/python3.6.2/lib/python3.6/http/client.py +1478 -0
  456. package/python3.6.2/lib/python3.6/http/cookiejar.py +2098 -0
  457. package/python3.6.2/lib/python3.6/http/cookies.py +635 -0
  458. package/python3.6.2/lib/python3.6/http/server.py +1211 -0
  459. package/python3.6.2/lib/python3.6/idlelib/CREDITS.txt +37 -0
  460. package/python3.6.2/lib/python3.6/idlelib/ChangeLog +1591 -0
  461. package/python3.6.2/lib/python3.6/idlelib/HISTORY.txt +296 -0
  462. package/python3.6.2/lib/python3.6/idlelib/Icons/folder.gif +0 -0
  463. package/python3.6.2/lib/python3.6/idlelib/Icons/idle.icns +0 -0
  464. package/python3.6.2/lib/python3.6/idlelib/Icons/idle.ico +0 -0
  465. package/python3.6.2/lib/python3.6/idlelib/Icons/idle_16.gif +0 -0
  466. package/python3.6.2/lib/python3.6/idlelib/Icons/idle_16.png +0 -0
  467. package/python3.6.2/lib/python3.6/idlelib/Icons/idle_32.gif +0 -0
  468. package/python3.6.2/lib/python3.6/idlelib/Icons/idle_32.png +0 -0
  469. package/python3.6.2/lib/python3.6/idlelib/Icons/idle_48.gif +0 -0
  470. package/python3.6.2/lib/python3.6/idlelib/Icons/idle_48.png +0 -0
  471. package/python3.6.2/lib/python3.6/idlelib/Icons/minusnode.gif +0 -0
  472. package/python3.6.2/lib/python3.6/idlelib/Icons/openfolder.gif +0 -0
  473. package/python3.6.2/lib/python3.6/idlelib/Icons/plusnode.gif +0 -0
  474. package/python3.6.2/lib/python3.6/idlelib/Icons/python.gif +0 -0
  475. package/python3.6.2/lib/python3.6/idlelib/Icons/tk.gif +0 -0
  476. package/python3.6.2/lib/python3.6/idlelib/NEWS.txt +749 -0
  477. package/python3.6.2/lib/python3.6/idlelib/NEWS2x.txt +660 -0
  478. package/python3.6.2/lib/python3.6/idlelib/README.txt +251 -0
  479. package/python3.6.2/lib/python3.6/idlelib/TODO.txt +210 -0
  480. package/python3.6.2/lib/python3.6/idlelib/__init__.py +10 -0
  481. package/python3.6.2/lib/python3.6/idlelib/__main__.py +8 -0
  482. package/python3.6.2/lib/python3.6/idlelib/_pyclbr.py +402 -0
  483. package/python3.6.2/lib/python3.6/idlelib/autocomplete.py +232 -0
  484. package/python3.6.2/lib/python3.6/idlelib/autocomplete_w.py +460 -0
  485. package/python3.6.2/lib/python3.6/idlelib/autoexpand.py +96 -0
  486. package/python3.6.2/lib/python3.6/idlelib/browser.py +248 -0
  487. package/python3.6.2/lib/python3.6/idlelib/calltip_w.py +164 -0
  488. package/python3.6.2/lib/python3.6/idlelib/calltips.py +178 -0
  489. package/python3.6.2/lib/python3.6/idlelib/codecontext.py +185 -0
  490. package/python3.6.2/lib/python3.6/idlelib/colorizer.py +289 -0
  491. package/python3.6.2/lib/python3.6/idlelib/config-extensions.def +65 -0
  492. package/python3.6.2/lib/python3.6/idlelib/config-highlight.def +93 -0
  493. package/python3.6.2/lib/python3.6/idlelib/config-keys.def +304 -0
  494. package/python3.6.2/lib/python3.6/idlelib/config-main.def +88 -0
  495. package/python3.6.2/lib/python3.6/idlelib/config.py +929 -0
  496. package/python3.6.2/lib/python3.6/idlelib/config_key.py +298 -0
  497. package/python3.6.2/lib/python3.6/idlelib/configdialog.py +2254 -0
  498. package/python3.6.2/lib/python3.6/idlelib/debugger.py +544 -0
  499. package/python3.6.2/lib/python3.6/idlelib/debugger_r.py +388 -0
  500. package/python3.6.2/lib/python3.6/idlelib/debugobj.py +139 -0
  501. package/python3.6.2/lib/python3.6/idlelib/debugobj_r.py +36 -0
  502. package/python3.6.2/lib/python3.6/idlelib/delegator.py +33 -0
  503. package/python3.6.2/lib/python3.6/idlelib/dynoption.py +58 -0
  504. package/python3.6.2/lib/python3.6/idlelib/editor.py +1688 -0
  505. package/python3.6.2/lib/python3.6/idlelib/extend.txt +83 -0
  506. package/python3.6.2/lib/python3.6/idlelib/filelist.py +132 -0
  507. package/python3.6.2/lib/python3.6/idlelib/grep.py +200 -0
  508. package/python3.6.2/lib/python3.6/idlelib/help.html +791 -0
  509. package/python3.6.2/lib/python3.6/idlelib/help.py +275 -0
  510. package/python3.6.2/lib/python3.6/idlelib/help_about.py +205 -0
  511. package/python3.6.2/lib/python3.6/idlelib/history.py +106 -0
  512. package/python3.6.2/lib/python3.6/idlelib/hyperparser.py +312 -0
  513. package/python3.6.2/lib/python3.6/idlelib/idle.bat +4 -0
  514. package/python3.6.2/lib/python3.6/idlelib/idle.py +14 -0
  515. package/python3.6.2/lib/python3.6/idlelib/idle.pyw +17 -0
  516. package/python3.6.2/lib/python3.6/idlelib/idle_test/README.txt +226 -0
  517. package/python3.6.2/lib/python3.6/idlelib/idle_test/__init__.py +17 -0
  518. package/python3.6.2/lib/python3.6/idlelib/idle_test/htest.py +421 -0
  519. package/python3.6.2/lib/python3.6/idlelib/idle_test/mock_idle.py +60 -0
  520. package/python3.6.2/lib/python3.6/idlelib/idle_test/mock_tk.py +303 -0
  521. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_autocomplete.py +149 -0
  522. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_autoexpand.py +143 -0
  523. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_browser.py +253 -0
  524. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_calltips.py +203 -0
  525. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_colorizer.py +56 -0
  526. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_config.py +824 -0
  527. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_config_key.py +102 -0
  528. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_configdialog.py +1415 -0
  529. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_debugger.py +29 -0
  530. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_delegator.py +40 -0
  531. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_editmenu.py +74 -0
  532. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_editor.py +14 -0
  533. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_grep.py +80 -0
  534. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_help.py +34 -0
  535. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_help_about.py +177 -0
  536. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_history.py +168 -0
  537. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_hyperparser.py +274 -0
  538. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_iomenu.py +234 -0
  539. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_macosx.py +106 -0
  540. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_outwin.py +172 -0
  541. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_paragraph.py +376 -0
  542. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_parenmatch.py +112 -0
  543. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_pathbrowser.py +88 -0
  544. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_percolator.py +118 -0
  545. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_query.py +354 -0
  546. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_redirector.py +124 -0
  547. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_replace.py +293 -0
  548. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_rstrip.py +49 -0
  549. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_run.py +35 -0
  550. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_scrolledlist.py +29 -0
  551. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_search.py +82 -0
  552. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_searchbase.py +156 -0
  553. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_searchengine.py +329 -0
  554. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_text.py +236 -0
  555. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_textview.py +179 -0
  556. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_tree.py +35 -0
  557. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_undo.py +135 -0
  558. package/python3.6.2/lib/python3.6/idlelib/idle_test/test_warning.py +73 -0
  559. package/python3.6.2/lib/python3.6/idlelib/iomenu.py +574 -0
  560. package/python3.6.2/lib/python3.6/idlelib/macosx.py +252 -0
  561. package/python3.6.2/lib/python3.6/idlelib/mainmenu.py +108 -0
  562. package/python3.6.2/lib/python3.6/idlelib/multicall.py +445 -0
  563. package/python3.6.2/lib/python3.6/idlelib/outwin.py +188 -0
  564. package/python3.6.2/lib/python3.6/idlelib/paragraph.py +195 -0
  565. package/python3.6.2/lib/python3.6/idlelib/parenmatch.py +183 -0
  566. package/python3.6.2/lib/python3.6/idlelib/pathbrowser.py +111 -0
  567. package/python3.6.2/lib/python3.6/idlelib/percolator.py +104 -0
  568. package/python3.6.2/lib/python3.6/idlelib/pyparse.py +617 -0
  569. package/python3.6.2/lib/python3.6/idlelib/pyshell.py +1542 -0
  570. package/python3.6.2/lib/python3.6/idlelib/query.py +308 -0
  571. package/python3.6.2/lib/python3.6/idlelib/redirector.py +175 -0
  572. package/python3.6.2/lib/python3.6/idlelib/replace.py +243 -0
  573. package/python3.6.2/lib/python3.6/idlelib/rpc.py +627 -0
  574. package/python3.6.2/lib/python3.6/idlelib/rstrip.py +29 -0
  575. package/python3.6.2/lib/python3.6/idlelib/run.py +525 -0
  576. package/python3.6.2/lib/python3.6/idlelib/runscript.py +195 -0
  577. package/python3.6.2/lib/python3.6/idlelib/scrolledlist.py +147 -0
  578. package/python3.6.2/lib/python3.6/idlelib/search.py +102 -0
  579. package/python3.6.2/lib/python3.6/idlelib/searchbase.py +200 -0
  580. package/python3.6.2/lib/python3.6/idlelib/searchengine.py +236 -0
  581. package/python3.6.2/lib/python3.6/idlelib/stackviewer.py +152 -0
  582. package/python3.6.2/lib/python3.6/idlelib/statusbar.py +46 -0
  583. package/python3.6.2/lib/python3.6/idlelib/textview.py +136 -0
  584. package/python3.6.2/lib/python3.6/idlelib/tooltip.py +96 -0
  585. package/python3.6.2/lib/python3.6/idlelib/tree.py +467 -0
  586. package/python3.6.2/lib/python3.6/idlelib/undo.py +366 -0
  587. package/python3.6.2/lib/python3.6/idlelib/windows.py +92 -0
  588. package/python3.6.2/lib/python3.6/idlelib/zoomheight.py +48 -0
  589. package/python3.6.2/lib/python3.6/idlelib/zzdummy.py +42 -0
  590. package/python3.6.2/lib/python3.6/imaplib.py +1609 -0
  591. package/python3.6.2/lib/python3.6/imghdr.py +168 -0
  592. package/python3.6.2/lib/python3.6/imp.py +346 -0
  593. package/python3.6.2/lib/python3.6/importlib/__init__.py +173 -0
  594. package/python3.6.2/lib/python3.6/importlib/_bootstrap.py +1161 -0
  595. package/python3.6.2/lib/python3.6/importlib/_bootstrap_external.py +1443 -0
  596. package/python3.6.2/lib/python3.6/importlib/abc.py +329 -0
  597. package/python3.6.2/lib/python3.6/importlib/machinery.py +21 -0
  598. package/python3.6.2/lib/python3.6/importlib/util.py +288 -0
  599. package/python3.6.2/lib/python3.6/inspect.py +3098 -0
  600. package/python3.6.2/lib/python3.6/io.py +99 -0
  601. package/python3.6.2/lib/python3.6/ipaddress.py +2299 -0
  602. package/python3.6.2/lib/python3.6/json/__init__.py +367 -0
  603. package/python3.6.2/lib/python3.6/json/decoder.py +358 -0
  604. package/python3.6.2/lib/python3.6/json/encoder.py +441 -0
  605. package/python3.6.2/lib/python3.6/json/scanner.py +73 -0
  606. package/python3.6.2/lib/python3.6/json/tool.py +50 -0
  607. package/python3.6.2/lib/python3.6/keyword.py +94 -0
  608. package/python3.6.2/lib/python3.6/lib-dynload/_asyncio.cpython-36m-arm-linux-androideabi.so +0 -0
  609. package/python3.6.2/lib/python3.6/lib-dynload/_bisect.cpython-36m-arm-linux-androideabi.so +0 -0
  610. package/python3.6.2/lib/python3.6/lib-dynload/_blake2.cpython-36m-arm-linux-androideabi.so +0 -0
  611. package/python3.6.2/lib/python3.6/lib-dynload/_bz2.cpython-36m-arm-linux-androideabi.so +0 -0
  612. package/python3.6.2/lib/python3.6/lib-dynload/_codecs_cn.cpython-36m-arm-linux-androideabi.so +0 -0
  613. package/python3.6.2/lib/python3.6/lib-dynload/_codecs_hk.cpython-36m-arm-linux-androideabi.so +0 -0
  614. package/python3.6.2/lib/python3.6/lib-dynload/_codecs_iso2022.cpython-36m-arm-linux-androideabi.so +0 -0
  615. package/python3.6.2/lib/python3.6/lib-dynload/_codecs_jp.cpython-36m-arm-linux-androideabi.so +0 -0
  616. package/python3.6.2/lib/python3.6/lib-dynload/_codecs_kr.cpython-36m-arm-linux-androideabi.so +0 -0
  617. package/python3.6.2/lib/python3.6/lib-dynload/_codecs_tw.cpython-36m-arm-linux-androideabi.so +0 -0
  618. package/python3.6.2/lib/python3.6/lib-dynload/_crypt.cpython-36m-arm-linux-androideabi.so +0 -0
  619. package/python3.6.2/lib/python3.6/lib-dynload/_csv.cpython-36m-arm-linux-androideabi.so +0 -0
  620. package/python3.6.2/lib/python3.6/lib-dynload/_ctypes.cpython-36m-arm-linux-androideabi.so +0 -0
  621. package/python3.6.2/lib/python3.6/lib-dynload/_ctypes_test.cpython-36m-arm-linux-androideabi.so +0 -0
  622. package/python3.6.2/lib/python3.6/lib-dynload/_curses.cpython-36m-arm-linux-androideabi.so +0 -0
  623. package/python3.6.2/lib/python3.6/lib-dynload/_curses_panel.cpython-36m-arm-linux-androideabi.so +0 -0
  624. package/python3.6.2/lib/python3.6/lib-dynload/_datetime.cpython-36m-arm-linux-androideabi.so +0 -0
  625. package/python3.6.2/lib/python3.6/lib-dynload/_elementtree.cpython-36m-arm-linux-androideabi.so +0 -0
  626. package/python3.6.2/lib/python3.6/lib-dynload/_hashlib.cpython-36m-arm-linux-androideabi.so +0 -0
  627. package/python3.6.2/lib/python3.6/lib-dynload/_heapq.cpython-36m-arm-linux-androideabi.so +0 -0
  628. package/python3.6.2/lib/python3.6/lib-dynload/_json.cpython-36m-arm-linux-androideabi.so +0 -0
  629. package/python3.6.2/lib/python3.6/lib-dynload/_lsprof.cpython-36m-arm-linux-androideabi.so +0 -0
  630. package/python3.6.2/lib/python3.6/lib-dynload/_md5.cpython-36m-arm-linux-androideabi.so +0 -0
  631. package/python3.6.2/lib/python3.6/lib-dynload/_multibytecodec.cpython-36m-arm-linux-androideabi.so +0 -0
  632. package/python3.6.2/lib/python3.6/lib-dynload/_multiprocessing.cpython-36m-arm-linux-androideabi.so +0 -0
  633. package/python3.6.2/lib/python3.6/lib-dynload/_opcode.cpython-36m-arm-linux-androideabi.so +0 -0
  634. package/python3.6.2/lib/python3.6/lib-dynload/_pickle.cpython-36m-arm-linux-androideabi.so +0 -0
  635. package/python3.6.2/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-arm-linux-androideabi.so +0 -0
  636. package/python3.6.2/lib/python3.6/lib-dynload/_random.cpython-36m-arm-linux-androideabi.so +0 -0
  637. package/python3.6.2/lib/python3.6/lib-dynload/_sha1.cpython-36m-arm-linux-androideabi.so +0 -0
  638. package/python3.6.2/lib/python3.6/lib-dynload/_sha256.cpython-36m-arm-linux-androideabi.so +0 -0
  639. package/python3.6.2/lib/python3.6/lib-dynload/_sha3.cpython-36m-arm-linux-androideabi.so +0 -0
  640. package/python3.6.2/lib/python3.6/lib-dynload/_sha512.cpython-36m-arm-linux-androideabi.so +0 -0
  641. package/python3.6.2/lib/python3.6/lib-dynload/_socket.cpython-36m-arm-linux-androideabi.so +0 -0
  642. package/python3.6.2/lib/python3.6/lib-dynload/_sqlite3.cpython-36m-arm-linux-androideabi.so +0 -0
  643. package/python3.6.2/lib/python3.6/lib-dynload/_ssl.cpython-36m-arm-linux-androideabi.so +0 -0
  644. package/python3.6.2/lib/python3.6/lib-dynload/_struct.cpython-36m-arm-linux-androideabi.so +0 -0
  645. package/python3.6.2/lib/python3.6/lib-dynload/_sysconfigdata_m_linux_arm-linux-androideabi.py +743 -0
  646. package/python3.6.2/lib/python3.6/lib-dynload/_testbuffer.cpython-36m-arm-linux-androideabi.so +0 -0
  647. package/python3.6.2/lib/python3.6/lib-dynload/_testcapi.cpython-36m-arm-linux-androideabi.so +0 -0
  648. package/python3.6.2/lib/python3.6/lib-dynload/_testimportmultiple.cpython-36m-arm-linux-androideabi.so +0 -0
  649. package/python3.6.2/lib/python3.6/lib-dynload/_testmultiphase.cpython-36m-arm-linux-androideabi.so +0 -0
  650. package/python3.6.2/lib/python3.6/lib-dynload/array.cpython-36m-arm-linux-androideabi.so +0 -0
  651. package/python3.6.2/lib/python3.6/lib-dynload/audioop.cpython-36m-arm-linux-androideabi.so +0 -0
  652. package/python3.6.2/lib/python3.6/lib-dynload/binascii.cpython-36m-arm-linux-androideabi.so +0 -0
  653. package/python3.6.2/lib/python3.6/lib-dynload/cmath.cpython-36m-arm-linux-androideabi.so +0 -0
  654. package/python3.6.2/lib/python3.6/lib-dynload/fcntl.cpython-36m-arm-linux-androideabi.so +0 -0
  655. package/python3.6.2/lib/python3.6/lib-dynload/grp.cpython-36m-arm-linux-androideabi.so +0 -0
  656. package/python3.6.2/lib/python3.6/lib-dynload/math.cpython-36m-arm-linux-androideabi.so +0 -0
  657. package/python3.6.2/lib/python3.6/lib-dynload/mmap.cpython-36m-arm-linux-androideabi.so +0 -0
  658. package/python3.6.2/lib/python3.6/lib-dynload/ossaudiodev.cpython-36m-arm-linux-androideabi.so +0 -0
  659. package/python3.6.2/lib/python3.6/lib-dynload/parser.cpython-36m-arm-linux-androideabi.so +0 -0
  660. package/python3.6.2/lib/python3.6/lib-dynload/pyexpat.cpython-36m-arm-linux-androideabi.so +0 -0
  661. package/python3.6.2/lib/python3.6/lib-dynload/readline.cpython-36m-arm-linux-androideabi.so +0 -0
  662. package/python3.6.2/lib/python3.6/lib-dynload/resource.cpython-36m-arm-linux-androideabi.so +0 -0
  663. package/python3.6.2/lib/python3.6/lib-dynload/select.cpython-36m-arm-linux-androideabi.so +0 -0
  664. package/python3.6.2/lib/python3.6/lib-dynload/syslog.cpython-36m-arm-linux-androideabi.so +0 -0
  665. package/python3.6.2/lib/python3.6/lib-dynload/termios.cpython-36m-arm-linux-androideabi.so +0 -0
  666. package/python3.6.2/lib/python3.6/lib-dynload/unicodedata.cpython-36m-arm-linux-androideabi.so +0 -0
  667. package/python3.6.2/lib/python3.6/lib-dynload/xxlimited.cpython-36m-arm-linux-androideabi.so +0 -0
  668. package/python3.6.2/lib/python3.6/lib-dynload/zlib.cpython-36m-arm-linux-androideabi.so +0 -0
  669. package/python3.6.2/lib/python3.6/lib2to3/__init__.py +1 -0
  670. package/python3.6.2/lib/python3.6/lib2to3/__main__.py +4 -0
  671. package/python3.6.2/lib/python3.6/lib2to3/btm_matcher.py +168 -0
  672. package/python3.6.2/lib/python3.6/lib2to3/btm_utils.py +281 -0
  673. package/python3.6.2/lib/python3.6/lib2to3/fixer_base.py +186 -0
  674. package/python3.6.2/lib/python3.6/lib2to3/fixer_util.py +453 -0
  675. package/python3.6.2/lib/python3.6/lib2to3/fixes/__init__.py +1 -0
  676. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_apply.py +70 -0
  677. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_asserts.py +34 -0
  678. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_basestring.py +14 -0
  679. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_buffer.py +22 -0
  680. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_dict.py +106 -0
  681. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_except.py +93 -0
  682. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_exec.py +39 -0
  683. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_execfile.py +52 -0
  684. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_exitfunc.py +72 -0
  685. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_filter.py +90 -0
  686. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_funcattrs.py +21 -0
  687. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_future.py +22 -0
  688. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_getcwdu.py +19 -0
  689. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_has_key.py +109 -0
  690. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_idioms.py +152 -0
  691. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_import.py +99 -0
  692. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_imports.py +145 -0
  693. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_imports2.py +16 -0
  694. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_input.py +26 -0
  695. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_intern.py +41 -0
  696. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_isinstance.py +52 -0
  697. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_itertools.py +43 -0
  698. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_itertools_imports.py +57 -0
  699. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_long.py +19 -0
  700. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_map.py +110 -0
  701. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_metaclass.py +228 -0
  702. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_methodattrs.py +24 -0
  703. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_ne.py +23 -0
  704. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_next.py +103 -0
  705. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_nonzero.py +21 -0
  706. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_numliterals.py +28 -0
  707. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_operator.py +98 -0
  708. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_paren.py +44 -0
  709. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_print.py +87 -0
  710. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_raise.py +90 -0
  711. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_raw_input.py +17 -0
  712. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_reduce.py +35 -0
  713. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_reload.py +38 -0
  714. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_renames.py +70 -0
  715. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_repr.py +23 -0
  716. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_set_literal.py +53 -0
  717. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_standarderror.py +18 -0
  718. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_sys_exc.py +30 -0
  719. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_throw.py +56 -0
  720. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_tuple_params.py +175 -0
  721. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_types.py +61 -0
  722. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_unicode.py +42 -0
  723. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_urllib.py +196 -0
  724. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_ws_comma.py +39 -0
  725. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_xrange.py +73 -0
  726. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_xreadlines.py +25 -0
  727. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_zip.py +46 -0
  728. package/python3.6.2/lib/python3.6/lib2to3/main.py +268 -0
  729. package/python3.6.2/lib/python3.6/lib2to3/patcomp.py +205 -0
  730. package/python3.6.2/lib/python3.6/lib2to3/pgen2/__init__.py +4 -0
  731. package/python3.6.2/lib/python3.6/lib2to3/pgen2/conv.py +257 -0
  732. package/python3.6.2/lib/python3.6/lib2to3/pgen2/driver.py +160 -0
  733. package/python3.6.2/lib/python3.6/lib2to3/pgen2/grammar.py +207 -0
  734. package/python3.6.2/lib/python3.6/lib2to3/pgen2/literals.py +60 -0
  735. package/python3.6.2/lib/python3.6/lib2to3/pgen2/parse.py +201 -0
  736. package/python3.6.2/lib/python3.6/lib2to3/pgen2/pgen.py +386 -0
  737. package/python3.6.2/lib/python3.6/lib2to3/pgen2/token.py +85 -0
  738. package/python3.6.2/lib/python3.6/lib2to3/pgen2/tokenize.py +590 -0
  739. package/python3.6.2/lib/python3.6/lib2to3/pygram.py +40 -0
  740. package/python3.6.2/lib/python3.6/lib2to3/pytree.py +854 -0
  741. package/python3.6.2/lib/python3.6/lib2to3/refactor.py +744 -0
  742. package/python3.6.2/lib/python3.6/lib2to3/tests/__init__.py +9 -0
  743. package/python3.6.2/lib/python3.6/lib2to3/tests/__main__.py +4 -0
  744. package/python3.6.2/lib/python3.6/lib2to3/tests/data/README +6 -0
  745. package/python3.6.2/lib/python3.6/lib2to3/tests/data/bom.py +2 -0
  746. package/python3.6.2/lib/python3.6/lib2to3/tests/data/crlf.py +3 -0
  747. package/python3.6.2/lib/python3.6/lib2to3/tests/data/different_encoding.py +6 -0
  748. package/python3.6.2/lib/python3.6/lib2to3/tests/data/false_encoding.py +2 -0
  749. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/bad_order.py +5 -0
  750. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/__init__.py +0 -0
  751. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_explicit.py +6 -0
  752. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_first.py +6 -0
  753. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_last.py +7 -0
  754. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_parrot.py +13 -0
  755. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/myfixes/fix_preorder.py +6 -0
  756. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/no_fixer_cls.py +1 -0
  757. package/python3.6.2/lib/python3.6/lib2to3/tests/data/fixers/parrot_example.py +2 -0
  758. package/python3.6.2/lib/python3.6/lib2to3/tests/data/infinite_recursion.py +2669 -0
  759. package/python3.6.2/lib/python3.6/lib2to3/tests/data/py2_test_grammar.py +974 -0
  760. package/python3.6.2/lib/python3.6/lib2to3/tests/data/py3_test_grammar.py +945 -0
  761. package/python3.6.2/lib/python3.6/lib2to3/tests/pytree_idempotency.py +94 -0
  762. package/python3.6.2/lib/python3.6/lib2to3/tests/support.py +52 -0
  763. package/python3.6.2/lib/python3.6/lib2to3/tests/test_all_fixers.py +27 -0
  764. package/python3.6.2/lib/python3.6/lib2to3/tests/test_fixers.py +4640 -0
  765. package/python3.6.2/lib/python3.6/lib2to3/tests/test_main.py +139 -0
  766. package/python3.6.2/lib/python3.6/lib2to3/tests/test_parser.py +472 -0
  767. package/python3.6.2/lib/python3.6/lib2to3/tests/test_pytree.py +472 -0
  768. package/python3.6.2/lib/python3.6/lib2to3/tests/test_refactor.py +316 -0
  769. package/python3.6.2/lib/python3.6/lib2to3/tests/test_util.py +591 -0
  770. package/python3.6.2/lib/python3.6/linecache.py +177 -0
  771. package/python3.6.2/lib/python3.6/locale.py +1684 -0
  772. package/python3.6.2/lib/python3.6/logging/__init__.py +2019 -0
  773. package/python3.6.2/lib/python3.6/logging/config.py +933 -0
  774. package/python3.6.2/lib/python3.6/logging/handlers.py +1505 -0
  775. package/python3.6.2/lib/python3.6/lzma.py +347 -0
  776. package/python3.6.2/lib/python3.6/macpath.py +211 -0
  777. package/python3.6.2/lib/python3.6/macurl2path.py +77 -0
  778. package/python3.6.2/lib/python3.6/mailbox.py +2146 -0
  779. package/python3.6.2/lib/python3.6/mailcap.py +275 -0
  780. package/python3.6.2/lib/python3.6/mimetypes.py +598 -0
  781. package/python3.6.2/lib/python3.6/modulefinder.py +633 -0
  782. package/python3.6.2/lib/python3.6/msilib/__init__.py +483 -0
  783. package/python3.6.2/lib/python3.6/msilib/schema.py +1007 -0
  784. package/python3.6.2/lib/python3.6/msilib/sequence.py +126 -0
  785. package/python3.6.2/lib/python3.6/msilib/text.py +129 -0
  786. package/python3.6.2/lib/python3.6/multiprocessing/__init__.py +38 -0
  787. package/python3.6.2/lib/python3.6/multiprocessing/connection.py +953 -0
  788. package/python3.6.2/lib/python3.6/multiprocessing/context.py +357 -0
  789. package/python3.6.2/lib/python3.6/multiprocessing/dummy/__init__.py +119 -0
  790. package/python3.6.2/lib/python3.6/multiprocessing/dummy/connection.py +73 -0
  791. package/python3.6.2/lib/python3.6/multiprocessing/forkserver.py +266 -0
  792. package/python3.6.2/lib/python3.6/multiprocessing/heap.py +254 -0
  793. package/python3.6.2/lib/python3.6/multiprocessing/managers.py +1160 -0
  794. package/python3.6.2/lib/python3.6/multiprocessing/pool.py +803 -0
  795. package/python3.6.2/lib/python3.6/multiprocessing/popen_fork.py +86 -0
  796. package/python3.6.2/lib/python3.6/multiprocessing/popen_forkserver.py +68 -0
  797. package/python3.6.2/lib/python3.6/multiprocessing/popen_spawn_posix.py +68 -0
  798. package/python3.6.2/lib/python3.6/multiprocessing/popen_spawn_win32.py +98 -0
  799. package/python3.6.2/lib/python3.6/multiprocessing/process.py +336 -0
  800. package/python3.6.2/lib/python3.6/multiprocessing/queues.py +347 -0
  801. package/python3.6.2/lib/python3.6/multiprocessing/reduction.py +274 -0
  802. package/python3.6.2/lib/python3.6/multiprocessing/resource_sharer.py +158 -0
  803. package/python3.6.2/lib/python3.6/multiprocessing/semaphore_tracker.py +157 -0
  804. package/python3.6.2/lib/python3.6/multiprocessing/sharedctypes.py +239 -0
  805. package/python3.6.2/lib/python3.6/multiprocessing/spawn.py +286 -0
  806. package/python3.6.2/lib/python3.6/multiprocessing/synchronize.py +406 -0
  807. package/python3.6.2/lib/python3.6/multiprocessing/util.py +406 -0
  808. package/python3.6.2/lib/python3.6/netrc.py +142 -0
  809. package/python3.6.2/lib/python3.6/nntplib.py +1147 -0
  810. package/python3.6.2/lib/python3.6/ntpath.py +692 -0
  811. package/python3.6.2/lib/python3.6/nturl2path.py +68 -0
  812. package/python3.6.2/lib/python3.6/numbers.py +389 -0
  813. package/python3.6.2/lib/python3.6/opcode.py +215 -0
  814. package/python3.6.2/lib/python3.6/operator.py +464 -0
  815. package/python3.6.2/lib/python3.6/optparse.py +1681 -0
  816. package/python3.6.2/lib/python3.6/os.py +1069 -0
  817. package/python3.6.2/lib/python3.6/pathlib.py +1434 -0
  818. package/python3.6.2/lib/python3.6/pdb.py +1694 -0
  819. package/python3.6.2/lib/python3.6/pickle.py +1605 -0
  820. package/python3.6.2/lib/python3.6/pickletools.py +2840 -0
  821. package/python3.6.2/lib/python3.6/pipes.py +247 -0
  822. package/python3.6.2/lib/python3.6/pkgutil.py +634 -0
  823. package/python3.6.2/lib/python3.6/platform.py +1400 -0
  824. package/python3.6.2/lib/python3.6/plistlib.py +1043 -0
  825. package/python3.6.2/lib/python3.6/poplib.py +478 -0
  826. package/python3.6.2/lib/python3.6/posixpath.py +520 -0
  827. package/python3.6.2/lib/python3.6/pprint.py +597 -0
  828. package/python3.6.2/lib/python3.6/profile.py +589 -0
  829. package/python3.6.2/lib/python3.6/pstats.py +697 -0
  830. package/python3.6.2/lib/python3.6/pty.py +170 -0
  831. package/python3.6.2/lib/python3.6/py_compile.py +186 -0
  832. package/python3.6.2/lib/python3.6/pyclbr.py +352 -0
  833. package/python3.6.2/lib/python3.6/pydoc.py +2663 -0
  834. package/python3.6.2/lib/python3.6/pydoc_data/__init__.py +0 -0
  835. package/python3.6.2/lib/python3.6/pydoc_data/topics.py +12951 -0
  836. package/python3.6.2/lib/python3.6/queue.py +246 -0
  837. package/python3.6.2/lib/python3.6/quopri.py +242 -0
  838. package/python3.6.2/lib/python3.6/random.py +768 -0
  839. package/python3.6.2/lib/python3.6/re.py +381 -0
  840. package/python3.6.2/lib/python3.6/reprlib.py +164 -0
  841. package/python3.6.2/lib/python3.6/rlcompleter.py +205 -0
  842. package/python3.6.2/lib/python3.6/runpy.py +294 -0
  843. package/python3.6.2/lib/python3.6/sched.py +170 -0
  844. package/python3.6.2/lib/python3.6/secrets.py +73 -0
  845. package/python3.6.2/lib/python3.6/selectors.py +611 -0
  846. package/python3.6.2/lib/python3.6/shelve.py +243 -0
  847. package/python3.6.2/lib/python3.6/shlex.py +335 -0
  848. package/python3.6.2/lib/python3.6/shutil.py +1153 -0
  849. package/python3.6.2/lib/python3.6/signal.py +79 -0
  850. package/python3.6.2/lib/python3.6/site.py +598 -0
  851. package/python3.6.2/lib/python3.6/smtpd.py +965 -0
  852. package/python3.6.2/lib/python3.6/smtplib.py +1115 -0
  853. package/python3.6.2/lib/python3.6/sndhdr.py +257 -0
  854. package/python3.6.2/lib/python3.6/socket.py +750 -0
  855. package/python3.6.2/lib/python3.6/socketserver.py +793 -0
  856. package/python3.6.2/lib/python3.6/sqlite3/__init__.py +23 -0
  857. package/python3.6.2/lib/python3.6/sqlite3/dbapi2.py +89 -0
  858. package/python3.6.2/lib/python3.6/sqlite3/dump.py +70 -0
  859. package/python3.6.2/lib/python3.6/sqlite3/test/__init__.py +0 -0
  860. package/python3.6.2/lib/python3.6/sqlite3/test/dbapi.py +938 -0
  861. package/python3.6.2/lib/python3.6/sqlite3/test/dump.py +81 -0
  862. package/python3.6.2/lib/python3.6/sqlite3/test/factory.py +293 -0
  863. package/python3.6.2/lib/python3.6/sqlite3/test/hooks.py +264 -0
  864. package/python3.6.2/lib/python3.6/sqlite3/test/regression.py +410 -0
  865. package/python3.6.2/lib/python3.6/sqlite3/test/transactions.py +214 -0
  866. package/python3.6.2/lib/python3.6/sqlite3/test/types.py +421 -0
  867. package/python3.6.2/lib/python3.6/sqlite3/test/userfunctions.py +473 -0
  868. package/python3.6.2/lib/python3.6/sre_compile.py +580 -0
  869. package/python3.6.2/lib/python3.6/sre_constants.py +233 -0
  870. package/python3.6.2/lib/python3.6/sre_parse.py +973 -0
  871. package/python3.6.2/lib/python3.6/ssl.py +1228 -0
  872. package/python3.6.2/lib/python3.6/stat.py +178 -0
  873. package/python3.6.2/lib/python3.6/statistics.py +670 -0
  874. package/python3.6.2/lib/python3.6/string.py +309 -0
  875. package/python3.6.2/lib/python3.6/stringprep.py +272 -0
  876. package/python3.6.2/lib/python3.6/struct.py +15 -0
  877. package/python3.6.2/lib/python3.6/subprocess.py +1590 -0
  878. package/python3.6.2/lib/python3.6/sunau.py +525 -0
  879. package/python3.6.2/lib/python3.6/symbol.py +115 -0
  880. package/python3.6.2/lib/python3.6/symtable.py +238 -0
  881. package/python3.6.2/lib/python3.6/sysconfig.py +721 -0
  882. package/python3.6.2/lib/python3.6/tabnanny.py +332 -0
  883. package/python3.6.2/lib/python3.6/tarfile.py +2547 -0
  884. package/python3.6.2/lib/python3.6/telnetlib.py +675 -0
  885. package/python3.6.2/lib/python3.6/tempfile.py +811 -0
  886. package/python3.6.2/lib/python3.6/test/Sine-1000Hz-300ms.aif +0 -0
  887. package/python3.6.2/lib/python3.6/test/__init__.py +1 -0
  888. package/python3.6.2/lib/python3.6/test/__main__.py +2 -0
  889. package/python3.6.2/lib/python3.6/test/_test_multiprocessing.py +4458 -0
  890. package/python3.6.2/lib/python3.6/test/allsans.pem +37 -0
  891. package/python3.6.2/lib/python3.6/test/ann_module.py +53 -0
  892. package/python3.6.2/lib/python3.6/test/ann_module2.py +36 -0
  893. package/python3.6.2/lib/python3.6/test/ann_module3.py +18 -0
  894. package/python3.6.2/lib/python3.6/test/audiodata/pluck-alaw.aifc +0 -0
  895. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm16.aiff +0 -0
  896. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm16.au +0 -0
  897. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm16.wav +0 -0
  898. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm24.aiff +0 -0
  899. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm24.au +0 -0
  900. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm24.wav +0 -0
  901. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm32.aiff +0 -0
  902. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm32.au +0 -0
  903. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm32.wav +0 -0
  904. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm8.aiff +0 -0
  905. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm8.au +0 -0
  906. package/python3.6.2/lib/python3.6/test/audiodata/pluck-pcm8.wav +0 -0
  907. package/python3.6.2/lib/python3.6/test/audiodata/pluck-ulaw.aifc +0 -0
  908. package/python3.6.2/lib/python3.6/test/audiodata/pluck-ulaw.au +0 -0
  909. package/python3.6.2/lib/python3.6/test/audiotest.au +0 -0
  910. package/python3.6.2/lib/python3.6/test/audiotests.py +329 -0
  911. package/python3.6.2/lib/python3.6/test/autotest.py +5 -0
  912. package/python3.6.2/lib/python3.6/test/bad_coding.py +1 -0
  913. package/python3.6.2/lib/python3.6/test/bad_coding2.py +2 -0
  914. package/python3.6.2/lib/python3.6/test/badcert.pem +36 -0
  915. package/python3.6.2/lib/python3.6/test/badkey.pem +40 -0
  916. package/python3.6.2/lib/python3.6/test/badsyntax_3131.py +2 -0
  917. package/python3.6.2/lib/python3.6/test/badsyntax_future10.py +3 -0
  918. package/python3.6.2/lib/python3.6/test/badsyntax_future3.py +10 -0
  919. package/python3.6.2/lib/python3.6/test/badsyntax_future4.py +10 -0
  920. package/python3.6.2/lib/python3.6/test/badsyntax_future5.py +12 -0
  921. package/python3.6.2/lib/python3.6/test/badsyntax_future6.py +10 -0
  922. package/python3.6.2/lib/python3.6/test/badsyntax_future7.py +11 -0
  923. package/python3.6.2/lib/python3.6/test/badsyntax_future8.py +10 -0
  924. package/python3.6.2/lib/python3.6/test/badsyntax_future9.py +10 -0
  925. package/python3.6.2/lib/python3.6/test/badsyntax_pep3120.py +1 -0
  926. package/python3.6.2/lib/python3.6/test/bisect.py +167 -0
  927. package/python3.6.2/lib/python3.6/test/bytecode_helper.py +41 -0
  928. package/python3.6.2/lib/python3.6/test/capath/4e1295a3.0 +14 -0
  929. package/python3.6.2/lib/python3.6/test/capath/5ed36f99.0 +41 -0
  930. package/python3.6.2/lib/python3.6/test/capath/6e88d7b8.0 +14 -0
  931. package/python3.6.2/lib/python3.6/test/capath/99d0fa06.0 +41 -0
  932. package/python3.6.2/lib/python3.6/test/capath/b1930218.0 +21 -0
  933. package/python3.6.2/lib/python3.6/test/capath/ceff1710.0 +21 -0
  934. package/python3.6.2/lib/python3.6/test/cfgparser.1 +3 -0
  935. package/python3.6.2/lib/python3.6/test/cfgparser.2 +537 -0
  936. package/python3.6.2/lib/python3.6/test/cfgparser.3 +69 -0
  937. package/python3.6.2/lib/python3.6/test/cjkencodings/big5-utf8.txt +9 -0
  938. package/python3.6.2/lib/python3.6/test/cjkencodings/big5.txt +9 -0
  939. package/python3.6.2/lib/python3.6/test/cjkencodings/big5hkscs-utf8.txt +2 -0
  940. package/python3.6.2/lib/python3.6/test/cjkencodings/big5hkscs.txt +2 -0
  941. package/python3.6.2/lib/python3.6/test/cjkencodings/cp949-utf8.txt +9 -0
  942. package/python3.6.2/lib/python3.6/test/cjkencodings/cp949.txt +9 -0
  943. package/python3.6.2/lib/python3.6/test/cjkencodings/euc_jisx0213-utf8.txt +8 -0
  944. package/python3.6.2/lib/python3.6/test/cjkencodings/euc_jisx0213.txt +8 -0
  945. package/python3.6.2/lib/python3.6/test/cjkencodings/euc_jp-utf8.txt +7 -0
  946. package/python3.6.2/lib/python3.6/test/cjkencodings/euc_jp.txt +7 -0
  947. package/python3.6.2/lib/python3.6/test/cjkencodings/euc_kr-utf8.txt +7 -0
  948. package/python3.6.2/lib/python3.6/test/cjkencodings/euc_kr.txt +7 -0
  949. package/python3.6.2/lib/python3.6/test/cjkencodings/gb18030-utf8.txt +15 -0
  950. package/python3.6.2/lib/python3.6/test/cjkencodings/gb18030.txt +15 -0
  951. package/python3.6.2/lib/python3.6/test/cjkencodings/gb2312-utf8.txt +6 -0
  952. package/python3.6.2/lib/python3.6/test/cjkencodings/gb2312.txt +6 -0
  953. package/python3.6.2/lib/python3.6/test/cjkencodings/gbk-utf8.txt +14 -0
  954. package/python3.6.2/lib/python3.6/test/cjkencodings/gbk.txt +14 -0
  955. package/python3.6.2/lib/python3.6/test/cjkencodings/hz-utf8.txt +2 -0
  956. package/python3.6.2/lib/python3.6/test/cjkencodings/hz.txt +2 -0
  957. package/python3.6.2/lib/python3.6/test/cjkencodings/iso2022_jp-utf8.txt +7 -0
  958. package/python3.6.2/lib/python3.6/test/cjkencodings/iso2022_jp.txt +7 -0
  959. package/python3.6.2/lib/python3.6/test/cjkencodings/iso2022_kr-utf8.txt +7 -0
  960. package/python3.6.2/lib/python3.6/test/cjkencodings/iso2022_kr.txt +7 -0
  961. package/python3.6.2/lib/python3.6/test/cjkencodings/johab-utf8.txt +9 -0
  962. package/python3.6.2/lib/python3.6/test/cjkencodings/johab.txt +9 -0
  963. package/python3.6.2/lib/python3.6/test/cjkencodings/shift_jis-utf8.txt +7 -0
  964. package/python3.6.2/lib/python3.6/test/cjkencodings/shift_jis.txt +7 -0
  965. package/python3.6.2/lib/python3.6/test/cjkencodings/shift_jisx0213-utf8.txt +8 -0
  966. package/python3.6.2/lib/python3.6/test/cjkencodings/shift_jisx0213.txt +8 -0
  967. package/python3.6.2/lib/python3.6/test/cmath_testcases.txt +2511 -0
  968. package/python3.6.2/lib/python3.6/test/coding20731.py +4 -0
  969. package/python3.6.2/lib/python3.6/test/crashers/README +20 -0
  970. package/python3.6.2/lib/python3.6/test/crashers/bogus_code_obj.py +19 -0
  971. package/python3.6.2/lib/python3.6/test/crashers/gc_inspection.py +32 -0
  972. package/python3.6.2/lib/python3.6/test/crashers/infinite_loop_re.py +16 -0
  973. package/python3.6.2/lib/python3.6/test/crashers/mutation_inside_cyclegc.py +31 -0
  974. package/python3.6.2/lib/python3.6/test/crashers/recursive_call.py +15 -0
  975. package/python3.6.2/lib/python3.6/test/crashers/trace_at_recursion_limit.py +27 -0
  976. package/python3.6.2/lib/python3.6/test/crashers/underlying_dict.py +20 -0
  977. package/python3.6.2/lib/python3.6/test/curses_tests.py +46 -0
  978. package/python3.6.2/lib/python3.6/test/data/README +2 -0
  979. package/python3.6.2/lib/python3.6/test/datetimetester.py +4929 -0
  980. package/python3.6.2/lib/python3.6/test/decimaltestdata/abs.decTest +161 -0
  981. package/python3.6.2/lib/python3.6/test/decimaltestdata/add.decTest +2716 -0
  982. package/python3.6.2/lib/python3.6/test/decimaltestdata/and.decTest +338 -0
  983. package/python3.6.2/lib/python3.6/test/decimaltestdata/base.decTest +1411 -0
  984. package/python3.6.2/lib/python3.6/test/decimaltestdata/clamp.decTest +211 -0
  985. package/python3.6.2/lib/python3.6/test/decimaltestdata/class.decTest +131 -0
  986. package/python3.6.2/lib/python3.6/test/decimaltestdata/compare.decTest +758 -0
  987. package/python3.6.2/lib/python3.6/test/decimaltestdata/comparetotal.decTest +798 -0
  988. package/python3.6.2/lib/python3.6/test/decimaltestdata/comparetotmag.decTest +790 -0
  989. package/python3.6.2/lib/python3.6/test/decimaltestdata/copy.decTest +86 -0
  990. package/python3.6.2/lib/python3.6/test/decimaltestdata/copyabs.decTest +86 -0
  991. package/python3.6.2/lib/python3.6/test/decimaltestdata/copynegate.decTest +86 -0
  992. package/python3.6.2/lib/python3.6/test/decimaltestdata/copysign.decTest +177 -0
  993. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddAbs.decTest +126 -0
  994. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddAdd.decTest +1328 -0
  995. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddAnd.decTest +347 -0
  996. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddBase.decTest +1104 -0
  997. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCanonical.decTest +357 -0
  998. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddClass.decTest +76 -0
  999. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCompare.decTest +744 -0
  1000. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCompareSig.decTest +647 -0
  1001. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCompareTotal.decTest +706 -0
  1002. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCompareTotalMag.decTest +706 -0
  1003. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCopy.decTest +88 -0
  1004. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCopyAbs.decTest +88 -0
  1005. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCopyNegate.decTest +88 -0
  1006. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddCopySign.decTest +175 -0
  1007. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddDivide.decTest +863 -0
  1008. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddDivideInt.decTest +449 -0
  1009. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddEncode.decTest +495 -0
  1010. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddFMA.decTest +1698 -0
  1011. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddInvert.decTest +202 -0
  1012. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddLogB.decTest +159 -0
  1013. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMax.decTest +322 -0
  1014. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMaxMag.decTest +304 -0
  1015. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMin.decTest +309 -0
  1016. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMinMag.decTest +293 -0
  1017. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMinus.decTest +88 -0
  1018. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddMultiply.decTest +553 -0
  1019. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddNextMinus.decTest +126 -0
  1020. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddNextPlus.decTest +124 -0
  1021. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddNextToward.decTest +374 -0
  1022. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddOr.decTest +292 -0
  1023. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddPlus.decTest +88 -0
  1024. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddQuantize.decTest +833 -0
  1025. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddReduce.decTest +182 -0
  1026. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddRemainder.decTest +600 -0
  1027. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddRemainderNear.decTest +629 -0
  1028. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddRotate.decTest +262 -0
  1029. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddSameQuantum.decTest +389 -0
  1030. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddScaleB.decTest +243 -0
  1031. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddShift.decTest +262 -0
  1032. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddSubtract.decTest +629 -0
  1033. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddToIntegral.decTest +257 -0
  1034. package/python3.6.2/lib/python3.6/test/decimaltestdata/ddXor.decTest +337 -0
  1035. package/python3.6.2/lib/python3.6/test/decimaltestdata/decDouble.decTest +65 -0
  1036. package/python3.6.2/lib/python3.6/test/decimaltestdata/decQuad.decTest +65 -0
  1037. package/python3.6.2/lib/python3.6/test/decimaltestdata/decSingle.decTest +25 -0
  1038. package/python3.6.2/lib/python3.6/test/decimaltestdata/divide.decTest +854 -0
  1039. package/python3.6.2/lib/python3.6/test/decimaltestdata/divideint.decTest +486 -0
  1040. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqAbs.decTest +126 -0
  1041. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqAdd.decTest +1215 -0
  1042. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqAnd.decTest +420 -0
  1043. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqBase.decTest +1081 -0
  1044. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCanonical.decTest +372 -0
  1045. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqClass.decTest +77 -0
  1046. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCompare.decTest +753 -0
  1047. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCompareSig.decTest +647 -0
  1048. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCompareTotal.decTest +706 -0
  1049. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCompareTotalMag.decTest +706 -0
  1050. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCopy.decTest +88 -0
  1051. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCopyAbs.decTest +88 -0
  1052. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCopyNegate.decTest +88 -0
  1053. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqCopySign.decTest +175 -0
  1054. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqDivide.decTest +808 -0
  1055. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqDivideInt.decTest +453 -0
  1056. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqEncode.decTest +477 -0
  1057. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqFMA.decTest +1786 -0
  1058. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqInvert.decTest +245 -0
  1059. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqLogB.decTest +160 -0
  1060. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMax.decTest +322 -0
  1061. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMaxMag.decTest +304 -0
  1062. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMin.decTest +309 -0
  1063. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMinMag.decTest +293 -0
  1064. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMinus.decTest +88 -0
  1065. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqMultiply.decTest +589 -0
  1066. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqNextMinus.decTest +126 -0
  1067. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqNextPlus.decTest +124 -0
  1068. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqNextToward.decTest +375 -0
  1069. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqOr.decTest +401 -0
  1070. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqPlus.decTest +88 -0
  1071. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqQuantize.decTest +836 -0
  1072. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqReduce.decTest +183 -0
  1073. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqRemainder.decTest +597 -0
  1074. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqRemainderNear.decTest +631 -0
  1075. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqRotate.decTest +298 -0
  1076. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqSameQuantum.decTest +389 -0
  1077. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqScaleB.decTest +260 -0
  1078. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqShift.decTest +298 -0
  1079. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqSubtract.decTest +635 -0
  1080. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqToIntegral.decTest +257 -0
  1081. package/python3.6.2/lib/python3.6/test/decimaltestdata/dqXor.decTest +410 -0
  1082. package/python3.6.2/lib/python3.6/test/decimaltestdata/dsBase.decTest +1062 -0
  1083. package/python3.6.2/lib/python3.6/test/decimaltestdata/dsEncode.decTest +372 -0
  1084. package/python3.6.2/lib/python3.6/test/decimaltestdata/exp.decTest +674 -0
  1085. package/python3.6.2/lib/python3.6/test/decimaltestdata/extra.decTest +2830 -0
  1086. package/python3.6.2/lib/python3.6/test/decimaltestdata/fma.decTest +3426 -0
  1087. package/python3.6.2/lib/python3.6/test/decimaltestdata/inexact.decTest +215 -0
  1088. package/python3.6.2/lib/python3.6/test/decimaltestdata/invert.decTest +176 -0
  1089. package/python3.6.2/lib/python3.6/test/decimaltestdata/ln.decTest +611 -0
  1090. package/python3.6.2/lib/python3.6/test/decimaltestdata/log10.decTest +551 -0
  1091. package/python3.6.2/lib/python3.6/test/decimaltestdata/logb.decTest +188 -0
  1092. package/python3.6.2/lib/python3.6/test/decimaltestdata/max.decTest +424 -0
  1093. package/python3.6.2/lib/python3.6/test/decimaltestdata/maxmag.decTest +404 -0
  1094. package/python3.6.2/lib/python3.6/test/decimaltestdata/min.decTest +407 -0
  1095. package/python3.6.2/lib/python3.6/test/decimaltestdata/minmag.decTest +390 -0
  1096. package/python3.6.2/lib/python3.6/test/decimaltestdata/minus.decTest +182 -0
  1097. package/python3.6.2/lib/python3.6/test/decimaltestdata/multiply.decTest +731 -0
  1098. package/python3.6.2/lib/python3.6/test/decimaltestdata/nextminus.decTest +148 -0
  1099. package/python3.6.2/lib/python3.6/test/decimaltestdata/nextplus.decTest +150 -0
  1100. package/python3.6.2/lib/python3.6/test/decimaltestdata/nexttoward.decTest +426 -0
  1101. package/python3.6.2/lib/python3.6/test/decimaltestdata/or.decTest +334 -0
  1102. package/python3.6.2/lib/python3.6/test/decimaltestdata/plus.decTest +195 -0
  1103. package/python3.6.2/lib/python3.6/test/decimaltestdata/power.decTest +1624 -0
  1104. package/python3.6.2/lib/python3.6/test/decimaltestdata/powersqrt.decTest +2970 -0
  1105. package/python3.6.2/lib/python3.6/test/decimaltestdata/quantize.decTest +948 -0
  1106. package/python3.6.2/lib/python3.6/test/decimaltestdata/randomBound32.decTest +2443 -0
  1107. package/python3.6.2/lib/python3.6/test/decimaltestdata/randoms.decTest +4030 -0
  1108. package/python3.6.2/lib/python3.6/test/decimaltestdata/reduce.decTest +234 -0
  1109. package/python3.6.2/lib/python3.6/test/decimaltestdata/remainder.decTest +640 -0
  1110. package/python3.6.2/lib/python3.6/test/decimaltestdata/remainderNear.decTest +572 -0
  1111. package/python3.6.2/lib/python3.6/test/decimaltestdata/rescale.decTest +764 -0
  1112. package/python3.6.2/lib/python3.6/test/decimaltestdata/rotate.decTest +247 -0
  1113. package/python3.6.2/lib/python3.6/test/decimaltestdata/rounding.decTest +1303 -0
  1114. package/python3.6.2/lib/python3.6/test/decimaltestdata/samequantum.decTest +389 -0
  1115. package/python3.6.2/lib/python3.6/test/decimaltestdata/scaleb.decTest +209 -0
  1116. package/python3.6.2/lib/python3.6/test/decimaltestdata/shift.decTest +250 -0
  1117. package/python3.6.2/lib/python3.6/test/decimaltestdata/squareroot.decTest +3834 -0
  1118. package/python3.6.2/lib/python3.6/test/decimaltestdata/subtract.decTest +873 -0
  1119. package/python3.6.2/lib/python3.6/test/decimaltestdata/testall.decTest +87 -0
  1120. package/python3.6.2/lib/python3.6/test/decimaltestdata/tointegral.decTest +241 -0
  1121. package/python3.6.2/lib/python3.6/test/decimaltestdata/tointegralx.decTest +255 -0
  1122. package/python3.6.2/lib/python3.6/test/decimaltestdata/xor.decTest +335 -0
  1123. package/python3.6.2/lib/python3.6/test/dh1024.pem +7 -0
  1124. package/python3.6.2/lib/python3.6/test/dis_module.py +5 -0
  1125. package/python3.6.2/lib/python3.6/test/doctest_aliases.py +13 -0
  1126. package/python3.6.2/lib/python3.6/test/double_const.py +30 -0
  1127. package/python3.6.2/lib/python3.6/test/dtracedata/assert_usable.d +5 -0
  1128. package/python3.6.2/lib/python3.6/test/dtracedata/assert_usable.stp +5 -0
  1129. package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.d +31 -0
  1130. package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.d.expected +18 -0
  1131. package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.py +30 -0
  1132. package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.stp +41 -0
  1133. package/python3.6.2/lib/python3.6/test/dtracedata/call_stack.stp.expected +14 -0
  1134. package/python3.6.2/lib/python3.6/test/dtracedata/gc.d +18 -0
  1135. package/python3.6.2/lib/python3.6/test/dtracedata/gc.d.expected +8 -0
  1136. package/python3.6.2/lib/python3.6/test/dtracedata/gc.py +13 -0
  1137. package/python3.6.2/lib/python3.6/test/dtracedata/gc.stp +26 -0
  1138. package/python3.6.2/lib/python3.6/test/dtracedata/gc.stp.expected +8 -0
  1139. package/python3.6.2/lib/python3.6/test/dtracedata/instance.py +24 -0
  1140. package/python3.6.2/lib/python3.6/test/dtracedata/line.d +7 -0
  1141. package/python3.6.2/lib/python3.6/test/dtracedata/line.d.expected +20 -0
  1142. package/python3.6.2/lib/python3.6/test/dtracedata/line.py +17 -0
  1143. package/python3.6.2/lib/python3.6/test/eintrdata/eintr_tester.py +493 -0
  1144. package/python3.6.2/lib/python3.6/test/empty.vbs +1 -0
  1145. package/python3.6.2/lib/python3.6/test/encoded_modules/__init__.py +23 -0
  1146. package/python3.6.2/lib/python3.6/test/encoded_modules/module_iso_8859_1.py +5 -0
  1147. package/python3.6.2/lib/python3.6/test/encoded_modules/module_koi8_r.py +3 -0
  1148. package/python3.6.2/lib/python3.6/test/exception_hierarchy.txt +64 -0
  1149. package/python3.6.2/lib/python3.6/test/final_a.py +19 -0
  1150. package/python3.6.2/lib/python3.6/test/final_b.py +19 -0
  1151. package/python3.6.2/lib/python3.6/test/floating_points.txt +1028 -0
  1152. package/python3.6.2/lib/python3.6/test/fork_wait.py +91 -0
  1153. package/python3.6.2/lib/python3.6/test/formatfloat_testcases.txt +355 -0
  1154. package/python3.6.2/lib/python3.6/test/future_test1.py +11 -0
  1155. package/python3.6.2/lib/python3.6/test/future_test2.py +10 -0
  1156. package/python3.6.2/lib/python3.6/test/gdb_sample.py +12 -0
  1157. package/python3.6.2/lib/python3.6/test/ieee754.txt +185 -0
  1158. package/python3.6.2/lib/python3.6/test/imghdrdata/python.bmp +0 -0
  1159. package/python3.6.2/lib/python3.6/test/imghdrdata/python.exr +0 -0
  1160. package/python3.6.2/lib/python3.6/test/imghdrdata/python.gif +0 -0
  1161. package/python3.6.2/lib/python3.6/test/imghdrdata/python.jpg +0 -0
  1162. package/python3.6.2/lib/python3.6/test/imghdrdata/python.pbm +3 -0
  1163. package/python3.6.2/lib/python3.6/test/imghdrdata/python.pgm +0 -0
  1164. package/python3.6.2/lib/python3.6/test/imghdrdata/python.png +0 -0
  1165. package/python3.6.2/lib/python3.6/test/imghdrdata/python.ppm +0 -0
  1166. package/python3.6.2/lib/python3.6/test/imghdrdata/python.ras +0 -0
  1167. package/python3.6.2/lib/python3.6/test/imghdrdata/python.sgi +0 -0
  1168. package/python3.6.2/lib/python3.6/test/imghdrdata/python.tiff +0 -0
  1169. package/python3.6.2/lib/python3.6/test/imghdrdata/python.webp +0 -0
  1170. package/python3.6.2/lib/python3.6/test/imghdrdata/python.xbm +6 -0
  1171. package/python3.6.2/lib/python3.6/test/imp_dummy.py +3 -0
  1172. package/python3.6.2/lib/python3.6/test/inspect_fodder.py +76 -0
  1173. package/python3.6.2/lib/python3.6/test/inspect_fodder2.py +139 -0
  1174. package/python3.6.2/lib/python3.6/test/keycert.passwd.pem +33 -0
  1175. package/python3.6.2/lib/python3.6/test/keycert.pem +31 -0
  1176. package/python3.6.2/lib/python3.6/test/keycert2.pem +31 -0
  1177. package/python3.6.2/lib/python3.6/test/keycert3.pem +73 -0
  1178. package/python3.6.2/lib/python3.6/test/keycert4.pem +73 -0
  1179. package/python3.6.2/lib/python3.6/test/leakers/README.txt +32 -0
  1180. package/python3.6.2/lib/python3.6/test/leakers/__init__.py +0 -0
  1181. package/python3.6.2/lib/python3.6/test/leakers/test_ctypes.py +15 -0
  1182. package/python3.6.2/lib/python3.6/test/leakers/test_selftype.py +13 -0
  1183. package/python3.6.2/lib/python3.6/test/libregrtest/__init__.py +5 -0
  1184. package/python3.6.2/lib/python3.6/test/libregrtest/cmdline.py +387 -0
  1185. package/python3.6.2/lib/python3.6/test/libregrtest/main.py +584 -0
  1186. package/python3.6.2/lib/python3.6/test/libregrtest/refleak.py +294 -0
  1187. package/python3.6.2/lib/python3.6/test/libregrtest/runtest.py +254 -0
  1188. package/python3.6.2/lib/python3.6/test/libregrtest/runtest_mp.py +244 -0
  1189. package/python3.6.2/lib/python3.6/test/libregrtest/save_env.py +284 -0
  1190. package/python3.6.2/lib/python3.6/test/libregrtest/setup.py +140 -0
  1191. package/python3.6.2/lib/python3.6/test/list_tests.py +618 -0
  1192. package/python3.6.2/lib/python3.6/test/lock_tests.py +936 -0
  1193. package/python3.6.2/lib/python3.6/test/mailcap.txt +39 -0
  1194. package/python3.6.2/lib/python3.6/test/make_ssl_certs.py +216 -0
  1195. package/python3.6.2/lib/python3.6/test/mapping_tests.py +657 -0
  1196. package/python3.6.2/lib/python3.6/test/math_testcases.txt +633 -0
  1197. package/python3.6.2/lib/python3.6/test/memory_watchdog.py +28 -0
  1198. package/python3.6.2/lib/python3.6/test/mime.types +1445 -0
  1199. package/python3.6.2/lib/python3.6/test/mock_socket.py +159 -0
  1200. package/python3.6.2/lib/python3.6/test/mod_generics_cache.py +53 -0
  1201. package/python3.6.2/lib/python3.6/test/mp_fork_bomb.py +18 -0
  1202. package/python3.6.2/lib/python3.6/test/mp_preload.py +18 -0
  1203. package/python3.6.2/lib/python3.6/test/multibytecodec_support.py +384 -0
  1204. package/python3.6.2/lib/python3.6/test/nokia.pem +31 -0
  1205. package/python3.6.2/lib/python3.6/test/nullbytecert.pem +90 -0
  1206. package/python3.6.2/lib/python3.6/test/nullcert.pem +0 -0
  1207. package/python3.6.2/lib/python3.6/test/outstanding_bugs.py +18 -0
  1208. package/python3.6.2/lib/python3.6/test/pickletester.py +2922 -0
  1209. package/python3.6.2/lib/python3.6/test/profilee.py +115 -0
  1210. package/python3.6.2/lib/python3.6/test/pstats.pck +0 -0
  1211. package/python3.6.2/lib/python3.6/test/pycacert.pem +78 -0
  1212. package/python3.6.2/lib/python3.6/test/pycakey.pem +28 -0
  1213. package/python3.6.2/lib/python3.6/test/pyclbr_input.py +33 -0
  1214. package/python3.6.2/lib/python3.6/test/pydoc_mod.py +37 -0
  1215. package/python3.6.2/lib/python3.6/test/pydocfodder.py +216 -0
  1216. package/python3.6.2/lib/python3.6/test/pystone.py +277 -0
  1217. package/python3.6.2/lib/python3.6/test/pythoninfo.py +486 -0
  1218. package/python3.6.2/lib/python3.6/test/randv2_32.pck +633 -0
  1219. package/python3.6.2/lib/python3.6/test/randv2_64.pck +633 -0
  1220. package/python3.6.2/lib/python3.6/test/randv3.pck +633 -0
  1221. package/python3.6.2/lib/python3.6/test/re_tests.py +670 -0
  1222. package/python3.6.2/lib/python3.6/test/regrtest.py +50 -0
  1223. package/python3.6.2/lib/python3.6/test/relimport.py +1 -0
  1224. package/python3.6.2/lib/python3.6/test/reperf.py +23 -0
  1225. package/python3.6.2/lib/python3.6/test/revocation.crl +11 -0
  1226. package/python3.6.2/lib/python3.6/test/sample_doctest.py +76 -0
  1227. package/python3.6.2/lib/python3.6/test/sample_doctest_no_docstrings.py +12 -0
  1228. package/python3.6.2/lib/python3.6/test/sample_doctest_no_doctests.py +15 -0
  1229. package/python3.6.2/lib/python3.6/test/selfsigned_pythontestdotnet.pem +16 -0
  1230. package/python3.6.2/lib/python3.6/test/seq_tests.py +414 -0
  1231. package/python3.6.2/lib/python3.6/test/sgml_input.html +212 -0
  1232. package/python3.6.2/lib/python3.6/test/signalinterproctester.py +84 -0
  1233. package/python3.6.2/lib/python3.6/test/sndhdrdata/README +5 -0
  1234. package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.8svx +0 -0
  1235. package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.aifc +0 -0
  1236. package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.aiff +0 -0
  1237. package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.au +0 -0
  1238. package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.hcom +0 -0
  1239. package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.sndt +0 -0
  1240. package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.voc +0 -0
  1241. package/python3.6.2/lib/python3.6/test/sndhdrdata/sndhdr.wav +0 -0
  1242. package/python3.6.2/lib/python3.6/test/sortperf.py +169 -0
  1243. package/python3.6.2/lib/python3.6/test/ssl_cert.pem +15 -0
  1244. package/python3.6.2/lib/python3.6/test/ssl_key.passwd.pem +18 -0
  1245. package/python3.6.2/lib/python3.6/test/ssl_key.pem +16 -0
  1246. package/python3.6.2/lib/python3.6/test/ssl_servers.py +209 -0
  1247. package/python3.6.2/lib/python3.6/test/ssltests.py +37 -0
  1248. package/python3.6.2/lib/python3.6/test/string_tests.py +1383 -0
  1249. package/python3.6.2/lib/python3.6/test/subprocessdata/fd_status.py +34 -0
  1250. package/python3.6.2/lib/python3.6/test/subprocessdata/input_reader.py +7 -0
  1251. package/python3.6.2/lib/python3.6/test/subprocessdata/qcat.py +7 -0
  1252. package/python3.6.2/lib/python3.6/test/subprocessdata/qgrep.py +10 -0
  1253. package/python3.6.2/lib/python3.6/test/subprocessdata/sigchild_ignore.py +15 -0
  1254. package/python3.6.2/lib/python3.6/test/support/__init__.py +2706 -0
  1255. package/python3.6.2/lib/python3.6/test/support/script_helper.py +259 -0
  1256. package/python3.6.2/lib/python3.6/test/test___all__.py +109 -0
  1257. package/python3.6.2/lib/python3.6/test/test___future__.py +61 -0
  1258. package/python3.6.2/lib/python3.6/test/test__locale.py +193 -0
  1259. package/python3.6.2/lib/python3.6/test/test__opcode.py +20 -0
  1260. package/python3.6.2/lib/python3.6/test/test__osx_support.py +276 -0
  1261. package/python3.6.2/lib/python3.6/test/test_abc.py +420 -0
  1262. package/python3.6.2/lib/python3.6/test/test_abstract_numbers.py +44 -0
  1263. package/python3.6.2/lib/python3.6/test/test_aifc.py +399 -0
  1264. package/python3.6.2/lib/python3.6/test/test_argparse.py +5006 -0
  1265. package/python3.6.2/lib/python3.6/test/test_array.py +1388 -0
  1266. package/python3.6.2/lib/python3.6/test/test_asdl_parser.py +122 -0
  1267. package/python3.6.2/lib/python3.6/test/test_ast.py +1170 -0
  1268. package/python3.6.2/lib/python3.6/test/test_asyncgen.py +1044 -0
  1269. package/python3.6.2/lib/python3.6/test/test_asynchat.py +308 -0
  1270. package/python3.6.2/lib/python3.6/test/test_asyncio/__init__.py +10 -0
  1271. package/python3.6.2/lib/python3.6/test/test_asyncio/__main__.py +4 -0
  1272. package/python3.6.2/lib/python3.6/test/test_asyncio/echo.py +8 -0
  1273. package/python3.6.2/lib/python3.6/test/test_asyncio/echo2.py +6 -0
  1274. package/python3.6.2/lib/python3.6/test/test_asyncio/echo3.py +11 -0
  1275. package/python3.6.2/lib/python3.6/test/test_asyncio/keycert3.pem +73 -0
  1276. package/python3.6.2/lib/python3.6/test/test_asyncio/pycacert.pem +78 -0
  1277. package/python3.6.2/lib/python3.6/test/test_asyncio/ssl_cert.pem +15 -0
  1278. package/python3.6.2/lib/python3.6/test/test_asyncio/ssl_key.pem +16 -0
  1279. package/python3.6.2/lib/python3.6/test/test_asyncio/test_base_events.py +1761 -0
  1280. package/python3.6.2/lib/python3.6/test/test_asyncio/test_events.py +2791 -0
  1281. package/python3.6.2/lib/python3.6/test/test_asyncio/test_futures.py +692 -0
  1282. package/python3.6.2/lib/python3.6/test/test_asyncio/test_locks.py +943 -0
  1283. package/python3.6.2/lib/python3.6/test/test_asyncio/test_pep492.py +232 -0
  1284. package/python3.6.2/lib/python3.6/test/test_asyncio/test_proactor_events.py +593 -0
  1285. package/python3.6.2/lib/python3.6/test/test_asyncio/test_queues.py +643 -0
  1286. package/python3.6.2/lib/python3.6/test/test_asyncio/test_selector_events.py +1833 -0
  1287. package/python3.6.2/lib/python3.6/test/test_asyncio/test_sslproto.py +134 -0
  1288. package/python3.6.2/lib/python3.6/test/test_asyncio/test_streams.py +868 -0
  1289. package/python3.6.2/lib/python3.6/test/test_asyncio/test_subprocess.py +532 -0
  1290. package/python3.6.2/lib/python3.6/test/test_asyncio/test_tasks.py +2598 -0
  1291. package/python3.6.2/lib/python3.6/test/test_asyncio/test_transports.py +91 -0
  1292. package/python3.6.2/lib/python3.6/test/test_asyncio/test_unix_events.py +1621 -0
  1293. package/python3.6.2/lib/python3.6/test/test_asyncio/test_windows_events.py +164 -0
  1294. package/python3.6.2/lib/python3.6/test/test_asyncio/test_windows_utils.py +182 -0
  1295. package/python3.6.2/lib/python3.6/test/test_asyncore.py +847 -0
  1296. package/python3.6.2/lib/python3.6/test/test_atexit.py +192 -0
  1297. package/python3.6.2/lib/python3.6/test/test_audioop.py +565 -0
  1298. package/python3.6.2/lib/python3.6/test/test_augassign.py +326 -0
  1299. package/python3.6.2/lib/python3.6/test/test_base64.py +681 -0
  1300. package/python3.6.2/lib/python3.6/test/test_baseexception.py +183 -0
  1301. package/python3.6.2/lib/python3.6/test/test_bigaddrspace.py +101 -0
  1302. package/python3.6.2/lib/python3.6/test/test_bigmem.py +1256 -0
  1303. package/python3.6.2/lib/python3.6/test/test_binascii.py +373 -0
  1304. package/python3.6.2/lib/python3.6/test/test_binhex.py +55 -0
  1305. package/python3.6.2/lib/python3.6/test/test_binop.py +441 -0
  1306. package/python3.6.2/lib/python3.6/test/test_bisect.py +328 -0
  1307. package/python3.6.2/lib/python3.6/test/test_bool.py +368 -0
  1308. package/python3.6.2/lib/python3.6/test/test_buffer.py +4396 -0
  1309. package/python3.6.2/lib/python3.6/test/test_bufio.py +73 -0
  1310. package/python3.6.2/lib/python3.6/test/test_builtin.py +1851 -0
  1311. package/python3.6.2/lib/python3.6/test/test_bytes.py +1759 -0
  1312. package/python3.6.2/lib/python3.6/test/test_bz2.py +1002 -0
  1313. package/python3.6.2/lib/python3.6/test/test_calendar.py +848 -0
  1314. package/python3.6.2/lib/python3.6/test/test_call.py +302 -0
  1315. package/python3.6.2/lib/python3.6/test/test_capi.py +753 -0
  1316. package/python3.6.2/lib/python3.6/test/test_cgi.py +539 -0
  1317. package/python3.6.2/lib/python3.6/test/test_cgitb.py +67 -0
  1318. package/python3.6.2/lib/python3.6/test/test_charmapcodec.py +53 -0
  1319. package/python3.6.2/lib/python3.6/test/test_class.py +599 -0
  1320. package/python3.6.2/lib/python3.6/test/test_cmath.py +643 -0
  1321. package/python3.6.2/lib/python3.6/test/test_cmd.py +243 -0
  1322. package/python3.6.2/lib/python3.6/test/test_cmd_line.py +494 -0
  1323. package/python3.6.2/lib/python3.6/test/test_cmd_line_script.py +648 -0
  1324. package/python3.6.2/lib/python3.6/test/test_code.py +367 -0
  1325. package/python3.6.2/lib/python3.6/test/test_code_module.py +154 -0
  1326. package/python3.6.2/lib/python3.6/test/test_codeccallbacks.py +1074 -0
  1327. package/python3.6.2/lib/python3.6/test/test_codecencodings_cn.py +96 -0
  1328. package/python3.6.2/lib/python3.6/test/test_codecencodings_hk.py +22 -0
  1329. package/python3.6.2/lib/python3.6/test/test_codecencodings_iso2022.py +41 -0
  1330. package/python3.6.2/lib/python3.6/test/test_codecencodings_jp.py +126 -0
  1331. package/python3.6.2/lib/python3.6/test/test_codecencodings_kr.py +69 -0
  1332. package/python3.6.2/lib/python3.6/test/test_codecencodings_tw.py +22 -0
  1333. package/python3.6.2/lib/python3.6/test/test_codecmaps_cn.py +26 -0
  1334. package/python3.6.2/lib/python3.6/test/test_codecmaps_hk.py +15 -0
  1335. package/python3.6.2/lib/python3.6/test/test_codecmaps_jp.py +60 -0
  1336. package/python3.6.2/lib/python3.6/test/test_codecmaps_kr.py +37 -0
  1337. package/python3.6.2/lib/python3.6/test/test_codecmaps_tw.py +27 -0
  1338. package/python3.6.2/lib/python3.6/test/test_codecs.py +3272 -0
  1339. package/python3.6.2/lib/python3.6/test/test_codeop.py +299 -0
  1340. package/python3.6.2/lib/python3.6/test/test_collections.py +1926 -0
  1341. package/python3.6.2/lib/python3.6/test/test_colorsys.py +100 -0
  1342. package/python3.6.2/lib/python3.6/test/test_compare.py +124 -0
  1343. package/python3.6.2/lib/python3.6/test/test_compile.py +720 -0
  1344. package/python3.6.2/lib/python3.6/test/test_compileall.py +547 -0
  1345. package/python3.6.2/lib/python3.6/test/test_complex.py +688 -0
  1346. package/python3.6.2/lib/python3.6/test/test_concurrent_futures.py +836 -0
  1347. package/python3.6.2/lib/python3.6/test/test_configparser.py +2096 -0
  1348. package/python3.6.2/lib/python3.6/test/test_contains.py +114 -0
  1349. package/python3.6.2/lib/python3.6/test/test_contextlib.py +990 -0
  1350. package/python3.6.2/lib/python3.6/test/test_copy.py +888 -0
  1351. package/python3.6.2/lib/python3.6/test/test_copyreg.py +126 -0
  1352. package/python3.6.2/lib/python3.6/test/test_coroutines.py +2151 -0
  1353. package/python3.6.2/lib/python3.6/test/test_cprofile.py +98 -0
  1354. package/python3.6.2/lib/python3.6/test/test_crashers.py +37 -0
  1355. package/python3.6.2/lib/python3.6/test/test_crypt.py +45 -0
  1356. package/python3.6.2/lib/python3.6/test/test_csv.py +1175 -0
  1357. package/python3.6.2/lib/python3.6/test/test_ctypes.py +9 -0
  1358. package/python3.6.2/lib/python3.6/test/test_curses.py +549 -0
  1359. package/python3.6.2/lib/python3.6/test/test_datetime.py +57 -0
  1360. package/python3.6.2/lib/python3.6/test/test_dbm.py +192 -0
  1361. package/python3.6.2/lib/python3.6/test/test_dbm_dumb.py +286 -0
  1362. package/python3.6.2/lib/python3.6/test/test_dbm_gnu.py +97 -0
  1363. package/python3.6.2/lib/python3.6/test/test_dbm_ndbm.py +52 -0
  1364. package/python3.6.2/lib/python3.6/test/test_decimal.py +5707 -0
  1365. package/python3.6.2/lib/python3.6/test/test_decorators.py +304 -0
  1366. package/python3.6.2/lib/python3.6/test/test_defaultdict.py +187 -0
  1367. package/python3.6.2/lib/python3.6/test/test_deque.py +1059 -0
  1368. package/python3.6.2/lib/python3.6/test/test_descr.py +5452 -0
  1369. package/python3.6.2/lib/python3.6/test/test_descrtut.py +486 -0
  1370. package/python3.6.2/lib/python3.6/test/test_devpoll.py +145 -0
  1371. package/python3.6.2/lib/python3.6/test/test_dict.py +1217 -0
  1372. package/python3.6.2/lib/python3.6/test/test_dict_version.py +186 -0
  1373. package/python3.6.2/lib/python3.6/test/test_dictcomps.py +86 -0
  1374. package/python3.6.2/lib/python3.6/test/test_dictviews.py +272 -0
  1375. package/python3.6.2/lib/python3.6/test/test_difflib.py +478 -0
  1376. package/python3.6.2/lib/python3.6/test/test_difflib_expect.html +526 -0
  1377. package/python3.6.2/lib/python3.6/test/test_dis.py +960 -0
  1378. package/python3.6.2/lib/python3.6/test/test_distutils.py +18 -0
  1379. package/python3.6.2/lib/python3.6/test/test_doctest.py +2962 -0
  1380. package/python3.6.2/lib/python3.6/test/test_doctest.txt +17 -0
  1381. package/python3.6.2/lib/python3.6/test/test_doctest2.py +123 -0
  1382. package/python3.6.2/lib/python3.6/test/test_doctest2.txt +14 -0
  1383. package/python3.6.2/lib/python3.6/test/test_doctest3.txt +5 -0
  1384. package/python3.6.2/lib/python3.6/test/test_doctest4.txt +11 -0
  1385. package/python3.6.2/lib/python3.6/test/test_docxmlrpc.py +198 -0
  1386. package/python3.6.2/lib/python3.6/test/test_dtrace.py +178 -0
  1387. package/python3.6.2/lib/python3.6/test/test_dummy_thread.py +256 -0
  1388. package/python3.6.2/lib/python3.6/test/test_dummy_threading.py +60 -0
  1389. package/python3.6.2/lib/python3.6/test/test_dynamic.py +138 -0
  1390. package/python3.6.2/lib/python3.6/test/test_dynamicclassattribute.py +300 -0
  1391. package/python3.6.2/lib/python3.6/test/test_eintr.py +22 -0
  1392. package/python3.6.2/lib/python3.6/test/test_email/__init__.py +166 -0
  1393. package/python3.6.2/lib/python3.6/test/test_email/__main__.py +4 -0
  1394. package/python3.6.2/lib/python3.6/test/test_email/data/PyBanner048.gif +0 -0
  1395. package/python3.6.2/lib/python3.6/test/test_email/data/audiotest.au +0 -0
  1396. package/python3.6.2/lib/python3.6/test/test_email/data/msg_01.txt +19 -0
  1397. package/python3.6.2/lib/python3.6/test/test_email/data/msg_02.txt +136 -0
  1398. package/python3.6.2/lib/python3.6/test/test_email/data/msg_03.txt +16 -0
  1399. package/python3.6.2/lib/python3.6/test/test_email/data/msg_04.txt +37 -0
  1400. package/python3.6.2/lib/python3.6/test/test_email/data/msg_05.txt +28 -0
  1401. package/python3.6.2/lib/python3.6/test/test_email/data/msg_06.txt +33 -0
  1402. package/python3.6.2/lib/python3.6/test/test_email/data/msg_07.txt +83 -0
  1403. package/python3.6.2/lib/python3.6/test/test_email/data/msg_08.txt +24 -0
  1404. package/python3.6.2/lib/python3.6/test/test_email/data/msg_09.txt +24 -0
  1405. package/python3.6.2/lib/python3.6/test/test_email/data/msg_10.txt +39 -0
  1406. package/python3.6.2/lib/python3.6/test/test_email/data/msg_11.txt +7 -0
  1407. package/python3.6.2/lib/python3.6/test/test_email/data/msg_12.txt +36 -0
  1408. package/python3.6.2/lib/python3.6/test/test_email/data/msg_12a.txt +38 -0
  1409. package/python3.6.2/lib/python3.6/test/test_email/data/msg_13.txt +94 -0
  1410. package/python3.6.2/lib/python3.6/test/test_email/data/msg_14.txt +23 -0
  1411. package/python3.6.2/lib/python3.6/test/test_email/data/msg_15.txt +52 -0
  1412. package/python3.6.2/lib/python3.6/test/test_email/data/msg_16.txt +123 -0
  1413. package/python3.6.2/lib/python3.6/test/test_email/data/msg_17.txt +12 -0
  1414. package/python3.6.2/lib/python3.6/test/test_email/data/msg_18.txt +6 -0
  1415. package/python3.6.2/lib/python3.6/test/test_email/data/msg_19.txt +43 -0
  1416. package/python3.6.2/lib/python3.6/test/test_email/data/msg_20.txt +22 -0
  1417. package/python3.6.2/lib/python3.6/test/test_email/data/msg_21.txt +20 -0
  1418. package/python3.6.2/lib/python3.6/test/test_email/data/msg_22.txt +46 -0
  1419. package/python3.6.2/lib/python3.6/test/test_email/data/msg_23.txt +8 -0
  1420. package/python3.6.2/lib/python3.6/test/test_email/data/msg_24.txt +10 -0
  1421. package/python3.6.2/lib/python3.6/test/test_email/data/msg_25.txt +117 -0
  1422. package/python3.6.2/lib/python3.6/test/test_email/data/msg_26.txt +46 -0
  1423. package/python3.6.2/lib/python3.6/test/test_email/data/msg_27.txt +15 -0
  1424. package/python3.6.2/lib/python3.6/test/test_email/data/msg_28.txt +25 -0
  1425. package/python3.6.2/lib/python3.6/test/test_email/data/msg_29.txt +22 -0
  1426. package/python3.6.2/lib/python3.6/test/test_email/data/msg_30.txt +23 -0
  1427. package/python3.6.2/lib/python3.6/test/test_email/data/msg_31.txt +15 -0
  1428. package/python3.6.2/lib/python3.6/test/test_email/data/msg_32.txt +14 -0
  1429. package/python3.6.2/lib/python3.6/test/test_email/data/msg_33.txt +29 -0
  1430. package/python3.6.2/lib/python3.6/test/test_email/data/msg_34.txt +19 -0
  1431. package/python3.6.2/lib/python3.6/test/test_email/data/msg_35.txt +4 -0
  1432. package/python3.6.2/lib/python3.6/test/test_email/data/msg_36.txt +40 -0
  1433. package/python3.6.2/lib/python3.6/test/test_email/data/msg_37.txt +22 -0
  1434. package/python3.6.2/lib/python3.6/test/test_email/data/msg_38.txt +101 -0
  1435. package/python3.6.2/lib/python3.6/test/test_email/data/msg_39.txt +83 -0
  1436. package/python3.6.2/lib/python3.6/test/test_email/data/msg_40.txt +10 -0
  1437. package/python3.6.2/lib/python3.6/test/test_email/data/msg_41.txt +8 -0
  1438. package/python3.6.2/lib/python3.6/test/test_email/data/msg_42.txt +20 -0
  1439. package/python3.6.2/lib/python3.6/test/test_email/data/msg_43.txt +217 -0
  1440. package/python3.6.2/lib/python3.6/test/test_email/data/msg_44.txt +33 -0
  1441. package/python3.6.2/lib/python3.6/test/test_email/data/msg_45.txt +33 -0
  1442. package/python3.6.2/lib/python3.6/test/test_email/data/msg_46.txt +23 -0
  1443. package/python3.6.2/lib/python3.6/test/test_email/test__encoded_words.py +192 -0
  1444. package/python3.6.2/lib/python3.6/test/test_email/test__header_value_parser.py +2723 -0
  1445. package/python3.6.2/lib/python3.6/test/test_email/test_asian_codecs.py +81 -0
  1446. package/python3.6.2/lib/python3.6/test/test_email/test_contentmanager.py +796 -0
  1447. package/python3.6.2/lib/python3.6/test/test_email/test_defect_handling.py +320 -0
  1448. package/python3.6.2/lib/python3.6/test/test_email/test_email.py +5402 -0
  1449. package/python3.6.2/lib/python3.6/test/test_email/test_generator.py +296 -0
  1450. package/python3.6.2/lib/python3.6/test/test_email/test_headerregistry.py +1653 -0
  1451. package/python3.6.2/lib/python3.6/test/test_email/test_inversion.py +70 -0
  1452. package/python3.6.2/lib/python3.6/test/test_email/test_message.py +803 -0
  1453. package/python3.6.2/lib/python3.6/test/test_email/test_parser.py +110 -0
  1454. package/python3.6.2/lib/python3.6/test/test_email/test_pickleable.py +76 -0
  1455. package/python3.6.2/lib/python3.6/test/test_email/test_policy.py +346 -0
  1456. package/python3.6.2/lib/python3.6/test/test_email/test_utils.py +163 -0
  1457. package/python3.6.2/lib/python3.6/test/test_email/torture_test.py +133 -0
  1458. package/python3.6.2/lib/python3.6/test/test_ensurepip.py +310 -0
  1459. package/python3.6.2/lib/python3.6/test/test_enum.py +2618 -0
  1460. package/python3.6.2/lib/python3.6/test/test_enumerate.py +269 -0
  1461. package/python3.6.2/lib/python3.6/test/test_eof.py +28 -0
  1462. package/python3.6.2/lib/python3.6/test/test_epoll.py +255 -0
  1463. package/python3.6.2/lib/python3.6/test/test_errno.py +35 -0
  1464. package/python3.6.2/lib/python3.6/test/test_exception_hierarchy.py +204 -0
  1465. package/python3.6.2/lib/python3.6/test/test_exception_variations.py +176 -0
  1466. package/python3.6.2/lib/python3.6/test/test_exceptions.py +1288 -0
  1467. package/python3.6.2/lib/python3.6/test/test_extcall.py +465 -0
  1468. package/python3.6.2/lib/python3.6/test/test_faulthandler.py +817 -0
  1469. package/python3.6.2/lib/python3.6/test/test_fcntl.py +152 -0
  1470. package/python3.6.2/lib/python3.6/test/test_file.py +329 -0
  1471. package/python3.6.2/lib/python3.6/test/test_file_eintr.py +252 -0
  1472. package/python3.6.2/lib/python3.6/test/test_filecmp.py +217 -0
  1473. package/python3.6.2/lib/python3.6/test/test_fileinput.py +1015 -0
  1474. package/python3.6.2/lib/python3.6/test/test_fileio.py +595 -0
  1475. package/python3.6.2/lib/python3.6/test/test_finalization.py +519 -0
  1476. package/python3.6.2/lib/python3.6/test/test_float.py +1422 -0
  1477. package/python3.6.2/lib/python3.6/test/test_flufl.py +22 -0
  1478. package/python3.6.2/lib/python3.6/test/test_fnmatch.py +128 -0
  1479. package/python3.6.2/lib/python3.6/test/test_fork1.py +112 -0
  1480. package/python3.6.2/lib/python3.6/test/test_format.py +494 -0
  1481. package/python3.6.2/lib/python3.6/test/test_fractions.py +635 -0
  1482. package/python3.6.2/lib/python3.6/test/test_frame.py +165 -0
  1483. package/python3.6.2/lib/python3.6/test/test_fstring.py +1038 -0
  1484. package/python3.6.2/lib/python3.6/test/test_ftplib.py +1091 -0
  1485. package/python3.6.2/lib/python3.6/test/test_funcattrs.py +377 -0
  1486. package/python3.6.2/lib/python3.6/test/test_functools.py +2083 -0
  1487. package/python3.6.2/lib/python3.6/test/test_future.py +108 -0
  1488. package/python3.6.2/lib/python3.6/test/test_future3.py +26 -0
  1489. package/python3.6.2/lib/python3.6/test/test_future4.py +6 -0
  1490. package/python3.6.2/lib/python3.6/test/test_future5.py +21 -0
  1491. package/python3.6.2/lib/python3.6/test/test_gc.py +1031 -0
  1492. package/python3.6.2/lib/python3.6/test/test_gdb.py +936 -0
  1493. package/python3.6.2/lib/python3.6/test/test_generator_stop.py +34 -0
  1494. package/python3.6.2/lib/python3.6/test/test_generators.py +2232 -0
  1495. package/python3.6.2/lib/python3.6/test/test_genericpath.py +537 -0
  1496. package/python3.6.2/lib/python3.6/test/test_genexps.py +285 -0
  1497. package/python3.6.2/lib/python3.6/test/test_getargs2.py +958 -0
  1498. package/python3.6.2/lib/python3.6/test/test_getopt.py +184 -0
  1499. package/python3.6.2/lib/python3.6/test/test_getpass.py +163 -0
  1500. package/python3.6.2/lib/python3.6/test/test_gettext.py +770 -0
  1501. package/python3.6.2/lib/python3.6/test/test_glob.py +317 -0
  1502. package/python3.6.2/lib/python3.6/test/test_global.py +61 -0
  1503. package/python3.6.2/lib/python3.6/test/test_grammar.py +1417 -0
  1504. package/python3.6.2/lib/python3.6/test/test_grp.py +108 -0
  1505. package/python3.6.2/lib/python3.6/test/test_gzip.py +672 -0
  1506. package/python3.6.2/lib/python3.6/test/test_hash.py +346 -0
  1507. package/python3.6.2/lib/python3.6/test/test_hashlib.py +954 -0
  1508. package/python3.6.2/lib/python3.6/test/test_heapq.py +427 -0
  1509. package/python3.6.2/lib/python3.6/test/test_hmac.py +496 -0
  1510. package/python3.6.2/lib/python3.6/test/test_html.py +103 -0
  1511. package/python3.6.2/lib/python3.6/test/test_htmlparser.py +778 -0
  1512. package/python3.6.2/lib/python3.6/test/test_http_cookiejar.py +1772 -0
  1513. package/python3.6.2/lib/python3.6/test/test_http_cookies.py +472 -0
  1514. package/python3.6.2/lib/python3.6/test/test_httplib.py +1903 -0
  1515. package/python3.6.2/lib/python3.6/test/test_httpservers.py +1060 -0
  1516. package/python3.6.2/lib/python3.6/test/test_idle.py +23 -0
  1517. package/python3.6.2/lib/python3.6/test/test_imaplib.py +998 -0
  1518. package/python3.6.2/lib/python3.6/test/test_imghdr.py +140 -0
  1519. package/python3.6.2/lib/python3.6/test/test_imp.py +416 -0
  1520. package/python3.6.2/lib/python3.6/test/test_import/__init__.py +1199 -0
  1521. package/python3.6.2/lib/python3.6/test/test_import/__main__.py +3 -0
  1522. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/basic.py +2 -0
  1523. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/basic2.py +1 -0
  1524. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/indirect.py +1 -0
  1525. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/rebinding.py +3 -0
  1526. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/rebinding2.py +3 -0
  1527. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/subpackage.py +2 -0
  1528. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/subpkg/subpackage2.py +2 -0
  1529. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/subpkg/util.py +2 -0
  1530. package/python3.6.2/lib/python3.6/test/test_import/data/circular_imports/util.py +2 -0
  1531. package/python3.6.2/lib/python3.6/test/test_import/data/package/__init__.py +2 -0
  1532. package/python3.6.2/lib/python3.6/test/test_import/data/package/submodule.py +0 -0
  1533. package/python3.6.2/lib/python3.6/test/test_import/data/package2/submodule1.py +3 -0
  1534. package/python3.6.2/lib/python3.6/test/test_import/data/package2/submodule2.py +0 -0
  1535. package/python3.6.2/lib/python3.6/test/test_importlib/__init__.py +5 -0
  1536. package/python3.6.2/lib/python3.6/test/test_importlib/__main__.py +4 -0
  1537. package/python3.6.2/lib/python3.6/test/test_importlib/abc.py +94 -0
  1538. package/python3.6.2/lib/python3.6/test/test_importlib/builtin/__init__.py +5 -0
  1539. package/python3.6.2/lib/python3.6/test/test_importlib/builtin/__main__.py +4 -0
  1540. package/python3.6.2/lib/python3.6/test/test_importlib/builtin/test_finder.py +90 -0
  1541. package/python3.6.2/lib/python3.6/test/test_importlib/builtin/test_loader.py +108 -0
  1542. package/python3.6.2/lib/python3.6/test/test_importlib/extension/__init__.py +5 -0
  1543. package/python3.6.2/lib/python3.6/test/test_importlib/extension/__main__.py +4 -0
  1544. package/python3.6.2/lib/python3.6/test/test_importlib/extension/test_case_sensitivity.py +46 -0
  1545. package/python3.6.2/lib/python3.6/test/test_importlib/extension/test_finder.py +44 -0
  1546. package/python3.6.2/lib/python3.6/test/test_importlib/extension/test_loader.py +277 -0
  1547. package/python3.6.2/lib/python3.6/test/test_importlib/extension/test_path_hook.py +31 -0
  1548. package/python3.6.2/lib/python3.6/test/test_importlib/frozen/__init__.py +5 -0
  1549. package/python3.6.2/lib/python3.6/test/test_importlib/frozen/__main__.py +4 -0
  1550. package/python3.6.2/lib/python3.6/test/test_importlib/frozen/test_finder.py +84 -0
  1551. package/python3.6.2/lib/python3.6/test/test_importlib/frozen/test_loader.py +225 -0
  1552. package/python3.6.2/lib/python3.6/test/test_importlib/import_/__init__.py +5 -0
  1553. package/python3.6.2/lib/python3.6/test/test_importlib/import_/__main__.py +4 -0
  1554. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test___loader__.py +75 -0
  1555. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test___package__.py +163 -0
  1556. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_api.py +119 -0
  1557. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_caching.py +93 -0
  1558. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_fromlist.py +175 -0
  1559. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_meta_path.py +125 -0
  1560. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_packages.py +110 -0
  1561. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_path.py +257 -0
  1562. package/python3.6.2/lib/python3.6/test/test_importlib/import_/test_relative_imports.py +232 -0
  1563. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/both_portions/foo/one.py +1 -0
  1564. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/both_portions/foo/two.py +1 -0
  1565. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/missing_directory.zip +0 -0
  1566. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty +0 -0
  1567. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py +1 -0
  1568. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/nested_portion1.zip +0 -0
  1569. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py +0 -0
  1570. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py +1 -0
  1571. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/portion1/foo/one.py +1 -0
  1572. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/portion2/foo/two.py +1 -0
  1573. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/project1/parent/child/one.py +1 -0
  1574. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/project2/parent/child/two.py +1 -0
  1575. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/project3/parent/child/three.py +1 -0
  1576. package/python3.6.2/lib/python3.6/test/test_importlib/namespace_pkgs/top_level_portion1.zip +0 -0
  1577. package/python3.6.2/lib/python3.6/test/test_importlib/source/__init__.py +5 -0
  1578. package/python3.6.2/lib/python3.6/test/test_importlib/source/__main__.py +4 -0
  1579. package/python3.6.2/lib/python3.6/test/test_importlib/source/test_case_sensitivity.py +85 -0
  1580. package/python3.6.2/lib/python3.6/test/test_importlib/source/test_file_loader.py +602 -0
  1581. package/python3.6.2/lib/python3.6/test/test_importlib/source/test_finder.py +236 -0
  1582. package/python3.6.2/lib/python3.6/test/test_importlib/source/test_path_hook.py +41 -0
  1583. package/python3.6.2/lib/python3.6/test/test_importlib/source/test_source_encoding.py +175 -0
  1584. package/python3.6.2/lib/python3.6/test/test_importlib/test_abc.py +953 -0
  1585. package/python3.6.2/lib/python3.6/test/test_importlib/test_api.py +449 -0
  1586. package/python3.6.2/lib/python3.6/test/test_importlib/test_lazy.py +145 -0
  1587. package/python3.6.2/lib/python3.6/test/test_importlib/test_locks.py +175 -0
  1588. package/python3.6.2/lib/python3.6/test/test_importlib/test_namespace_pkgs.py +321 -0
  1589. package/python3.6.2/lib/python3.6/test/test_importlib/test_spec.py +819 -0
  1590. package/python3.6.2/lib/python3.6/test/test_importlib/test_util.py +805 -0
  1591. package/python3.6.2/lib/python3.6/test/test_importlib/test_windows.py +109 -0
  1592. package/python3.6.2/lib/python3.6/test/test_importlib/util.py +388 -0
  1593. package/python3.6.2/lib/python3.6/test/test_index.py +275 -0
  1594. package/python3.6.2/lib/python3.6/test/test_inspect.py +3725 -0
  1595. package/python3.6.2/lib/python3.6/test/test_int.py +518 -0
  1596. package/python3.6.2/lib/python3.6/test/test_int_literal.py +143 -0
  1597. package/python3.6.2/lib/python3.6/test/test_io.py +4054 -0
  1598. package/python3.6.2/lib/python3.6/test/test_ioctl.py +91 -0
  1599. package/python3.6.2/lib/python3.6/test/test_ipaddress.py +1972 -0
  1600. package/python3.6.2/lib/python3.6/test/test_isinstance.py +280 -0
  1601. package/python3.6.2/lib/python3.6/test/test_iter.py +1016 -0
  1602. package/python3.6.2/lib/python3.6/test/test_iterlen.py +228 -0
  1603. package/python3.6.2/lib/python3.6/test/test_itertools.py +2340 -0
  1604. package/python3.6.2/lib/python3.6/test/test_json/__init__.py +56 -0
  1605. package/python3.6.2/lib/python3.6/test/test_json/__main__.py +4 -0
  1606. package/python3.6.2/lib/python3.6/test/test_json/test_decode.py +97 -0
  1607. package/python3.6.2/lib/python3.6/test/test_json/test_default.py +12 -0
  1608. package/python3.6.2/lib/python3.6/test/test_json/test_dump.py +68 -0
  1609. package/python3.6.2/lib/python3.6/test/test_json/test_encode_basestring_ascii.py +48 -0
  1610. package/python3.6.2/lib/python3.6/test/test_json/test_enum.py +120 -0
  1611. package/python3.6.2/lib/python3.6/test/test_json/test_fail.py +216 -0
  1612. package/python3.6.2/lib/python3.6/test/test_json/test_float.py +33 -0
  1613. package/python3.6.2/lib/python3.6/test/test_json/test_indent.py +67 -0
  1614. package/python3.6.2/lib/python3.6/test/test_json/test_pass1.py +75 -0
  1615. package/python3.6.2/lib/python3.6/test/test_json/test_pass2.py +18 -0
  1616. package/python3.6.2/lib/python3.6/test/test_json/test_pass3.py +24 -0
  1617. package/python3.6.2/lib/python3.6/test/test_json/test_recursion.py +100 -0
  1618. package/python3.6.2/lib/python3.6/test/test_json/test_scanstring.py +141 -0
  1619. package/python3.6.2/lib/python3.6/test/test_json/test_separators.py +50 -0
  1620. package/python3.6.2/lib/python3.6/test/test_json/test_speedups.py +71 -0
  1621. package/python3.6.2/lib/python3.6/test/test_json/test_tool.py +107 -0
  1622. package/python3.6.2/lib/python3.6/test/test_json/test_unicode.py +98 -0
  1623. package/python3.6.2/lib/python3.6/test/test_keyword.py +138 -0
  1624. package/python3.6.2/lib/python3.6/test/test_keywordonlyarg.py +189 -0
  1625. package/python3.6.2/lib/python3.6/test/test_kqueue.py +263 -0
  1626. package/python3.6.2/lib/python3.6/test/test_largefile.py +180 -0
  1627. package/python3.6.2/lib/python3.6/test/test_lib2to3.py +5 -0
  1628. package/python3.6.2/lib/python3.6/test/test_linecache.py +242 -0
  1629. package/python3.6.2/lib/python3.6/test/test_list.py +155 -0
  1630. package/python3.6.2/lib/python3.6/test/test_listcomps.py +148 -0
  1631. package/python3.6.2/lib/python3.6/test/test_locale.py +587 -0
  1632. package/python3.6.2/lib/python3.6/test/test_logging.py +4442 -0
  1633. package/python3.6.2/lib/python3.6/test/test_long.py +1322 -0
  1634. package/python3.6.2/lib/python3.6/test/test_longexp.py +10 -0
  1635. package/python3.6.2/lib/python3.6/test/test_lzma.py +1764 -0
  1636. package/python3.6.2/lib/python3.6/test/test_macpath.py +149 -0
  1637. package/python3.6.2/lib/python3.6/test/test_macurl2path.py +31 -0
  1638. package/python3.6.2/lib/python3.6/test/test_mailbox.py +2288 -0
  1639. package/python3.6.2/lib/python3.6/test/test_mailcap.py +239 -0
  1640. package/python3.6.2/lib/python3.6/test/test_marshal.py +556 -0
  1641. package/python3.6.2/lib/python3.6/test/test_math.py +1422 -0
  1642. package/python3.6.2/lib/python3.6/test/test_memoryio.py +842 -0
  1643. package/python3.6.2/lib/python3.6/test/test_memoryview.py +537 -0
  1644. package/python3.6.2/lib/python3.6/test/test_metaclass.py +265 -0
  1645. package/python3.6.2/lib/python3.6/test/test_mimetypes.py +111 -0
  1646. package/python3.6.2/lib/python3.6/test/test_minidom.py +1574 -0
  1647. package/python3.6.2/lib/python3.6/test/test_mmap.py +803 -0
  1648. package/python3.6.2/lib/python3.6/test/test_module.py +244 -0
  1649. package/python3.6.2/lib/python3.6/test/test_modulefinder.py +337 -0
  1650. package/python3.6.2/lib/python3.6/test/test_msilib.py +99 -0
  1651. package/python3.6.2/lib/python3.6/test/test_multibytecodec.py +270 -0
  1652. package/python3.6.2/lib/python3.6/test/test_multiprocessing_fork.py +13 -0
  1653. package/python3.6.2/lib/python3.6/test/test_multiprocessing_forkserver.py +12 -0
  1654. package/python3.6.2/lib/python3.6/test/test_multiprocessing_main_handling.py +290 -0
  1655. package/python3.6.2/lib/python3.6/test/test_multiprocessing_spawn.py +12 -0
  1656. package/python3.6.2/lib/python3.6/test/test_netrc.py +133 -0
  1657. package/python3.6.2/lib/python3.6/test/test_nis.py +39 -0
  1658. package/python3.6.2/lib/python3.6/test/test_nntplib.py +1581 -0
  1659. package/python3.6.2/lib/python3.6/test/test_normalization.py +108 -0
  1660. package/python3.6.2/lib/python3.6/test/test_ntpath.py +539 -0
  1661. package/python3.6.2/lib/python3.6/test/test_numeric_tower.py +202 -0
  1662. package/python3.6.2/lib/python3.6/test/test_opcodes.py +135 -0
  1663. package/python3.6.2/lib/python3.6/test/test_openpty.py +21 -0
  1664. package/python3.6.2/lib/python3.6/test/test_operator.py +609 -0
  1665. package/python3.6.2/lib/python3.6/test/test_optparse.py +1664 -0
  1666. package/python3.6.2/lib/python3.6/test/test_ordered_dict.py +787 -0
  1667. package/python3.6.2/lib/python3.6/test/test_os.py +3548 -0
  1668. package/python3.6.2/lib/python3.6/test/test_ossaudiodev.py +202 -0
  1669. package/python3.6.2/lib/python3.6/test/test_osx_env.py +34 -0
  1670. package/python3.6.2/lib/python3.6/test/test_parser.py +905 -0
  1671. package/python3.6.2/lib/python3.6/test/test_pathlib.py +2252 -0
  1672. package/python3.6.2/lib/python3.6/test/test_pdb.py +1124 -0
  1673. package/python3.6.2/lib/python3.6/test/test_peepholer.py +325 -0
  1674. package/python3.6.2/lib/python3.6/test/test_pickle.py +514 -0
  1675. package/python3.6.2/lib/python3.6/test/test_pickletools.py +99 -0
  1676. package/python3.6.2/lib/python3.6/test/test_pipes.py +203 -0
  1677. package/python3.6.2/lib/python3.6/test/test_pkg.py +295 -0
  1678. package/python3.6.2/lib/python3.6/test/test_pkgimport.py +80 -0
  1679. package/python3.6.2/lib/python3.6/test/test_pkgutil.py +491 -0
  1680. package/python3.6.2/lib/python3.6/test/test_platform.py +370 -0
  1681. package/python3.6.2/lib/python3.6/test/test_plistlib.py +662 -0
  1682. package/python3.6.2/lib/python3.6/test/test_poll.py +238 -0
  1683. package/python3.6.2/lib/python3.6/test/test_popen.py +65 -0
  1684. package/python3.6.2/lib/python3.6/test/test_poplib.py +520 -0
  1685. package/python3.6.2/lib/python3.6/test/test_posix.py +1298 -0
  1686. package/python3.6.2/lib/python3.6/test/test_posixpath.py +680 -0
  1687. package/python3.6.2/lib/python3.6/test/test_pow.py +123 -0
  1688. package/python3.6.2/lib/python3.6/test/test_pprint.py +1012 -0
  1689. package/python3.6.2/lib/python3.6/test/test_print.py +193 -0
  1690. package/python3.6.2/lib/python3.6/test/test_profile.py +187 -0
  1691. package/python3.6.2/lib/python3.6/test/test_property.py +272 -0
  1692. package/python3.6.2/lib/python3.6/test/test_pstats.py +38 -0
  1693. package/python3.6.2/lib/python3.6/test/test_pty.py +316 -0
  1694. package/python3.6.2/lib/python3.6/test/test_pulldom.py +342 -0
  1695. package/python3.6.2/lib/python3.6/test/test_pwd.py +125 -0
  1696. package/python3.6.2/lib/python3.6/test/test_py_compile.py +127 -0
  1697. package/python3.6.2/lib/python3.6/test/test_pyclbr.py +176 -0
  1698. package/python3.6.2/lib/python3.6/test/test_pydoc.py +1107 -0
  1699. package/python3.6.2/lib/python3.6/test/test_pyexpat.py +733 -0
  1700. package/python3.6.2/lib/python3.6/test/test_queue.py +362 -0
  1701. package/python3.6.2/lib/python3.6/test/test_quopri.py +210 -0
  1702. package/python3.6.2/lib/python3.6/test/test_raise.py +419 -0
  1703. package/python3.6.2/lib/python3.6/test/test_random.py +939 -0
  1704. package/python3.6.2/lib/python3.6/test/test_range.py +693 -0
  1705. package/python3.6.2/lib/python3.6/test/test_re.py +2087 -0
  1706. package/python3.6.2/lib/python3.6/test/test_readline.py +309 -0
  1707. package/python3.6.2/lib/python3.6/test/test_regrtest.py +967 -0
  1708. package/python3.6.2/lib/python3.6/test/test_repl.py +62 -0
  1709. package/python3.6.2/lib/python3.6/test/test_reprlib.py +405 -0
  1710. package/python3.6.2/lib/python3.6/test/test_resource.py +180 -0
  1711. package/python3.6.2/lib/python3.6/test/test_richcmp.py +355 -0
  1712. package/python3.6.2/lib/python3.6/test/test_rlcompleter.py +141 -0
  1713. package/python3.6.2/lib/python3.6/test/test_robotparser.py +335 -0
  1714. package/python3.6.2/lib/python3.6/test/test_runpy.py +749 -0
  1715. package/python3.6.2/lib/python3.6/test/test_sax.py +1273 -0
  1716. package/python3.6.2/lib/python3.6/test/test_sched.py +204 -0
  1717. package/python3.6.2/lib/python3.6/test/test_scope.py +761 -0
  1718. package/python3.6.2/lib/python3.6/test/test_script_helper.py +110 -0
  1719. package/python3.6.2/lib/python3.6/test/test_secrets.py +124 -0
  1720. package/python3.6.2/lib/python3.6/test/test_select.py +82 -0
  1721. package/python3.6.2/lib/python3.6/test/test_selectors.py +526 -0
  1722. package/python3.6.2/lib/python3.6/test/test_set.py +1903 -0
  1723. package/python3.6.2/lib/python3.6/test/test_setcomps.py +151 -0
  1724. package/python3.6.2/lib/python3.6/test/test_shelve.py +228 -0
  1725. package/python3.6.2/lib/python3.6/test/test_shlex.py +318 -0
  1726. package/python3.6.2/lib/python3.6/test/test_shutil.py +1925 -0
  1727. package/python3.6.2/lib/python3.6/test/test_signal.py +1093 -0
  1728. package/python3.6.2/lib/python3.6/test/test_site.py +595 -0
  1729. package/python3.6.2/lib/python3.6/test/test_slice.py +255 -0
  1730. package/python3.6.2/lib/python3.6/test/test_smtpd.py +1013 -0
  1731. package/python3.6.2/lib/python3.6/test/test_smtplib.py +1292 -0
  1732. package/python3.6.2/lib/python3.6/test/test_smtpnet.py +83 -0
  1733. package/python3.6.2/lib/python3.6/test/test_sndhdr.py +37 -0
  1734. package/python3.6.2/lib/python3.6/test/test_socket.py +5648 -0
  1735. package/python3.6.2/lib/python3.6/test/test_socketserver.py +505 -0
  1736. package/python3.6.2/lib/python3.6/test/test_sort.py +265 -0
  1737. package/python3.6.2/lib/python3.6/test/test_source_encoding.py +225 -0
  1738. package/python3.6.2/lib/python3.6/test/test_spwd.py +75 -0
  1739. package/python3.6.2/lib/python3.6/test/test_sqlite.py +24 -0
  1740. package/python3.6.2/lib/python3.6/test/test_ssl.py +3663 -0
  1741. package/python3.6.2/lib/python3.6/test/test_startfile.py +34 -0
  1742. package/python3.6.2/lib/python3.6/test/test_stat.py +234 -0
  1743. package/python3.6.2/lib/python3.6/test/test_statistics.py +1992 -0
  1744. package/python3.6.2/lib/python3.6/test/test_strftime.py +206 -0
  1745. package/python3.6.2/lib/python3.6/test/test_string.py +439 -0
  1746. package/python3.6.2/lib/python3.6/test/test_string_literals.py +249 -0
  1747. package/python3.6.2/lib/python3.6/test/test_stringprep.py +92 -0
  1748. package/python3.6.2/lib/python3.6/test/test_strptime.py +673 -0
  1749. package/python3.6.2/lib/python3.6/test/test_strtod.py +433 -0
  1750. package/python3.6.2/lib/python3.6/test/test_struct.py +756 -0
  1751. package/python3.6.2/lib/python3.6/test/test_structmembers.py +144 -0
  1752. package/python3.6.2/lib/python3.6/test/test_structseq.py +126 -0
  1753. package/python3.6.2/lib/python3.6/test/test_subclassinit.py +284 -0
  1754. package/python3.6.2/lib/python3.6/test/test_subprocess.py +3005 -0
  1755. package/python3.6.2/lib/python3.6/test/test_sunau.py +121 -0
  1756. package/python3.6.2/lib/python3.6/test/test_sundry.py +57 -0
  1757. package/python3.6.2/lib/python3.6/test/test_super.py +347 -0
  1758. package/python3.6.2/lib/python3.6/test/test_support.py +459 -0
  1759. package/python3.6.2/lib/python3.6/test/test_symbol.py +54 -0
  1760. package/python3.6.2/lib/python3.6/test/test_symtable.py +193 -0
  1761. package/python3.6.2/lib/python3.6/test/test_syntax.py +618 -0
  1762. package/python3.6.2/lib/python3.6/test/test_sys.py +1270 -0
  1763. package/python3.6.2/lib/python3.6/test/test_sys_setprofile.py +376 -0
  1764. package/python3.6.2/lib/python3.6/test/test_sys_settrace.py +854 -0
  1765. package/python3.6.2/lib/python3.6/test/test_sysconfig.py +445 -0
  1766. package/python3.6.2/lib/python3.6/test/test_syslog.py +40 -0
  1767. package/python3.6.2/lib/python3.6/test/test_tarfile.py +2635 -0
  1768. package/python3.6.2/lib/python3.6/test/test_tcl.py +715 -0
  1769. package/python3.6.2/lib/python3.6/test/test_telnetlib.py +401 -0
  1770. package/python3.6.2/lib/python3.6/test/test_tempfile.py +1458 -0
  1771. package/python3.6.2/lib/python3.6/test/test_textwrap.py +981 -0
  1772. package/python3.6.2/lib/python3.6/test/test_thread.py +269 -0
  1773. package/python3.6.2/lib/python3.6/test/test_threaded_import.py +254 -0
  1774. package/python3.6.2/lib/python3.6/test/test_threadedtempfile.py +62 -0
  1775. package/python3.6.2/lib/python3.6/test/test_threading.py +1170 -0
  1776. package/python3.6.2/lib/python3.6/test/test_threading_local.py +220 -0
  1777. package/python3.6.2/lib/python3.6/test/test_threadsignals.py +227 -0
  1778. package/python3.6.2/lib/python3.6/test/test_time.py +1000 -0
  1779. package/python3.6.2/lib/python3.6/test/test_timeit.py +381 -0
  1780. package/python3.6.2/lib/python3.6/test/test_timeout.py +303 -0
  1781. package/python3.6.2/lib/python3.6/test/test_tix.py +32 -0
  1782. package/python3.6.2/lib/python3.6/test/test_tk.py +15 -0
  1783. package/python3.6.2/lib/python3.6/test/test_tokenize.py +1590 -0
  1784. package/python3.6.2/lib/python3.6/test/test_tools/__init__.py +24 -0
  1785. package/python3.6.2/lib/python3.6/test/test_tools/__main__.py +4 -0
  1786. package/python3.6.2/lib/python3.6/test/test_tools/test_fixcid.py +92 -0
  1787. package/python3.6.2/lib/python3.6/test/test_tools/test_gprof2html.py +35 -0
  1788. package/python3.6.2/lib/python3.6/test/test_tools/test_i18n.py +72 -0
  1789. package/python3.6.2/lib/python3.6/test/test_tools/test_md5sum.py +76 -0
  1790. package/python3.6.2/lib/python3.6/test/test_tools/test_pdeps.py +32 -0
  1791. package/python3.6.2/lib/python3.6/test/test_tools/test_pindent.py +339 -0
  1792. package/python3.6.2/lib/python3.6/test/test_tools/test_reindent.py +35 -0
  1793. package/python3.6.2/lib/python3.6/test/test_tools/test_sundry.py +53 -0
  1794. package/python3.6.2/lib/python3.6/test/test_tools/test_unparse.py +313 -0
  1795. package/python3.6.2/lib/python3.6/test/test_trace.py +391 -0
  1796. package/python3.6.2/lib/python3.6/test/test_traceback.py +1111 -0
  1797. package/python3.6.2/lib/python3.6/test/test_tracemalloc.py +994 -0
  1798. package/python3.6.2/lib/python3.6/test/test_ttk_guionly.py +34 -0
  1799. package/python3.6.2/lib/python3.6/test/test_ttk_textonly.py +13 -0
  1800. package/python3.6.2/lib/python3.6/test/test_tuple.py +221 -0
  1801. package/python3.6.2/lib/python3.6/test/test_turtle.py +436 -0
  1802. package/python3.6.2/lib/python3.6/test/test_typechecks.py +71 -0
  1803. package/python3.6.2/lib/python3.6/test/test_types.py +1550 -0
  1804. package/python3.6.2/lib/python3.6/test/test_typing.py +2577 -0
  1805. package/python3.6.2/lib/python3.6/test/test_ucn.py +237 -0
  1806. package/python3.6.2/lib/python3.6/test/test_unary.py +53 -0
  1807. package/python3.6.2/lib/python3.6/test/test_unicode.py +2894 -0
  1808. package/python3.6.2/lib/python3.6/test/test_unicode_file.py +140 -0
  1809. package/python3.6.2/lib/python3.6/test/test_unicode_file_functions.py +195 -0
  1810. package/python3.6.2/lib/python3.6/test/test_unicode_identifiers.py +31 -0
  1811. package/python3.6.2/lib/python3.6/test/test_unicodedata.py +316 -0
  1812. package/python3.6.2/lib/python3.6/test/test_unittest.py +16 -0
  1813. package/python3.6.2/lib/python3.6/test/test_univnewlines.py +123 -0
  1814. package/python3.6.2/lib/python3.6/test/test_unpack.py +151 -0
  1815. package/python3.6.2/lib/python3.6/test/test_unpack_ex.py +365 -0
  1816. package/python3.6.2/lib/python3.6/test/test_urllib.py +1572 -0
  1817. package/python3.6.2/lib/python3.6/test/test_urllib2.py +1930 -0
  1818. package/python3.6.2/lib/python3.6/test/test_urllib2_localnet.py +679 -0
  1819. package/python3.6.2/lib/python3.6/test/test_urllib2net.py +329 -0
  1820. package/python3.6.2/lib/python3.6/test/test_urllib_response.py +59 -0
  1821. package/python3.6.2/lib/python3.6/test/test_urllibnet.py +218 -0
  1822. package/python3.6.2/lib/python3.6/test/test_urlparse.py +1122 -0
  1823. package/python3.6.2/lib/python3.6/test/test_userdict.py +220 -0
  1824. package/python3.6.2/lib/python3.6/test/test_userlist.py +63 -0
  1825. package/python3.6.2/lib/python3.6/test/test_userstring.py +44 -0
  1826. package/python3.6.2/lib/python3.6/test/test_utf8source.py +43 -0
  1827. package/python3.6.2/lib/python3.6/test/test_uu.py +260 -0
  1828. package/python3.6.2/lib/python3.6/test/test_uuid.py +511 -0
  1829. package/python3.6.2/lib/python3.6/test/test_venv.py +433 -0
  1830. package/python3.6.2/lib/python3.6/test/test_wait3.py +38 -0
  1831. package/python3.6.2/lib/python3.6/test/test_wait4.py +39 -0
  1832. package/python3.6.2/lib/python3.6/test/test_warnings/__init__.py +1216 -0
  1833. package/python3.6.2/lib/python3.6/test/test_warnings/__main__.py +3 -0
  1834. package/python3.6.2/lib/python3.6/test/test_warnings/data/import_warning.py +3 -0
  1835. package/python3.6.2/lib/python3.6/test/test_warnings/data/stacklevel.py +9 -0
  1836. package/python3.6.2/lib/python3.6/test/test_wave.py +113 -0
  1837. package/python3.6.2/lib/python3.6/test/test_weakref.py +1952 -0
  1838. package/python3.6.2/lib/python3.6/test/test_weakset.py +439 -0
  1839. package/python3.6.2/lib/python3.6/test/test_webbrowser.py +217 -0
  1840. package/python3.6.2/lib/python3.6/test/test_winconsoleio.py +191 -0
  1841. package/python3.6.2/lib/python3.6/test/test_winreg.py +498 -0
  1842. package/python3.6.2/lib/python3.6/test/test_winsound.py +150 -0
  1843. package/python3.6.2/lib/python3.6/test/test_with.py +746 -0
  1844. package/python3.6.2/lib/python3.6/test/test_wsgiref.py +785 -0
  1845. package/python3.6.2/lib/python3.6/test/test_xdrlib.py +77 -0
  1846. package/python3.6.2/lib/python3.6/test/test_xml_dom_minicompat.py +138 -0
  1847. package/python3.6.2/lib/python3.6/test/test_xml_etree.py +3166 -0
  1848. package/python3.6.2/lib/python3.6/test/test_xml_etree_c.py +188 -0
  1849. package/python3.6.2/lib/python3.6/test/test_xmlrpc.py +1415 -0
  1850. package/python3.6.2/lib/python3.6/test/test_xmlrpc_net.py +32 -0
  1851. package/python3.6.2/lib/python3.6/test/test_yield_from.py +1052 -0
  1852. package/python3.6.2/lib/python3.6/test/test_zipapp.py +349 -0
  1853. package/python3.6.2/lib/python3.6/test/test_zipfile.py +2241 -0
  1854. package/python3.6.2/lib/python3.6/test/test_zipfile64.py +155 -0
  1855. package/python3.6.2/lib/python3.6/test/test_zipimport.py +759 -0
  1856. package/python3.6.2/lib/python3.6/test/test_zipimport_support.py +244 -0
  1857. package/python3.6.2/lib/python3.6/test/test_zlib.py +898 -0
  1858. package/python3.6.2/lib/python3.6/test/testcodec.py +48 -0
  1859. package/python3.6.2/lib/python3.6/test/testtar.tar +0 -0
  1860. package/python3.6.2/lib/python3.6/test/tf_inherit_check.py +27 -0
  1861. package/python3.6.2/lib/python3.6/test/threaded_import_hangers.py +45 -0
  1862. package/python3.6.2/lib/python3.6/test/time_hashlib.py +88 -0
  1863. package/python3.6.2/lib/python3.6/test/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt +13 -0
  1864. package/python3.6.2/lib/python3.6/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt +11 -0
  1865. package/python3.6.2/lib/python3.6/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt +13 -0
  1866. package/python3.6.2/lib/python3.6/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt +12 -0
  1867. package/python3.6.2/lib/python3.6/test/tokenize_tests.txt +189 -0
  1868. package/python3.6.2/lib/python3.6/test/tracedmodules/__init__.py +4 -0
  1869. package/python3.6.2/lib/python3.6/test/tracedmodules/testmod.py +9 -0
  1870. package/python3.6.2/lib/python3.6/test/win_console_handler.py +49 -0
  1871. package/python3.6.2/lib/python3.6/test/wrongcert.pem +32 -0
  1872. package/python3.6.2/lib/python3.6/test/xmltestdata/expat224_utf8_bug.xml +2 -0
  1873. package/python3.6.2/lib/python3.6/test/xmltestdata/simple-ns.xml +7 -0
  1874. package/python3.6.2/lib/python3.6/test/xmltestdata/simple.xml +6 -0
  1875. package/python3.6.2/lib/python3.6/test/xmltestdata/test.xml +115 -0
  1876. package/python3.6.2/lib/python3.6/test/xmltestdata/test.xml.out +115 -0
  1877. package/python3.6.2/lib/python3.6/test/xmltests.py +21 -0
  1878. package/python3.6.2/lib/python3.6/test/zip_cp437_header.zip +0 -0
  1879. package/python3.6.2/lib/python3.6/test/zipdir.zip +0 -0
  1880. package/python3.6.2/lib/python3.6/textwrap.py +488 -0
  1881. package/python3.6.2/lib/python3.6/this.py +28 -0
  1882. package/python3.6.2/lib/python3.6/threading.py +1357 -0
  1883. package/python3.6.2/lib/python3.6/timeit.py +362 -0
  1884. package/python3.6.2/lib/python3.6/tkinter/__init__.py +4002 -0
  1885. package/python3.6.2/lib/python3.6/tkinter/__main__.py +7 -0
  1886. package/python3.6.2/lib/python3.6/tkinter/colorchooser.py +72 -0
  1887. package/python3.6.2/lib/python3.6/tkinter/commondialog.py +55 -0
  1888. package/python3.6.2/lib/python3.6/tkinter/constants.py +110 -0
  1889. package/python3.6.2/lib/python3.6/tkinter/dialog.py +46 -0
  1890. package/python3.6.2/lib/python3.6/tkinter/dnd.py +321 -0
  1891. package/python3.6.2/lib/python3.6/tkinter/filedialog.py +479 -0
  1892. package/python3.6.2/lib/python3.6/tkinter/font.py +232 -0
  1893. package/python3.6.2/lib/python3.6/tkinter/messagebox.py +134 -0
  1894. package/python3.6.2/lib/python3.6/tkinter/scrolledtext.py +54 -0
  1895. package/python3.6.2/lib/python3.6/tkinter/simpledialog.py +423 -0
  1896. package/python3.6.2/lib/python3.6/tkinter/test/README +14 -0
  1897. package/python3.6.2/lib/python3.6/tkinter/test/__init__.py +0 -0
  1898. package/python3.6.2/lib/python3.6/tkinter/test/runtktests.py +69 -0
  1899. package/python3.6.2/lib/python3.6/tkinter/test/support.py +105 -0
  1900. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/__init__.py +0 -0
  1901. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_font.py +96 -0
  1902. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_geometry_managers.py +906 -0
  1903. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_images.py +327 -0
  1904. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_loadtk.py +46 -0
  1905. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_misc.py +55 -0
  1906. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_text.py +47 -0
  1907. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_variables.py +310 -0
  1908. package/python3.6.2/lib/python3.6/tkinter/test/test_tkinter/test_widgets.py +1204 -0
  1909. package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/__init__.py +0 -0
  1910. package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/test_extensions.py +323 -0
  1911. package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/test_functions.py +461 -0
  1912. package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/test_style.py +92 -0
  1913. package/python3.6.2/lib/python3.6/tkinter/test/test_ttk/test_widgets.py +1707 -0
  1914. package/python3.6.2/lib/python3.6/tkinter/test/widget_tests.py +548 -0
  1915. package/python3.6.2/lib/python3.6/tkinter/tix.py +1946 -0
  1916. package/python3.6.2/lib/python3.6/tkinter/ttk.py +1655 -0
  1917. package/python3.6.2/lib/python3.6/token.py +143 -0
  1918. package/python3.6.2/lib/python3.6/tokenize.py +793 -0
  1919. package/python3.6.2/lib/python3.6/trace.py +742 -0
  1920. package/python3.6.2/lib/python3.6/traceback.py +600 -0
  1921. package/python3.6.2/lib/python3.6/tracemalloc.py +524 -0
  1922. package/python3.6.2/lib/python3.6/tty.py +36 -0
  1923. package/python3.6.2/lib/python3.6/turtle.py +4139 -0
  1924. package/python3.6.2/lib/python3.6/turtledemo/__init__.py +14 -0
  1925. package/python3.6.2/lib/python3.6/turtledemo/__main__.py +386 -0
  1926. package/python3.6.2/lib/python3.6/turtledemo/bytedesign.py +161 -0
  1927. package/python3.6.2/lib/python3.6/turtledemo/chaos.py +59 -0
  1928. package/python3.6.2/lib/python3.6/turtledemo/clock.py +132 -0
  1929. package/python3.6.2/lib/python3.6/turtledemo/colormixer.py +58 -0
  1930. package/python3.6.2/lib/python3.6/turtledemo/forest.py +108 -0
  1931. package/python3.6.2/lib/python3.6/turtledemo/fractalcurves.py +138 -0
  1932. package/python3.6.2/lib/python3.6/turtledemo/lindenmayer.py +119 -0
  1933. package/python3.6.2/lib/python3.6/turtledemo/minimal_hanoi.py +79 -0
  1934. package/python3.6.2/lib/python3.6/turtledemo/nim.py +226 -0
  1935. package/python3.6.2/lib/python3.6/turtledemo/paint.py +54 -0
  1936. package/python3.6.2/lib/python3.6/turtledemo/peace.py +61 -0
  1937. package/python3.6.2/lib/python3.6/turtledemo/penrose.py +181 -0
  1938. package/python3.6.2/lib/python3.6/turtledemo/planet_and_moon.py +111 -0
  1939. package/python3.6.2/lib/python3.6/turtledemo/round_dance.py +86 -0
  1940. package/python3.6.2/lib/python3.6/turtledemo/sorting_animate.py +204 -0
  1941. package/python3.6.2/lib/python3.6/turtledemo/tree.py +63 -0
  1942. package/python3.6.2/lib/python3.6/turtledemo/turtle.cfg +10 -0
  1943. package/python3.6.2/lib/python3.6/turtledemo/two_canvases.py +54 -0
  1944. package/python3.6.2/lib/python3.6/turtledemo/wikipedia.py +65 -0
  1945. package/python3.6.2/lib/python3.6/turtledemo/yinyang.py +49 -0
  1946. package/python3.6.2/lib/python3.6/types.py +266 -0
  1947. package/python3.6.2/lib/python3.6/typing.py +2403 -0
  1948. package/python3.6.2/lib/python3.6/unittest/__init__.py +78 -0
  1949. package/python3.6.2/lib/python3.6/unittest/__main__.py +18 -0
  1950. package/python3.6.2/lib/python3.6/unittest/case.py +1429 -0
  1951. package/python3.6.2/lib/python3.6/unittest/loader.py +508 -0
  1952. package/python3.6.2/lib/python3.6/unittest/main.py +260 -0
  1953. package/python3.6.2/lib/python3.6/unittest/mock.py +2407 -0
  1954. package/python3.6.2/lib/python3.6/unittest/result.py +216 -0
  1955. package/python3.6.2/lib/python3.6/unittest/runner.py +221 -0
  1956. package/python3.6.2/lib/python3.6/unittest/signals.py +71 -0
  1957. package/python3.6.2/lib/python3.6/unittest/suite.py +321 -0
  1958. package/python3.6.2/lib/python3.6/unittest/test/__init__.py +22 -0
  1959. package/python3.6.2/lib/python3.6/unittest/test/__main__.py +18 -0
  1960. package/python3.6.2/lib/python3.6/unittest/test/_test_warnings.py +73 -0
  1961. package/python3.6.2/lib/python3.6/unittest/test/dummy.py +1 -0
  1962. package/python3.6.2/lib/python3.6/unittest/test/support.py +138 -0
  1963. package/python3.6.2/lib/python3.6/unittest/test/test_assertions.py +411 -0
  1964. package/python3.6.2/lib/python3.6/unittest/test/test_break.py +291 -0
  1965. package/python3.6.2/lib/python3.6/unittest/test/test_case.py +1833 -0
  1966. package/python3.6.2/lib/python3.6/unittest/test/test_discovery.py +872 -0
  1967. package/python3.6.2/lib/python3.6/unittest/test/test_functiontestcase.py +148 -0
  1968. package/python3.6.2/lib/python3.6/unittest/test/test_loader.py +1529 -0
  1969. package/python3.6.2/lib/python3.6/unittest/test/test_program.py +414 -0
  1970. package/python3.6.2/lib/python3.6/unittest/test/test_result.py +695 -0
  1971. package/python3.6.2/lib/python3.6/unittest/test/test_runner.py +353 -0
  1972. package/python3.6.2/lib/python3.6/unittest/test/test_setups.py +507 -0
  1973. package/python3.6.2/lib/python3.6/unittest/test/test_skipping.py +260 -0
  1974. package/python3.6.2/lib/python3.6/unittest/test/test_suite.py +447 -0
  1975. package/python3.6.2/lib/python3.6/unittest/test/testmock/__init__.py +17 -0
  1976. package/python3.6.2/lib/python3.6/unittest/test/testmock/__main__.py +18 -0
  1977. package/python3.6.2/lib/python3.6/unittest/test/testmock/support.py +21 -0
  1978. package/python3.6.2/lib/python3.6/unittest/test/testmock/testcallable.py +151 -0
  1979. package/python3.6.2/lib/python3.6/unittest/test/testmock/testhelpers.py +946 -0
  1980. package/python3.6.2/lib/python3.6/unittest/test/testmock/testmagicmethods.py +468 -0
  1981. package/python3.6.2/lib/python3.6/unittest/test/testmock/testmock.py +1569 -0
  1982. package/python3.6.2/lib/python3.6/unittest/test/testmock/testpatch.py +1853 -0
  1983. package/python3.6.2/lib/python3.6/unittest/test/testmock/testsentinel.py +28 -0
  1984. package/python3.6.2/lib/python3.6/unittest/test/testmock/testwith.py +301 -0
  1985. package/python3.6.2/lib/python3.6/unittest/util.py +177 -0
  1986. package/python3.6.2/lib/python3.6/urllib/__init__.py +0 -0
  1987. package/python3.6.2/lib/python3.6/urllib/error.py +77 -0
  1988. package/python3.6.2/lib/python3.6/urllib/parse.py +1021 -0
  1989. package/python3.6.2/lib/python3.6/urllib/request.py +2739 -0
  1990. package/python3.6.2/lib/python3.6/urllib/response.py +80 -0
  1991. package/python3.6.2/lib/python3.6/urllib/robotparser.py +250 -0
  1992. package/python3.6.2/lib/python3.6/uu.py +199 -0
  1993. package/python3.6.2/lib/python3.6/uuid.py +629 -0
  1994. package/python3.6.2/lib/python3.6/venv/__init__.py +425 -0
  1995. package/python3.6.2/lib/python3.6/venv/__main__.py +10 -0
  1996. package/python3.6.2/lib/python3.6/venv/scripts/nt/Activate.ps1 +51 -0
  1997. package/python3.6.2/lib/python3.6/venv/scripts/nt/activate.bat +32 -0
  1998. package/python3.6.2/lib/python3.6/venv/scripts/nt/deactivate.bat +21 -0
  1999. package/python3.6.2/lib/python3.6/warnings.py +526 -0
  2000. package/python3.6.2/lib/python3.6/wave.py +505 -0
  2001. package/python3.6.2/lib/python3.6/weakref.py +632 -0
  2002. package/python3.6.2/lib/python3.6/webbrowser.py +664 -0
  2003. package/python3.6.2/lib/python3.6/wsgiref/__init__.py +23 -0
  2004. package/python3.6.2/lib/python3.6/wsgiref/handlers.py +557 -0
  2005. package/python3.6.2/lib/python3.6/wsgiref/headers.py +184 -0
  2006. package/python3.6.2/lib/python3.6/wsgiref/simple_server.py +164 -0
  2007. package/python3.6.2/lib/python3.6/wsgiref/util.py +165 -0
  2008. package/python3.6.2/lib/python3.6/wsgiref/validate.py +443 -0
  2009. package/python3.6.2/lib/python3.6/xdrlib.py +241 -0
  2010. package/python3.6.2/lib/python3.6/xml/__init__.py +20 -0
  2011. package/python3.6.2/lib/python3.6/xml/dom/NodeFilter.py +27 -0
  2012. package/python3.6.2/lib/python3.6/xml/dom/__init__.py +140 -0
  2013. package/python3.6.2/lib/python3.6/xml/dom/domreg.py +97 -0
  2014. package/python3.6.2/lib/python3.6/xml/dom/expatbuilder.py +965 -0
  2015. package/python3.6.2/lib/python3.6/xml/dom/minicompat.py +109 -0
  2016. package/python3.6.2/lib/python3.6/xml/dom/minidom.py +1981 -0
  2017. package/python3.6.2/lib/python3.6/xml/dom/pulldom.py +342 -0
  2018. package/python3.6.2/lib/python3.6/xml/dom/xmlbuilder.py +410 -0
  2019. package/python3.6.2/lib/python3.6/xml/etree/ElementInclude.py +143 -0
  2020. package/python3.6.2/lib/python3.6/xml/etree/ElementPath.py +314 -0
  2021. package/python3.6.2/lib/python3.6/xml/etree/ElementTree.py +1656 -0
  2022. package/python3.6.2/lib/python3.6/xml/etree/__init__.py +33 -0
  2023. package/python3.6.2/lib/python3.6/xml/etree/cElementTree.py +3 -0
  2024. package/python3.6.2/lib/python3.6/xml/parsers/__init__.py +8 -0
  2025. package/python3.6.2/lib/python3.6/xml/parsers/expat.py +8 -0
  2026. package/python3.6.2/lib/python3.6/xml/sax/__init__.py +107 -0
  2027. package/python3.6.2/lib/python3.6/xml/sax/_exceptions.py +131 -0
  2028. package/python3.6.2/lib/python3.6/xml/sax/expatreader.py +446 -0
  2029. package/python3.6.2/lib/python3.6/xml/sax/handler.py +342 -0
  2030. package/python3.6.2/lib/python3.6/xml/sax/saxutils.py +368 -0
  2031. package/python3.6.2/lib/python3.6/xml/sax/xmlreader.py +380 -0
  2032. package/python3.6.2/lib/python3.6/xmlrpc/__init__.py +1 -0
  2033. package/python3.6.2/lib/python3.6/xmlrpc/client.py +1518 -0
  2034. package/python3.6.2/lib/python3.6/xmlrpc/server.py +1002 -0
  2035. package/python3.6.2/lib/python3.6/zipapp.py +201 -0
  2036. package/python3.6.2/lib/python3.6/zipfile.py +2036 -0
  2037. package/python3.6.2/lib/python3.6/LICENSE.txt +0 -254
  2038. package/python3.6.2/lib/python3.6/__future__.pyc +0 -0
  2039. package/python3.6.2/lib/python3.6/__phello__.foo.pyc +0 -0
  2040. package/python3.6.2/lib/python3.6/_bootlocale.pyc +0 -0
  2041. package/python3.6.2/lib/python3.6/_collections_abc.pyc +0 -0
  2042. package/python3.6.2/lib/python3.6/_compat_pickle.pyc +0 -0
  2043. package/python3.6.2/lib/python3.6/_compression.pyc +0 -0
  2044. package/python3.6.2/lib/python3.6/_dummy_thread.pyc +0 -0
  2045. package/python3.6.2/lib/python3.6/_markupbase.pyc +0 -0
  2046. package/python3.6.2/lib/python3.6/_osx_support.pyc +0 -0
  2047. package/python3.6.2/lib/python3.6/_pydecimal.pyc +0 -0
  2048. package/python3.6.2/lib/python3.6/_pyio.pyc +0 -0
  2049. package/python3.6.2/lib/python3.6/_sitebuiltins.pyc +0 -0
  2050. package/python3.6.2/lib/python3.6/_strptime.pyc +0 -0
  2051. package/python3.6.2/lib/python3.6/_threading_local.pyc +0 -0
  2052. package/python3.6.2/lib/python3.6/_weakrefset.pyc +0 -0
  2053. package/python3.6.2/lib/python3.6/abc.pyc +0 -0
  2054. package/python3.6.2/lib/python3.6/aifc.pyc +0 -0
  2055. package/python3.6.2/lib/python3.6/android.pyc +0 -0
  2056. package/python3.6.2/lib/python3.6/antigravity.pyc +0 -0
  2057. package/python3.6.2/lib/python3.6/argparse.pyc +0 -0
  2058. package/python3.6.2/lib/python3.6/ast.pyc +0 -0
  2059. package/python3.6.2/lib/python3.6/asynchat.pyc +0 -0
  2060. package/python3.6.2/lib/python3.6/asyncio/__init__.pyc +0 -0
  2061. package/python3.6.2/lib/python3.6/asyncio/base_events.pyc +0 -0
  2062. package/python3.6.2/lib/python3.6/asyncio/base_futures.pyc +0 -0
  2063. package/python3.6.2/lib/python3.6/asyncio/base_subprocess.pyc +0 -0
  2064. package/python3.6.2/lib/python3.6/asyncio/base_tasks.pyc +0 -0
  2065. package/python3.6.2/lib/python3.6/asyncio/compat.pyc +0 -0
  2066. package/python3.6.2/lib/python3.6/asyncio/constants.pyc +0 -0
  2067. package/python3.6.2/lib/python3.6/asyncio/coroutines.pyc +0 -0
  2068. package/python3.6.2/lib/python3.6/asyncio/events.pyc +0 -0
  2069. package/python3.6.2/lib/python3.6/asyncio/futures.pyc +0 -0
  2070. package/python3.6.2/lib/python3.6/asyncio/locks.pyc +0 -0
  2071. package/python3.6.2/lib/python3.6/asyncio/log.pyc +0 -0
  2072. package/python3.6.2/lib/python3.6/asyncio/proactor_events.pyc +0 -0
  2073. package/python3.6.2/lib/python3.6/asyncio/protocols.pyc +0 -0
  2074. package/python3.6.2/lib/python3.6/asyncio/queues.pyc +0 -0
  2075. package/python3.6.2/lib/python3.6/asyncio/selector_events.pyc +0 -0
  2076. package/python3.6.2/lib/python3.6/asyncio/sslproto.pyc +0 -0
  2077. package/python3.6.2/lib/python3.6/asyncio/streams.pyc +0 -0
  2078. package/python3.6.2/lib/python3.6/asyncio/subprocess.pyc +0 -0
  2079. package/python3.6.2/lib/python3.6/asyncio/tasks.pyc +0 -0
  2080. package/python3.6.2/lib/python3.6/asyncio/test_utils.pyc +0 -0
  2081. package/python3.6.2/lib/python3.6/asyncio/transports.pyc +0 -0
  2082. package/python3.6.2/lib/python3.6/asyncio/unix_events.pyc +0 -0
  2083. package/python3.6.2/lib/python3.6/asyncio/windows_events.pyc +0 -0
  2084. package/python3.6.2/lib/python3.6/asyncio/windows_utils.pyc +0 -0
  2085. package/python3.6.2/lib/python3.6/asyncore.pyc +0 -0
  2086. package/python3.6.2/lib/python3.6/base64.pyc +0 -0
  2087. package/python3.6.2/lib/python3.6/bdb.pyc +0 -0
  2088. package/python3.6.2/lib/python3.6/binhex.pyc +0 -0
  2089. package/python3.6.2/lib/python3.6/bisect.pyc +0 -0
  2090. package/python3.6.2/lib/python3.6/bz2.pyc +0 -0
  2091. package/python3.6.2/lib/python3.6/cProfile.pyc +0 -0
  2092. package/python3.6.2/lib/python3.6/calendar.pyc +0 -0
  2093. package/python3.6.2/lib/python3.6/cgi.pyc +0 -0
  2094. package/python3.6.2/lib/python3.6/cgitb.pyc +0 -0
  2095. package/python3.6.2/lib/python3.6/chunk.pyc +0 -0
  2096. package/python3.6.2/lib/python3.6/cmd.pyc +0 -0
  2097. package/python3.6.2/lib/python3.6/code.pyc +0 -0
  2098. package/python3.6.2/lib/python3.6/codecs.pyc +0 -0
  2099. package/python3.6.2/lib/python3.6/codeop.pyc +0 -0
  2100. package/python3.6.2/lib/python3.6/collections/__init__.pyc +0 -0
  2101. package/python3.6.2/lib/python3.6/collections/abc.pyc +0 -0
  2102. package/python3.6.2/lib/python3.6/colorsys.pyc +0 -0
  2103. package/python3.6.2/lib/python3.6/compileall.pyc +0 -0
  2104. package/python3.6.2/lib/python3.6/concurrent/__init__.pyc +0 -0
  2105. package/python3.6.2/lib/python3.6/concurrent/futures/__init__.pyc +0 -0
  2106. package/python3.6.2/lib/python3.6/concurrent/futures/_base.pyc +0 -0
  2107. package/python3.6.2/lib/python3.6/concurrent/futures/process.pyc +0 -0
  2108. package/python3.6.2/lib/python3.6/concurrent/futures/thread.pyc +0 -0
  2109. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/Makefile +0 -1808
  2110. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/Setup +0 -397
  2111. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/Setup.config +0 -10
  2112. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/Setup.local +0 -1
  2113. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/config.c +0 -114
  2114. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/config.c.in +0 -67
  2115. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/install-sh +0 -294
  2116. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/makesetup +0 -296
  2117. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/python-config.pyc +0 -0
  2118. package/python3.6.2/lib/python3.6/config-3.6m-arm-linux-androideabi/python.o +0 -0
  2119. package/python3.6.2/lib/python3.6/configparser.pyc +0 -0
  2120. package/python3.6.2/lib/python3.6/contextlib.pyc +0 -0
  2121. package/python3.6.2/lib/python3.6/copy.pyc +0 -0
  2122. package/python3.6.2/lib/python3.6/copyreg.pyc +0 -0
  2123. package/python3.6.2/lib/python3.6/crypt.pyc +0 -0
  2124. package/python3.6.2/lib/python3.6/csv.pyc +0 -0
  2125. package/python3.6.2/lib/python3.6/ctypes/__init__.pyc +0 -0
  2126. package/python3.6.2/lib/python3.6/ctypes/_endian.pyc +0 -0
  2127. package/python3.6.2/lib/python3.6/ctypes/macholib/__init__.pyc +0 -0
  2128. package/python3.6.2/lib/python3.6/ctypes/macholib/dyld.pyc +0 -0
  2129. package/python3.6.2/lib/python3.6/ctypes/macholib/dylib.pyc +0 -0
  2130. package/python3.6.2/lib/python3.6/ctypes/macholib/framework.pyc +0 -0
  2131. package/python3.6.2/lib/python3.6/ctypes/util.pyc +0 -0
  2132. package/python3.6.2/lib/python3.6/ctypes/wintypes.pyc +0 -0
  2133. package/python3.6.2/lib/python3.6/curses/__init__.pyc +0 -0
  2134. package/python3.6.2/lib/python3.6/curses/ascii.pyc +0 -0
  2135. package/python3.6.2/lib/python3.6/curses/has_key.pyc +0 -0
  2136. package/python3.6.2/lib/python3.6/curses/panel.pyc +0 -0
  2137. package/python3.6.2/lib/python3.6/curses/textpad.pyc +0 -0
  2138. package/python3.6.2/lib/python3.6/datetime.pyc +0 -0
  2139. package/python3.6.2/lib/python3.6/dbm/__init__.pyc +0 -0
  2140. package/python3.6.2/lib/python3.6/dbm/dumb.pyc +0 -0
  2141. package/python3.6.2/lib/python3.6/dbm/gnu.pyc +0 -0
  2142. package/python3.6.2/lib/python3.6/dbm/ndbm.pyc +0 -0
  2143. package/python3.6.2/lib/python3.6/decimal.pyc +0 -0
  2144. package/python3.6.2/lib/python3.6/difflib.pyc +0 -0
  2145. package/python3.6.2/lib/python3.6/dis.pyc +0 -0
  2146. package/python3.6.2/lib/python3.6/distutils/__init__.pyc +0 -0
  2147. package/python3.6.2/lib/python3.6/distutils/_msvccompiler.pyc +0 -0
  2148. package/python3.6.2/lib/python3.6/distutils/archive_util.pyc +0 -0
  2149. package/python3.6.2/lib/python3.6/distutils/bcppcompiler.pyc +0 -0
  2150. package/python3.6.2/lib/python3.6/distutils/ccompiler.pyc +0 -0
  2151. package/python3.6.2/lib/python3.6/distutils/cmd.pyc +0 -0
  2152. package/python3.6.2/lib/python3.6/distutils/command/__init__.pyc +0 -0
  2153. package/python3.6.2/lib/python3.6/distutils/command/bdist.pyc +0 -0
  2154. package/python3.6.2/lib/python3.6/distutils/command/bdist_dumb.pyc +0 -0
  2155. package/python3.6.2/lib/python3.6/distutils/command/bdist_msi.pyc +0 -0
  2156. package/python3.6.2/lib/python3.6/distutils/command/bdist_rpm.pyc +0 -0
  2157. package/python3.6.2/lib/python3.6/distutils/command/bdist_wininst.pyc +0 -0
  2158. package/python3.6.2/lib/python3.6/distutils/command/build.pyc +0 -0
  2159. package/python3.6.2/lib/python3.6/distutils/command/build_clib.pyc +0 -0
  2160. package/python3.6.2/lib/python3.6/distutils/command/build_ext.pyc +0 -0
  2161. package/python3.6.2/lib/python3.6/distutils/command/build_py.pyc +0 -0
  2162. package/python3.6.2/lib/python3.6/distutils/command/build_scripts.pyc +0 -0
  2163. package/python3.6.2/lib/python3.6/distutils/command/check.pyc +0 -0
  2164. package/python3.6.2/lib/python3.6/distutils/command/clean.pyc +0 -0
  2165. package/python3.6.2/lib/python3.6/distutils/command/config.pyc +0 -0
  2166. package/python3.6.2/lib/python3.6/distutils/command/install.pyc +0 -0
  2167. package/python3.6.2/lib/python3.6/distutils/command/install_data.pyc +0 -0
  2168. package/python3.6.2/lib/python3.6/distutils/command/install_egg_info.pyc +0 -0
  2169. package/python3.6.2/lib/python3.6/distutils/command/install_headers.pyc +0 -0
  2170. package/python3.6.2/lib/python3.6/distutils/command/install_lib.pyc +0 -0
  2171. package/python3.6.2/lib/python3.6/distutils/command/install_scripts.pyc +0 -0
  2172. package/python3.6.2/lib/python3.6/distutils/command/register.pyc +0 -0
  2173. package/python3.6.2/lib/python3.6/distutils/command/sdist.pyc +0 -0
  2174. package/python3.6.2/lib/python3.6/distutils/command/upload.pyc +0 -0
  2175. package/python3.6.2/lib/python3.6/distutils/config.pyc +0 -0
  2176. package/python3.6.2/lib/python3.6/distutils/core.pyc +0 -0
  2177. package/python3.6.2/lib/python3.6/distutils/cygwinccompiler.pyc +0 -0
  2178. package/python3.6.2/lib/python3.6/distutils/debug.pyc +0 -0
  2179. package/python3.6.2/lib/python3.6/distutils/dep_util.pyc +0 -0
  2180. package/python3.6.2/lib/python3.6/distutils/dir_util.pyc +0 -0
  2181. package/python3.6.2/lib/python3.6/distutils/dist.pyc +0 -0
  2182. package/python3.6.2/lib/python3.6/distutils/errors.pyc +0 -0
  2183. package/python3.6.2/lib/python3.6/distutils/extension.pyc +0 -0
  2184. package/python3.6.2/lib/python3.6/distutils/fancy_getopt.pyc +0 -0
  2185. package/python3.6.2/lib/python3.6/distutils/file_util.pyc +0 -0
  2186. package/python3.6.2/lib/python3.6/distutils/filelist.pyc +0 -0
  2187. package/python3.6.2/lib/python3.6/distutils/log.pyc +0 -0
  2188. package/python3.6.2/lib/python3.6/distutils/msvc9compiler.pyc +0 -0
  2189. package/python3.6.2/lib/python3.6/distutils/msvccompiler.pyc +0 -0
  2190. package/python3.6.2/lib/python3.6/distutils/spawn.pyc +0 -0
  2191. package/python3.6.2/lib/python3.6/distutils/sysconfig.pyc +0 -0
  2192. package/python3.6.2/lib/python3.6/distutils/text_file.pyc +0 -0
  2193. package/python3.6.2/lib/python3.6/distutils/unixccompiler.pyc +0 -0
  2194. package/python3.6.2/lib/python3.6/distutils/util.pyc +0 -0
  2195. package/python3.6.2/lib/python3.6/distutils/version.pyc +0 -0
  2196. package/python3.6.2/lib/python3.6/distutils/versionpredicate.pyc +0 -0
  2197. package/python3.6.2/lib/python3.6/doctest.pyc +0 -0
  2198. package/python3.6.2/lib/python3.6/dummy_threading.pyc +0 -0
  2199. package/python3.6.2/lib/python3.6/email/__init__.pyc +0 -0
  2200. package/python3.6.2/lib/python3.6/email/_encoded_words.pyc +0 -0
  2201. package/python3.6.2/lib/python3.6/email/_header_value_parser.pyc +0 -0
  2202. package/python3.6.2/lib/python3.6/email/_parseaddr.pyc +0 -0
  2203. package/python3.6.2/lib/python3.6/email/_policybase.pyc +0 -0
  2204. package/python3.6.2/lib/python3.6/email/base64mime.pyc +0 -0
  2205. package/python3.6.2/lib/python3.6/email/charset.pyc +0 -0
  2206. package/python3.6.2/lib/python3.6/email/contentmanager.pyc +0 -0
  2207. package/python3.6.2/lib/python3.6/email/encoders.pyc +0 -0
  2208. package/python3.6.2/lib/python3.6/email/errors.pyc +0 -0
  2209. package/python3.6.2/lib/python3.6/email/feedparser.pyc +0 -0
  2210. package/python3.6.2/lib/python3.6/email/generator.pyc +0 -0
  2211. package/python3.6.2/lib/python3.6/email/header.pyc +0 -0
  2212. package/python3.6.2/lib/python3.6/email/headerregistry.pyc +0 -0
  2213. package/python3.6.2/lib/python3.6/email/iterators.pyc +0 -0
  2214. package/python3.6.2/lib/python3.6/email/message.pyc +0 -0
  2215. package/python3.6.2/lib/python3.6/email/mime/__init__.pyc +0 -0
  2216. package/python3.6.2/lib/python3.6/email/mime/application.pyc +0 -0
  2217. package/python3.6.2/lib/python3.6/email/mime/audio.pyc +0 -0
  2218. package/python3.6.2/lib/python3.6/email/mime/base.pyc +0 -0
  2219. package/python3.6.2/lib/python3.6/email/mime/image.pyc +0 -0
  2220. package/python3.6.2/lib/python3.6/email/mime/message.pyc +0 -0
  2221. package/python3.6.2/lib/python3.6/email/mime/multipart.pyc +0 -0
  2222. package/python3.6.2/lib/python3.6/email/mime/nonmultipart.pyc +0 -0
  2223. package/python3.6.2/lib/python3.6/email/mime/text.pyc +0 -0
  2224. package/python3.6.2/lib/python3.6/email/parser.pyc +0 -0
  2225. package/python3.6.2/lib/python3.6/email/policy.pyc +0 -0
  2226. package/python3.6.2/lib/python3.6/email/quoprimime.pyc +0 -0
  2227. package/python3.6.2/lib/python3.6/email/utils.pyc +0 -0
  2228. package/python3.6.2/lib/python3.6/encodings/__init__.pyc +0 -0
  2229. package/python3.6.2/lib/python3.6/encodings/aliases.pyc +0 -0
  2230. package/python3.6.2/lib/python3.6/encodings/ascii.pyc +0 -0
  2231. package/python3.6.2/lib/python3.6/encodings/base64_codec.pyc +0 -0
  2232. package/python3.6.2/lib/python3.6/encodings/big5.pyc +0 -0
  2233. package/python3.6.2/lib/python3.6/encodings/big5hkscs.pyc +0 -0
  2234. package/python3.6.2/lib/python3.6/encodings/bz2_codec.pyc +0 -0
  2235. package/python3.6.2/lib/python3.6/encodings/charmap.pyc +0 -0
  2236. package/python3.6.2/lib/python3.6/encodings/cp037.pyc +0 -0
  2237. package/python3.6.2/lib/python3.6/encodings/cp1006.pyc +0 -0
  2238. package/python3.6.2/lib/python3.6/encodings/cp1026.pyc +0 -0
  2239. package/python3.6.2/lib/python3.6/encodings/cp1125.pyc +0 -0
  2240. package/python3.6.2/lib/python3.6/encodings/cp1140.pyc +0 -0
  2241. package/python3.6.2/lib/python3.6/encodings/cp1250.pyc +0 -0
  2242. package/python3.6.2/lib/python3.6/encodings/cp1251.pyc +0 -0
  2243. package/python3.6.2/lib/python3.6/encodings/cp1252.pyc +0 -0
  2244. package/python3.6.2/lib/python3.6/encodings/cp1253.pyc +0 -0
  2245. package/python3.6.2/lib/python3.6/encodings/cp1254.pyc +0 -0
  2246. package/python3.6.2/lib/python3.6/encodings/cp1255.pyc +0 -0
  2247. package/python3.6.2/lib/python3.6/encodings/cp1256.pyc +0 -0
  2248. package/python3.6.2/lib/python3.6/encodings/cp1257.pyc +0 -0
  2249. package/python3.6.2/lib/python3.6/encodings/cp1258.pyc +0 -0
  2250. package/python3.6.2/lib/python3.6/encodings/cp273.pyc +0 -0
  2251. package/python3.6.2/lib/python3.6/encodings/cp424.pyc +0 -0
  2252. package/python3.6.2/lib/python3.6/encodings/cp437.pyc +0 -0
  2253. package/python3.6.2/lib/python3.6/encodings/cp500.pyc +0 -0
  2254. package/python3.6.2/lib/python3.6/encodings/cp65001.pyc +0 -0
  2255. package/python3.6.2/lib/python3.6/encodings/cp720.pyc +0 -0
  2256. package/python3.6.2/lib/python3.6/encodings/cp737.pyc +0 -0
  2257. package/python3.6.2/lib/python3.6/encodings/cp775.pyc +0 -0
  2258. package/python3.6.2/lib/python3.6/encodings/cp850.pyc +0 -0
  2259. package/python3.6.2/lib/python3.6/encodings/cp852.pyc +0 -0
  2260. package/python3.6.2/lib/python3.6/encodings/cp855.pyc +0 -0
  2261. package/python3.6.2/lib/python3.6/encodings/cp856.pyc +0 -0
  2262. package/python3.6.2/lib/python3.6/encodings/cp857.pyc +0 -0
  2263. package/python3.6.2/lib/python3.6/encodings/cp858.pyc +0 -0
  2264. package/python3.6.2/lib/python3.6/encodings/cp860.pyc +0 -0
  2265. package/python3.6.2/lib/python3.6/encodings/cp861.pyc +0 -0
  2266. package/python3.6.2/lib/python3.6/encodings/cp862.pyc +0 -0
  2267. package/python3.6.2/lib/python3.6/encodings/cp863.pyc +0 -0
  2268. package/python3.6.2/lib/python3.6/encodings/cp864.pyc +0 -0
  2269. package/python3.6.2/lib/python3.6/encodings/cp865.pyc +0 -0
  2270. package/python3.6.2/lib/python3.6/encodings/cp866.pyc +0 -0
  2271. package/python3.6.2/lib/python3.6/encodings/cp869.pyc +0 -0
  2272. package/python3.6.2/lib/python3.6/encodings/cp874.pyc +0 -0
  2273. package/python3.6.2/lib/python3.6/encodings/cp875.pyc +0 -0
  2274. package/python3.6.2/lib/python3.6/encodings/cp932.pyc +0 -0
  2275. package/python3.6.2/lib/python3.6/encodings/cp949.pyc +0 -0
  2276. package/python3.6.2/lib/python3.6/encodings/cp950.pyc +0 -0
  2277. package/python3.6.2/lib/python3.6/encodings/euc_jis_2004.pyc +0 -0
  2278. package/python3.6.2/lib/python3.6/encodings/euc_jisx0213.pyc +0 -0
  2279. package/python3.6.2/lib/python3.6/encodings/euc_jp.pyc +0 -0
  2280. package/python3.6.2/lib/python3.6/encodings/euc_kr.pyc +0 -0
  2281. package/python3.6.2/lib/python3.6/encodings/gb18030.pyc +0 -0
  2282. package/python3.6.2/lib/python3.6/encodings/gb2312.pyc +0 -0
  2283. package/python3.6.2/lib/python3.6/encodings/gbk.pyc +0 -0
  2284. package/python3.6.2/lib/python3.6/encodings/hex_codec.pyc +0 -0
  2285. package/python3.6.2/lib/python3.6/encodings/hp_roman8.pyc +0 -0
  2286. package/python3.6.2/lib/python3.6/encodings/hz.pyc +0 -0
  2287. package/python3.6.2/lib/python3.6/encodings/idna.pyc +0 -0
  2288. package/python3.6.2/lib/python3.6/encodings/iso2022_jp.pyc +0 -0
  2289. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_1.pyc +0 -0
  2290. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_2.pyc +0 -0
  2291. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_2004.pyc +0 -0
  2292. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_3.pyc +0 -0
  2293. package/python3.6.2/lib/python3.6/encodings/iso2022_jp_ext.pyc +0 -0
  2294. package/python3.6.2/lib/python3.6/encodings/iso2022_kr.pyc +0 -0
  2295. package/python3.6.2/lib/python3.6/encodings/iso8859_1.pyc +0 -0
  2296. package/python3.6.2/lib/python3.6/encodings/iso8859_10.pyc +0 -0
  2297. package/python3.6.2/lib/python3.6/encodings/iso8859_11.pyc +0 -0
  2298. package/python3.6.2/lib/python3.6/encodings/iso8859_13.pyc +0 -0
  2299. package/python3.6.2/lib/python3.6/encodings/iso8859_14.pyc +0 -0
  2300. package/python3.6.2/lib/python3.6/encodings/iso8859_15.pyc +0 -0
  2301. package/python3.6.2/lib/python3.6/encodings/iso8859_16.pyc +0 -0
  2302. package/python3.6.2/lib/python3.6/encodings/iso8859_2.pyc +0 -0
  2303. package/python3.6.2/lib/python3.6/encodings/iso8859_3.pyc +0 -0
  2304. package/python3.6.2/lib/python3.6/encodings/iso8859_4.pyc +0 -0
  2305. package/python3.6.2/lib/python3.6/encodings/iso8859_5.pyc +0 -0
  2306. package/python3.6.2/lib/python3.6/encodings/iso8859_6.pyc +0 -0
  2307. package/python3.6.2/lib/python3.6/encodings/iso8859_7.pyc +0 -0
  2308. package/python3.6.2/lib/python3.6/encodings/iso8859_8.pyc +0 -0
  2309. package/python3.6.2/lib/python3.6/encodings/iso8859_9.pyc +0 -0
  2310. package/python3.6.2/lib/python3.6/encodings/johab.pyc +0 -0
  2311. package/python3.6.2/lib/python3.6/encodings/koi8_r.pyc +0 -0
  2312. package/python3.6.2/lib/python3.6/encodings/koi8_t.pyc +0 -0
  2313. package/python3.6.2/lib/python3.6/encodings/koi8_u.pyc +0 -0
  2314. package/python3.6.2/lib/python3.6/encodings/kz1048.pyc +0 -0
  2315. package/python3.6.2/lib/python3.6/encodings/latin_1.pyc +0 -0
  2316. package/python3.6.2/lib/python3.6/encodings/mac_arabic.pyc +0 -0
  2317. package/python3.6.2/lib/python3.6/encodings/mac_centeuro.pyc +0 -0
  2318. package/python3.6.2/lib/python3.6/encodings/mac_croatian.pyc +0 -0
  2319. package/python3.6.2/lib/python3.6/encodings/mac_cyrillic.pyc +0 -0
  2320. package/python3.6.2/lib/python3.6/encodings/mac_farsi.pyc +0 -0
  2321. package/python3.6.2/lib/python3.6/encodings/mac_greek.pyc +0 -0
  2322. package/python3.6.2/lib/python3.6/encodings/mac_iceland.pyc +0 -0
  2323. package/python3.6.2/lib/python3.6/encodings/mac_latin2.pyc +0 -0
  2324. package/python3.6.2/lib/python3.6/encodings/mac_roman.pyc +0 -0
  2325. package/python3.6.2/lib/python3.6/encodings/mac_romanian.pyc +0 -0
  2326. package/python3.6.2/lib/python3.6/encodings/mac_turkish.pyc +0 -0
  2327. package/python3.6.2/lib/python3.6/encodings/mbcs.pyc +0 -0
  2328. package/python3.6.2/lib/python3.6/encodings/oem.pyc +0 -0
  2329. package/python3.6.2/lib/python3.6/encodings/palmos.pyc +0 -0
  2330. package/python3.6.2/lib/python3.6/encodings/ptcp154.pyc +0 -0
  2331. package/python3.6.2/lib/python3.6/encodings/punycode.pyc +0 -0
  2332. package/python3.6.2/lib/python3.6/encodings/quopri_codec.pyc +0 -0
  2333. package/python3.6.2/lib/python3.6/encodings/raw_unicode_escape.pyc +0 -0
  2334. package/python3.6.2/lib/python3.6/encodings/rot_13.pyc +0 -0
  2335. package/python3.6.2/lib/python3.6/encodings/shift_jis.pyc +0 -0
  2336. package/python3.6.2/lib/python3.6/encodings/shift_jis_2004.pyc +0 -0
  2337. package/python3.6.2/lib/python3.6/encodings/shift_jisx0213.pyc +0 -0
  2338. package/python3.6.2/lib/python3.6/encodings/tis_620.pyc +0 -0
  2339. package/python3.6.2/lib/python3.6/encodings/undefined.pyc +0 -0
  2340. package/python3.6.2/lib/python3.6/encodings/unicode_escape.pyc +0 -0
  2341. package/python3.6.2/lib/python3.6/encodings/unicode_internal.pyc +0 -0
  2342. package/python3.6.2/lib/python3.6/encodings/utf_16.pyc +0 -0
  2343. package/python3.6.2/lib/python3.6/encodings/utf_16_be.pyc +0 -0
  2344. package/python3.6.2/lib/python3.6/encodings/utf_16_le.pyc +0 -0
  2345. package/python3.6.2/lib/python3.6/encodings/utf_32.pyc +0 -0
  2346. package/python3.6.2/lib/python3.6/encodings/utf_32_be.pyc +0 -0
  2347. package/python3.6.2/lib/python3.6/encodings/utf_32_le.pyc +0 -0
  2348. package/python3.6.2/lib/python3.6/encodings/utf_7.pyc +0 -0
  2349. package/python3.6.2/lib/python3.6/encodings/utf_8.pyc +0 -0
  2350. package/python3.6.2/lib/python3.6/encodings/utf_8_sig.pyc +0 -0
  2351. package/python3.6.2/lib/python3.6/encodings/uu_codec.pyc +0 -0
  2352. package/python3.6.2/lib/python3.6/encodings/zlib_codec.pyc +0 -0
  2353. package/python3.6.2/lib/python3.6/ensurepip/__init__.pyc +0 -0
  2354. package/python3.6.2/lib/python3.6/ensurepip/__main__.pyc +0 -0
  2355. package/python3.6.2/lib/python3.6/ensurepip/_uninstall.pyc +0 -0
  2356. package/python3.6.2/lib/python3.6/enum.pyc +0 -0
  2357. package/python3.6.2/lib/python3.6/filecmp.pyc +0 -0
  2358. package/python3.6.2/lib/python3.6/fileinput.pyc +0 -0
  2359. package/python3.6.2/lib/python3.6/fnmatch.pyc +0 -0
  2360. package/python3.6.2/lib/python3.6/formatter.pyc +0 -0
  2361. package/python3.6.2/lib/python3.6/fractions.pyc +0 -0
  2362. package/python3.6.2/lib/python3.6/ftplib.pyc +0 -0
  2363. package/python3.6.2/lib/python3.6/functools.pyc +0 -0
  2364. package/python3.6.2/lib/python3.6/genericpath.pyc +0 -0
  2365. package/python3.6.2/lib/python3.6/getopt.pyc +0 -0
  2366. package/python3.6.2/lib/python3.6/getpass.pyc +0 -0
  2367. package/python3.6.2/lib/python3.6/gettext.pyc +0 -0
  2368. package/python3.6.2/lib/python3.6/glob.pyc +0 -0
  2369. package/python3.6.2/lib/python3.6/gzip.pyc +0 -0
  2370. package/python3.6.2/lib/python3.6/hashlib.pyc +0 -0
  2371. package/python3.6.2/lib/python3.6/heapq.pyc +0 -0
  2372. package/python3.6.2/lib/python3.6/hmac.pyc +0 -0
  2373. package/python3.6.2/lib/python3.6/html/__init__.pyc +0 -0
  2374. package/python3.6.2/lib/python3.6/html/entities.pyc +0 -0
  2375. package/python3.6.2/lib/python3.6/html/parser.pyc +0 -0
  2376. package/python3.6.2/lib/python3.6/http/__init__.pyc +0 -0
  2377. package/python3.6.2/lib/python3.6/http/client.pyc +0 -0
  2378. package/python3.6.2/lib/python3.6/http/cookiejar.pyc +0 -0
  2379. package/python3.6.2/lib/python3.6/http/cookies.pyc +0 -0
  2380. package/python3.6.2/lib/python3.6/http/server.pyc +0 -0
  2381. package/python3.6.2/lib/python3.6/imaplib.pyc +0 -0
  2382. package/python3.6.2/lib/python3.6/imghdr.pyc +0 -0
  2383. package/python3.6.2/lib/python3.6/imp.pyc +0 -0
  2384. package/python3.6.2/lib/python3.6/importlib/__init__.pyc +0 -0
  2385. package/python3.6.2/lib/python3.6/importlib/_bootstrap.pyc +0 -0
  2386. package/python3.6.2/lib/python3.6/importlib/_bootstrap_external.pyc +0 -0
  2387. package/python3.6.2/lib/python3.6/importlib/abc.pyc +0 -0
  2388. package/python3.6.2/lib/python3.6/importlib/machinery.pyc +0 -0
  2389. package/python3.6.2/lib/python3.6/importlib/util.pyc +0 -0
  2390. package/python3.6.2/lib/python3.6/inspect.pyc +0 -0
  2391. package/python3.6.2/lib/python3.6/io.pyc +0 -0
  2392. package/python3.6.2/lib/python3.6/ipaddress.pyc +0 -0
  2393. package/python3.6.2/lib/python3.6/json/__init__.pyc +0 -0
  2394. package/python3.6.2/lib/python3.6/json/decoder.pyc +0 -0
  2395. package/python3.6.2/lib/python3.6/json/encoder.pyc +0 -0
  2396. package/python3.6.2/lib/python3.6/json/scanner.pyc +0 -0
  2397. package/python3.6.2/lib/python3.6/json/tool.pyc +0 -0
  2398. package/python3.6.2/lib/python3.6/keyword.pyc +0 -0
  2399. package/python3.6.2/lib/python3.6/lib2to3/Grammar3.6.3.final.0.pickle +0 -0
  2400. package/python3.6.2/lib/python3.6/lib2to3/PatternGrammar3.6.3.final.0.pickle +0 -0
  2401. package/python3.6.2/lib/python3.6/lib2to3/__init__.pyc +0 -0
  2402. package/python3.6.2/lib/python3.6/lib2to3/__main__.pyc +0 -0
  2403. package/python3.6.2/lib/python3.6/lib2to3/btm_matcher.pyc +0 -0
  2404. package/python3.6.2/lib/python3.6/lib2to3/btm_utils.pyc +0 -0
  2405. package/python3.6.2/lib/python3.6/lib2to3/fixer_base.pyc +0 -0
  2406. package/python3.6.2/lib/python3.6/lib2to3/fixer_util.pyc +0 -0
  2407. package/python3.6.2/lib/python3.6/lib2to3/fixes/__init__.pyc +0 -0
  2408. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_apply.pyc +0 -0
  2409. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_asserts.pyc +0 -0
  2410. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_basestring.pyc +0 -0
  2411. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_buffer.pyc +0 -0
  2412. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_dict.pyc +0 -0
  2413. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_except.pyc +0 -0
  2414. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_exec.pyc +0 -0
  2415. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_execfile.pyc +0 -0
  2416. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_exitfunc.pyc +0 -0
  2417. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_filter.pyc +0 -0
  2418. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_funcattrs.pyc +0 -0
  2419. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_future.pyc +0 -0
  2420. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_getcwdu.pyc +0 -0
  2421. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_has_key.pyc +0 -0
  2422. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_idioms.pyc +0 -0
  2423. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_import.pyc +0 -0
  2424. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_imports.pyc +0 -0
  2425. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_imports2.pyc +0 -0
  2426. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_input.pyc +0 -0
  2427. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_intern.pyc +0 -0
  2428. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_isinstance.pyc +0 -0
  2429. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_itertools.pyc +0 -0
  2430. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_itertools_imports.pyc +0 -0
  2431. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_long.pyc +0 -0
  2432. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_map.pyc +0 -0
  2433. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_metaclass.pyc +0 -0
  2434. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_methodattrs.pyc +0 -0
  2435. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_ne.pyc +0 -0
  2436. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_next.pyc +0 -0
  2437. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_nonzero.pyc +0 -0
  2438. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_numliterals.pyc +0 -0
  2439. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_operator.pyc +0 -0
  2440. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_paren.pyc +0 -0
  2441. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_print.pyc +0 -0
  2442. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_raise.pyc +0 -0
  2443. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_raw_input.pyc +0 -0
  2444. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_reduce.pyc +0 -0
  2445. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_reload.pyc +0 -0
  2446. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_renames.pyc +0 -0
  2447. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_repr.pyc +0 -0
  2448. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_set_literal.pyc +0 -0
  2449. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_standarderror.pyc +0 -0
  2450. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_sys_exc.pyc +0 -0
  2451. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_throw.pyc +0 -0
  2452. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_tuple_params.pyc +0 -0
  2453. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_types.pyc +0 -0
  2454. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_unicode.pyc +0 -0
  2455. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_urllib.pyc +0 -0
  2456. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_ws_comma.pyc +0 -0
  2457. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_xrange.pyc +0 -0
  2458. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_xreadlines.pyc +0 -0
  2459. package/python3.6.2/lib/python3.6/lib2to3/fixes/fix_zip.pyc +0 -0
  2460. package/python3.6.2/lib/python3.6/lib2to3/main.pyc +0 -0
  2461. package/python3.6.2/lib/python3.6/lib2to3/patcomp.pyc +0 -0
  2462. package/python3.6.2/lib/python3.6/lib2to3/pgen2/__init__.pyc +0 -0
  2463. package/python3.6.2/lib/python3.6/lib2to3/pgen2/conv.pyc +0 -0
  2464. package/python3.6.2/lib/python3.6/lib2to3/pgen2/driver.pyc +0 -0
  2465. package/python3.6.2/lib/python3.6/lib2to3/pgen2/grammar.pyc +0 -0
  2466. package/python3.6.2/lib/python3.6/lib2to3/pgen2/literals.pyc +0 -0
  2467. package/python3.6.2/lib/python3.6/lib2to3/pgen2/parse.pyc +0 -0
  2468. package/python3.6.2/lib/python3.6/lib2to3/pgen2/pgen.pyc +0 -0
  2469. package/python3.6.2/lib/python3.6/lib2to3/pgen2/token.pyc +0 -0
  2470. package/python3.6.2/lib/python3.6/lib2to3/pgen2/tokenize.pyc +0 -0
  2471. package/python3.6.2/lib/python3.6/lib2to3/pygram.pyc +0 -0
  2472. package/python3.6.2/lib/python3.6/lib2to3/pytree.pyc +0 -0
  2473. package/python3.6.2/lib/python3.6/lib2to3/refactor.pyc +0 -0
  2474. package/python3.6.2/lib/python3.6/linecache.pyc +0 -0
  2475. package/python3.6.2/lib/python3.6/locale.pyc +0 -0
  2476. package/python3.6.2/lib/python3.6/logging/__init__.pyc +0 -0
  2477. package/python3.6.2/lib/python3.6/logging/config.pyc +0 -0
  2478. package/python3.6.2/lib/python3.6/logging/handlers.pyc +0 -0
  2479. package/python3.6.2/lib/python3.6/lzma.pyc +0 -0
  2480. package/python3.6.2/lib/python3.6/macpath.pyc +0 -0
  2481. package/python3.6.2/lib/python3.6/macurl2path.pyc +0 -0
  2482. package/python3.6.2/lib/python3.6/mailbox.pyc +0 -0
  2483. package/python3.6.2/lib/python3.6/mailcap.pyc +0 -0
  2484. package/python3.6.2/lib/python3.6/mimetypes.pyc +0 -0
  2485. package/python3.6.2/lib/python3.6/modulefinder.pyc +0 -0
  2486. package/python3.6.2/lib/python3.6/multiprocessing/__init__.pyc +0 -0
  2487. package/python3.6.2/lib/python3.6/multiprocessing/connection.pyc +0 -0
  2488. package/python3.6.2/lib/python3.6/multiprocessing/context.pyc +0 -0
  2489. package/python3.6.2/lib/python3.6/multiprocessing/dummy/__init__.pyc +0 -0
  2490. package/python3.6.2/lib/python3.6/multiprocessing/dummy/connection.pyc +0 -0
  2491. package/python3.6.2/lib/python3.6/multiprocessing/forkserver.pyc +0 -0
  2492. package/python3.6.2/lib/python3.6/multiprocessing/heap.pyc +0 -0
  2493. package/python3.6.2/lib/python3.6/multiprocessing/managers.pyc +0 -0
  2494. package/python3.6.2/lib/python3.6/multiprocessing/pool.pyc +0 -0
  2495. package/python3.6.2/lib/python3.6/multiprocessing/popen_fork.pyc +0 -0
  2496. package/python3.6.2/lib/python3.6/multiprocessing/popen_forkserver.pyc +0 -0
  2497. package/python3.6.2/lib/python3.6/multiprocessing/popen_spawn_posix.pyc +0 -0
  2498. package/python3.6.2/lib/python3.6/multiprocessing/popen_spawn_win32.pyc +0 -0
  2499. package/python3.6.2/lib/python3.6/multiprocessing/process.pyc +0 -0
  2500. package/python3.6.2/lib/python3.6/multiprocessing/queues.pyc +0 -0
  2501. package/python3.6.2/lib/python3.6/multiprocessing/reduction.pyc +0 -0
  2502. package/python3.6.2/lib/python3.6/multiprocessing/resource_sharer.pyc +0 -0
  2503. package/python3.6.2/lib/python3.6/multiprocessing/semaphore_tracker.pyc +0 -0
  2504. package/python3.6.2/lib/python3.6/multiprocessing/sharedctypes.pyc +0 -0
  2505. package/python3.6.2/lib/python3.6/multiprocessing/spawn.pyc +0 -0
  2506. package/python3.6.2/lib/python3.6/multiprocessing/synchronize.pyc +0 -0
  2507. package/python3.6.2/lib/python3.6/multiprocessing/util.pyc +0 -0
  2508. package/python3.6.2/lib/python3.6/netrc.pyc +0 -0
  2509. package/python3.6.2/lib/python3.6/nntplib.pyc +0 -0
  2510. package/python3.6.2/lib/python3.6/ntpath.pyc +0 -0
  2511. package/python3.6.2/lib/python3.6/nturl2path.pyc +0 -0
  2512. package/python3.6.2/lib/python3.6/numbers.pyc +0 -0
  2513. package/python3.6.2/lib/python3.6/opcode.pyc +0 -0
  2514. package/python3.6.2/lib/python3.6/operator.pyc +0 -0
  2515. package/python3.6.2/lib/python3.6/optparse.pyc +0 -0
  2516. package/python3.6.2/lib/python3.6/os.pyc +0 -0
  2517. package/python3.6.2/lib/python3.6/pathlib.pyc +0 -0
  2518. package/python3.6.2/lib/python3.6/pdb.pyc +0 -0
  2519. package/python3.6.2/lib/python3.6/pickle.pyc +0 -0
  2520. package/python3.6.2/lib/python3.6/pickletools.pyc +0 -0
  2521. package/python3.6.2/lib/python3.6/pipes.pyc +0 -0
  2522. package/python3.6.2/lib/python3.6/pkgutil.pyc +0 -0
  2523. package/python3.6.2/lib/python3.6/platform.pyc +0 -0
  2524. package/python3.6.2/lib/python3.6/plistlib.pyc +0 -0
  2525. package/python3.6.2/lib/python3.6/poplib.pyc +0 -0
  2526. package/python3.6.2/lib/python3.6/posixpath.pyc +0 -0
  2527. package/python3.6.2/lib/python3.6/pprint.pyc +0 -0
  2528. package/python3.6.2/lib/python3.6/profile.pyc +0 -0
  2529. package/python3.6.2/lib/python3.6/pstats.pyc +0 -0
  2530. package/python3.6.2/lib/python3.6/pty.pyc +0 -0
  2531. package/python3.6.2/lib/python3.6/py_compile.pyc +0 -0
  2532. package/python3.6.2/lib/python3.6/pyclbr.pyc +0 -0
  2533. package/python3.6.2/lib/python3.6/pydoc.pyc +0 -0
  2534. package/python3.6.2/lib/python3.6/pydoc_data/__init__.pyc +0 -0
  2535. package/python3.6.2/lib/python3.6/pydoc_data/topics.pyc +0 -0
  2536. package/python3.6.2/lib/python3.6/queue.pyc +0 -0
  2537. package/python3.6.2/lib/python3.6/quopri.pyc +0 -0
  2538. package/python3.6.2/lib/python3.6/random.pyc +0 -0
  2539. package/python3.6.2/lib/python3.6/re.pyc +0 -0
  2540. package/python3.6.2/lib/python3.6/reprlib.pyc +0 -0
  2541. package/python3.6.2/lib/python3.6/rlcompleter.pyc +0 -0
  2542. package/python3.6.2/lib/python3.6/runpy.pyc +0 -0
  2543. package/python3.6.2/lib/python3.6/sched.pyc +0 -0
  2544. package/python3.6.2/lib/python3.6/secrets.pyc +0 -0
  2545. package/python3.6.2/lib/python3.6/selectors.pyc +0 -0
  2546. package/python3.6.2/lib/python3.6/shelve.pyc +0 -0
  2547. package/python3.6.2/lib/python3.6/shlex.pyc +0 -0
  2548. package/python3.6.2/lib/python3.6/shutil.pyc +0 -0
  2549. package/python3.6.2/lib/python3.6/signal.pyc +0 -0
  2550. package/python3.6.2/lib/python3.6/site.pyc +0 -0
  2551. package/python3.6.2/lib/python3.6/smtpd.pyc +0 -0
  2552. package/python3.6.2/lib/python3.6/smtplib.pyc +0 -0
  2553. package/python3.6.2/lib/python3.6/sndhdr.pyc +0 -0
  2554. package/python3.6.2/lib/python3.6/socket.pyc +0 -0
  2555. package/python3.6.2/lib/python3.6/socketserver.pyc +0 -0
  2556. package/python3.6.2/lib/python3.6/sqlite3/__init__.pyc +0 -0
  2557. package/python3.6.2/lib/python3.6/sqlite3/dbapi2.pyc +0 -0
  2558. package/python3.6.2/lib/python3.6/sqlite3/dump.pyc +0 -0
  2559. package/python3.6.2/lib/python3.6/sre_compile.pyc +0 -0
  2560. package/python3.6.2/lib/python3.6/sre_constants.pyc +0 -0
  2561. package/python3.6.2/lib/python3.6/sre_parse.pyc +0 -0
  2562. package/python3.6.2/lib/python3.6/ssl.pyc +0 -0
  2563. package/python3.6.2/lib/python3.6/stat.pyc +0 -0
  2564. package/python3.6.2/lib/python3.6/statistics.pyc +0 -0
  2565. package/python3.6.2/lib/python3.6/string.pyc +0 -0
  2566. package/python3.6.2/lib/python3.6/stringprep.pyc +0 -0
  2567. package/python3.6.2/lib/python3.6/struct.pyc +0 -0
  2568. package/python3.6.2/lib/python3.6/subprocess.pyc +0 -0
  2569. package/python3.6.2/lib/python3.6/sunau.pyc +0 -0
  2570. package/python3.6.2/lib/python3.6/symbol.pyc +0 -0
  2571. package/python3.6.2/lib/python3.6/symtable.pyc +0 -0
  2572. package/python3.6.2/lib/python3.6/sysconfig.pyc +0 -0
  2573. package/python3.6.2/lib/python3.6/tabnanny.pyc +0 -0
  2574. package/python3.6.2/lib/python3.6/tarfile.pyc +0 -0
  2575. package/python3.6.2/lib/python3.6/telnetlib.pyc +0 -0
  2576. package/python3.6.2/lib/python3.6/tempfile.pyc +0 -0
  2577. package/python3.6.2/lib/python3.6/textwrap.pyc +0 -0
  2578. package/python3.6.2/lib/python3.6/this.pyc +0 -0
  2579. package/python3.6.2/lib/python3.6/threading.pyc +0 -0
  2580. package/python3.6.2/lib/python3.6/timeit.pyc +0 -0
  2581. package/python3.6.2/lib/python3.6/token.pyc +0 -0
  2582. package/python3.6.2/lib/python3.6/tokenize.pyc +0 -0
  2583. package/python3.6.2/lib/python3.6/trace.pyc +0 -0
  2584. package/python3.6.2/lib/python3.6/traceback.pyc +0 -0
  2585. package/python3.6.2/lib/python3.6/tracemalloc.pyc +0 -0
  2586. package/python3.6.2/lib/python3.6/tty.pyc +0 -0
  2587. package/python3.6.2/lib/python3.6/turtle.pyc +0 -0
  2588. package/python3.6.2/lib/python3.6/types.pyc +0 -0
  2589. package/python3.6.2/lib/python3.6/typing.pyc +0 -0
  2590. package/python3.6.2/lib/python3.6/unittest/__init__.pyc +0 -0
  2591. package/python3.6.2/lib/python3.6/unittest/__main__.pyc +0 -0
  2592. package/python3.6.2/lib/python3.6/unittest/case.pyc +0 -0
  2593. package/python3.6.2/lib/python3.6/unittest/loader.pyc +0 -0
  2594. package/python3.6.2/lib/python3.6/unittest/main.pyc +0 -0
  2595. package/python3.6.2/lib/python3.6/unittest/mock.pyc +0 -0
  2596. package/python3.6.2/lib/python3.6/unittest/result.pyc +0 -0
  2597. package/python3.6.2/lib/python3.6/unittest/runner.pyc +0 -0
  2598. package/python3.6.2/lib/python3.6/unittest/signals.pyc +0 -0
  2599. package/python3.6.2/lib/python3.6/unittest/suite.pyc +0 -0
  2600. package/python3.6.2/lib/python3.6/unittest/util.pyc +0 -0
  2601. package/python3.6.2/lib/python3.6/urllib/__init__.pyc +0 -0
  2602. package/python3.6.2/lib/python3.6/urllib/error.pyc +0 -0
  2603. package/python3.6.2/lib/python3.6/urllib/parse.pyc +0 -0
  2604. package/python3.6.2/lib/python3.6/urllib/request.pyc +0 -0
  2605. package/python3.6.2/lib/python3.6/urllib/response.pyc +0 -0
  2606. package/python3.6.2/lib/python3.6/urllib/robotparser.pyc +0 -0
  2607. package/python3.6.2/lib/python3.6/uu.pyc +0 -0
  2608. package/python3.6.2/lib/python3.6/uuid.pyc +0 -0
  2609. package/python3.6.2/lib/python3.6/venv/__init__.pyc +0 -0
  2610. package/python3.6.2/lib/python3.6/venv/__main__.pyc +0 -0
  2611. package/python3.6.2/lib/python3.6/warnings.pyc +0 -0
  2612. package/python3.6.2/lib/python3.6/wave.pyc +0 -0
  2613. package/python3.6.2/lib/python3.6/weakref.pyc +0 -0
  2614. package/python3.6.2/lib/python3.6/webbrowser.pyc +0 -0
  2615. package/python3.6.2/lib/python3.6/wsgiref/__init__.pyc +0 -0
  2616. package/python3.6.2/lib/python3.6/wsgiref/handlers.pyc +0 -0
  2617. package/python3.6.2/lib/python3.6/wsgiref/headers.pyc +0 -0
  2618. package/python3.6.2/lib/python3.6/wsgiref/simple_server.pyc +0 -0
  2619. package/python3.6.2/lib/python3.6/wsgiref/util.pyc +0 -0
  2620. package/python3.6.2/lib/python3.6/wsgiref/validate.pyc +0 -0
  2621. package/python3.6.2/lib/python3.6/xdrlib.pyc +0 -0
  2622. package/python3.6.2/lib/python3.6/xml/__init__.pyc +0 -0
  2623. package/python3.6.2/lib/python3.6/xml/dom/NodeFilter.pyc +0 -0
  2624. package/python3.6.2/lib/python3.6/xml/dom/__init__.pyc +0 -0
  2625. package/python3.6.2/lib/python3.6/xml/dom/domreg.pyc +0 -0
  2626. package/python3.6.2/lib/python3.6/xml/dom/expatbuilder.pyc +0 -0
  2627. package/python3.6.2/lib/python3.6/xml/dom/minicompat.pyc +0 -0
  2628. package/python3.6.2/lib/python3.6/xml/dom/minidom.pyc +0 -0
  2629. package/python3.6.2/lib/python3.6/xml/dom/pulldom.pyc +0 -0
  2630. package/python3.6.2/lib/python3.6/xml/dom/xmlbuilder.pyc +0 -0
  2631. package/python3.6.2/lib/python3.6/xml/etree/ElementInclude.pyc +0 -0
  2632. package/python3.6.2/lib/python3.6/xml/etree/ElementPath.pyc +0 -0
  2633. package/python3.6.2/lib/python3.6/xml/etree/ElementTree.pyc +0 -0
  2634. package/python3.6.2/lib/python3.6/xml/etree/__init__.pyc +0 -0
  2635. package/python3.6.2/lib/python3.6/xml/etree/cElementTree.pyc +0 -0
  2636. package/python3.6.2/lib/python3.6/xml/parsers/__init__.pyc +0 -0
  2637. package/python3.6.2/lib/python3.6/xml/parsers/expat.pyc +0 -0
  2638. package/python3.6.2/lib/python3.6/xml/sax/__init__.pyc +0 -0
  2639. package/python3.6.2/lib/python3.6/xml/sax/_exceptions.pyc +0 -0
  2640. package/python3.6.2/lib/python3.6/xml/sax/expatreader.pyc +0 -0
  2641. package/python3.6.2/lib/python3.6/xml/sax/handler.pyc +0 -0
  2642. package/python3.6.2/lib/python3.6/xml/sax/saxutils.pyc +0 -0
  2643. package/python3.6.2/lib/python3.6/xml/sax/xmlreader.pyc +0 -0
  2644. package/python3.6.2/lib/python3.6/xmlrpc/__init__.pyc +0 -0
  2645. package/python3.6.2/lib/python3.6/xmlrpc/client.pyc +0 -0
  2646. package/python3.6.2/lib/python3.6/xmlrpc/server.pyc +0 -0
  2647. package/python3.6.2/lib/python3.6/zipapp.pyc +0 -0
  2648. package/python3.6.2/lib/python3.6/zipfile.pyc +0 -0
@@ -0,0 +1,4002 @@
1
+ """Wrapper functions for Tcl/Tk.
2
+
3
+ Tkinter provides classes which allow the display, positioning and
4
+ control of widgets. Toplevel widgets are Tk and Toplevel. Other
5
+ widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
6
+ Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox
7
+ LabelFrame and PanedWindow.
8
+
9
+ Properties of the widgets are specified with keyword arguments.
10
+ Keyword arguments have the same name as the corresponding resource
11
+ under Tk.
12
+
13
+ Widgets are positioned with one of the geometry managers Place, Pack
14
+ or Grid. These managers can be called with methods place, pack, grid
15
+ available in every Widget.
16
+
17
+ Actions are bound to events by resources (e.g. keyword argument
18
+ command) or with the method bind.
19
+
20
+ Example (Hello, World):
21
+ import tkinter
22
+ from tkinter.constants import *
23
+ tk = tkinter.Tk()
24
+ frame = tkinter.Frame(tk, relief=RIDGE, borderwidth=2)
25
+ frame.pack(fill=BOTH,expand=1)
26
+ label = tkinter.Label(frame, text="Hello, World")
27
+ label.pack(fill=X, expand=1)
28
+ button = tkinter.Button(frame,text="Exit",command=tk.destroy)
29
+ button.pack(side=BOTTOM)
30
+ tk.mainloop()
31
+ """
32
+
33
+ import enum
34
+ import sys
35
+
36
+ import _tkinter # If this fails your Python may not be configured for Tk
37
+ TclError = _tkinter.TclError
38
+ from tkinter.constants import *
39
+ import re
40
+
41
+
42
+ wantobjects = 1
43
+
44
+ TkVersion = float(_tkinter.TK_VERSION)
45
+ TclVersion = float(_tkinter.TCL_VERSION)
46
+
47
+ READABLE = _tkinter.READABLE
48
+ WRITABLE = _tkinter.WRITABLE
49
+ EXCEPTION = _tkinter.EXCEPTION
50
+
51
+
52
+ _magic_re = re.compile(r'([\\{}])')
53
+ _space_re = re.compile(r'([\s])', re.ASCII)
54
+
55
+ def _join(value):
56
+ """Internal function."""
57
+ return ' '.join(map(_stringify, value))
58
+
59
+ def _stringify(value):
60
+ """Internal function."""
61
+ if isinstance(value, (list, tuple)):
62
+ if len(value) == 1:
63
+ value = _stringify(value[0])
64
+ if value[0] == '{':
65
+ value = '{%s}' % value
66
+ else:
67
+ value = '{%s}' % _join(value)
68
+ else:
69
+ value = str(value)
70
+ if not value:
71
+ value = '{}'
72
+ elif _magic_re.search(value):
73
+ # add '\' before special characters and spaces
74
+ value = _magic_re.sub(r'\\\1', value)
75
+ value = _space_re.sub(r'\\\1', value)
76
+ elif value[0] == '"' or _space_re.search(value):
77
+ value = '{%s}' % value
78
+ return value
79
+
80
+ def _flatten(seq):
81
+ """Internal function."""
82
+ res = ()
83
+ for item in seq:
84
+ if isinstance(item, (tuple, list)):
85
+ res = res + _flatten(item)
86
+ elif item is not None:
87
+ res = res + (item,)
88
+ return res
89
+
90
+ try: _flatten = _tkinter._flatten
91
+ except AttributeError: pass
92
+
93
+ def _cnfmerge(cnfs):
94
+ """Internal function."""
95
+ if isinstance(cnfs, dict):
96
+ return cnfs
97
+ elif isinstance(cnfs, (type(None), str)):
98
+ return cnfs
99
+ else:
100
+ cnf = {}
101
+ for c in _flatten(cnfs):
102
+ try:
103
+ cnf.update(c)
104
+ except (AttributeError, TypeError) as msg:
105
+ print("_cnfmerge: fallback due to:", msg)
106
+ for k, v in c.items():
107
+ cnf[k] = v
108
+ return cnf
109
+
110
+ try: _cnfmerge = _tkinter._cnfmerge
111
+ except AttributeError: pass
112
+
113
+ def _splitdict(tk, v, cut_minus=True, conv=None):
114
+ """Return a properly formatted dict built from Tcl list pairs.
115
+
116
+ If cut_minus is True, the supposed '-' prefix will be removed from
117
+ keys. If conv is specified, it is used to convert values.
118
+
119
+ Tcl list is expected to contain an even number of elements.
120
+ """
121
+ t = tk.splitlist(v)
122
+ if len(t) % 2:
123
+ raise RuntimeError('Tcl list representing a dict is expected '
124
+ 'to contain an even number of elements')
125
+ it = iter(t)
126
+ dict = {}
127
+ for key, value in zip(it, it):
128
+ key = str(key)
129
+ if cut_minus and key[0] == '-':
130
+ key = key[1:]
131
+ if conv:
132
+ value = conv(value)
133
+ dict[key] = value
134
+ return dict
135
+
136
+
137
+ class EventType(str, enum.Enum):
138
+ KeyPress = '2'
139
+ Key = KeyPress,
140
+ KeyRelease = '3'
141
+ ButtonPress = '4'
142
+ Button = ButtonPress,
143
+ ButtonRelease = '5'
144
+ Motion = '6'
145
+ Enter = '7'
146
+ Leave = '8'
147
+ FocusIn = '9'
148
+ FocusOut = '10'
149
+ Keymap = '11' # undocumented
150
+ Expose = '12'
151
+ GraphicsExpose = '13' # undocumented
152
+ NoExpose = '14' # undocumented
153
+ Visibility = '15'
154
+ Create = '16'
155
+ Destroy = '17'
156
+ Unmap = '18'
157
+ Map = '19'
158
+ MapRequest = '20'
159
+ Reparent = '21'
160
+ Configure = '22'
161
+ ConfigureRequest = '23'
162
+ Gravity = '24'
163
+ ResizeRequest = '25'
164
+ Circulate = '26'
165
+ CirculateRequest = '27'
166
+ Property = '28'
167
+ SelectionClear = '29' # undocumented
168
+ SelectionRequest = '30' # undocumented
169
+ Selection = '31' # undocumented
170
+ Colormap = '32'
171
+ ClientMessage = '33' # undocumented
172
+ Mapping = '34' # undocumented
173
+ VirtualEvent = '35', # undocumented
174
+ Activate = '36',
175
+ Deactivate = '37',
176
+ MouseWheel = '38',
177
+ def __str__(self):
178
+ return self.name
179
+
180
+ class Event:
181
+ """Container for the properties of an event.
182
+
183
+ Instances of this type are generated if one of the following events occurs:
184
+
185
+ KeyPress, KeyRelease - for keyboard events
186
+ ButtonPress, ButtonRelease, Motion, Enter, Leave, MouseWheel - for mouse events
187
+ Visibility, Unmap, Map, Expose, FocusIn, FocusOut, Circulate,
188
+ Colormap, Gravity, Reparent, Property, Destroy, Activate,
189
+ Deactivate - for window events.
190
+
191
+ If a callback function for one of these events is registered
192
+ using bind, bind_all, bind_class, or tag_bind, the callback is
193
+ called with an Event as first argument. It will have the
194
+ following attributes (in braces are the event types for which
195
+ the attribute is valid):
196
+
197
+ serial - serial number of event
198
+ num - mouse button pressed (ButtonPress, ButtonRelease)
199
+ focus - whether the window has the focus (Enter, Leave)
200
+ height - height of the exposed window (Configure, Expose)
201
+ width - width of the exposed window (Configure, Expose)
202
+ keycode - keycode of the pressed key (KeyPress, KeyRelease)
203
+ state - state of the event as a number (ButtonPress, ButtonRelease,
204
+ Enter, KeyPress, KeyRelease,
205
+ Leave, Motion)
206
+ state - state as a string (Visibility)
207
+ time - when the event occurred
208
+ x - x-position of the mouse
209
+ y - y-position of the mouse
210
+ x_root - x-position of the mouse on the screen
211
+ (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
212
+ y_root - y-position of the mouse on the screen
213
+ (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
214
+ char - pressed character (KeyPress, KeyRelease)
215
+ send_event - see X/Windows documentation
216
+ keysym - keysym of the event as a string (KeyPress, KeyRelease)
217
+ keysym_num - keysym of the event as a number (KeyPress, KeyRelease)
218
+ type - type of the event as a number
219
+ widget - widget in which the event occurred
220
+ delta - delta of wheel movement (MouseWheel)
221
+ """
222
+ def __repr__(self):
223
+ attrs = {k: v for k, v in self.__dict__.items() if v != '??'}
224
+ if not self.char:
225
+ del attrs['char']
226
+ elif self.char != '??':
227
+ attrs['char'] = repr(self.char)
228
+ if not getattr(self, 'send_event', True):
229
+ del attrs['send_event']
230
+ if self.state == 0:
231
+ del attrs['state']
232
+ elif isinstance(self.state, int):
233
+ state = self.state
234
+ mods = ('Shift', 'Lock', 'Control',
235
+ 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5',
236
+ 'Button1', 'Button2', 'Button3', 'Button4', 'Button5')
237
+ s = []
238
+ for i, n in enumerate(mods):
239
+ if state & (1 << i):
240
+ s.append(n)
241
+ state = state & ~((1<< len(mods)) - 1)
242
+ if state or not s:
243
+ s.append(hex(state))
244
+ attrs['state'] = '|'.join(s)
245
+ if self.delta == 0:
246
+ del attrs['delta']
247
+ # widget usually is known
248
+ # serial and time are not very interesting
249
+ # keysym_num duplicates keysym
250
+ # x_root and y_root mostly duplicate x and y
251
+ keys = ('send_event',
252
+ 'state', 'keysym', 'keycode', 'char',
253
+ 'num', 'delta', 'focus',
254
+ 'x', 'y', 'width', 'height')
255
+ return '<%s event%s>' % (
256
+ self.type,
257
+ ''.join(' %s=%s' % (k, attrs[k]) for k in keys if k in attrs)
258
+ )
259
+
260
+ _support_default_root = 1
261
+ _default_root = None
262
+
263
+ def NoDefaultRoot():
264
+ """Inhibit setting of default root window.
265
+
266
+ Call this function to inhibit that the first instance of
267
+ Tk is used for windows without an explicit parent window.
268
+ """
269
+ global _support_default_root
270
+ _support_default_root = 0
271
+ global _default_root
272
+ _default_root = None
273
+ del _default_root
274
+
275
+ def _tkerror(err):
276
+ """Internal function."""
277
+ pass
278
+
279
+ def _exit(code=0):
280
+ """Internal function. Calling it will raise the exception SystemExit."""
281
+ try:
282
+ code = int(code)
283
+ except ValueError:
284
+ pass
285
+ raise SystemExit(code)
286
+
287
+ _varnum = 0
288
+ class Variable:
289
+ """Class to define value holders for e.g. buttons.
290
+
291
+ Subclasses StringVar, IntVar, DoubleVar, BooleanVar are specializations
292
+ that constrain the type of the value returned from get()."""
293
+ _default = ""
294
+ _tk = None
295
+ _tclCommands = None
296
+ def __init__(self, master=None, value=None, name=None):
297
+ """Construct a variable
298
+
299
+ MASTER can be given as master widget.
300
+ VALUE is an optional value (defaults to "")
301
+ NAME is an optional Tcl name (defaults to PY_VARnum).
302
+
303
+ If NAME matches an existing variable and VALUE is omitted
304
+ then the existing value is retained.
305
+ """
306
+ # check for type of NAME parameter to override weird error message
307
+ # raised from Modules/_tkinter.c:SetVar like:
308
+ # TypeError: setvar() takes exactly 3 arguments (2 given)
309
+ if name is not None and not isinstance(name, str):
310
+ raise TypeError("name must be a string")
311
+ global _varnum
312
+ if not master:
313
+ master = _default_root
314
+ self._root = master._root()
315
+ self._tk = master.tk
316
+ if name:
317
+ self._name = name
318
+ else:
319
+ self._name = 'PY_VAR' + repr(_varnum)
320
+ _varnum += 1
321
+ if value is not None:
322
+ self.initialize(value)
323
+ elif not self._tk.getboolean(self._tk.call("info", "exists", self._name)):
324
+ self.initialize(self._default)
325
+ def __del__(self):
326
+ """Unset the variable in Tcl."""
327
+ if self._tk is None:
328
+ return
329
+ if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
330
+ self._tk.globalunsetvar(self._name)
331
+ if self._tclCommands is not None:
332
+ for name in self._tclCommands:
333
+ #print '- Tkinter: deleted command', name
334
+ self._tk.deletecommand(name)
335
+ self._tclCommands = None
336
+ def __str__(self):
337
+ """Return the name of the variable in Tcl."""
338
+ return self._name
339
+ def set(self, value):
340
+ """Set the variable to VALUE."""
341
+ return self._tk.globalsetvar(self._name, value)
342
+ initialize = set
343
+ def get(self):
344
+ """Return value of variable."""
345
+ return self._tk.globalgetvar(self._name)
346
+
347
+ def _register(self, callback):
348
+ f = CallWrapper(callback, None, self._root).__call__
349
+ cbname = repr(id(f))
350
+ try:
351
+ callback = callback.__func__
352
+ except AttributeError:
353
+ pass
354
+ try:
355
+ cbname = cbname + callback.__name__
356
+ except AttributeError:
357
+ pass
358
+ self._tk.createcommand(cbname, f)
359
+ if self._tclCommands is None:
360
+ self._tclCommands = []
361
+ self._tclCommands.append(cbname)
362
+ return cbname
363
+
364
+ def trace_add(self, mode, callback):
365
+ """Define a trace callback for the variable.
366
+
367
+ Mode is one of "read", "write", "unset", or a list or tuple of
368
+ such strings.
369
+ Callback must be a function which is called when the variable is
370
+ read, written or unset.
371
+
372
+ Return the name of the callback.
373
+ """
374
+ cbname = self._register(callback)
375
+ self._tk.call('trace', 'add', 'variable',
376
+ self._name, mode, (cbname,))
377
+ return cbname
378
+
379
+ def trace_remove(self, mode, cbname):
380
+ """Delete the trace callback for a variable.
381
+
382
+ Mode is one of "read", "write", "unset" or a list or tuple of
383
+ such strings. Must be same as were specified in trace_add().
384
+ cbname is the name of the callback returned from trace_add().
385
+ """
386
+ self._tk.call('trace', 'remove', 'variable',
387
+ self._name, mode, cbname)
388
+ for m, ca in self.trace_info():
389
+ if self._tk.splitlist(ca)[0] == cbname:
390
+ break
391
+ else:
392
+ self._tk.deletecommand(cbname)
393
+ try:
394
+ self._tclCommands.remove(cbname)
395
+ except ValueError:
396
+ pass
397
+
398
+ def trace_info(self):
399
+ """Return all trace callback information."""
400
+ splitlist = self._tk.splitlist
401
+ return [(splitlist(k), v) for k, v in map(splitlist,
402
+ splitlist(self._tk.call('trace', 'info', 'variable', self._name)))]
403
+
404
+ def trace_variable(self, mode, callback):
405
+ """Define a trace callback for the variable.
406
+
407
+ MODE is one of "r", "w", "u" for read, write, undefine.
408
+ CALLBACK must be a function which is called when
409
+ the variable is read, written or undefined.
410
+
411
+ Return the name of the callback.
412
+
413
+ This deprecated method wraps a deprecated Tcl method that will
414
+ likely be removed in the future. Use trace_add() instead.
415
+ """
416
+ # TODO: Add deprecation warning
417
+ cbname = self._register(callback)
418
+ self._tk.call("trace", "variable", self._name, mode, cbname)
419
+ return cbname
420
+
421
+ trace = trace_variable
422
+
423
+ def trace_vdelete(self, mode, cbname):
424
+ """Delete the trace callback for a variable.
425
+
426
+ MODE is one of "r", "w", "u" for read, write, undefine.
427
+ CBNAME is the name of the callback returned from trace_variable or trace.
428
+
429
+ This deprecated method wraps a deprecated Tcl method that will
430
+ likely be removed in the future. Use trace_remove() instead.
431
+ """
432
+ # TODO: Add deprecation warning
433
+ self._tk.call("trace", "vdelete", self._name, mode, cbname)
434
+ cbname = self._tk.splitlist(cbname)[0]
435
+ for m, ca in self.trace_info():
436
+ if self._tk.splitlist(ca)[0] == cbname:
437
+ break
438
+ else:
439
+ self._tk.deletecommand(cbname)
440
+ try:
441
+ self._tclCommands.remove(cbname)
442
+ except ValueError:
443
+ pass
444
+
445
+ def trace_vinfo(self):
446
+ """Return all trace callback information.
447
+
448
+ This deprecated method wraps a deprecated Tcl method that will
449
+ likely be removed in the future. Use trace_info() instead.
450
+ """
451
+ # TODO: Add deprecation warning
452
+ return [self._tk.splitlist(x) for x in self._tk.splitlist(
453
+ self._tk.call("trace", "vinfo", self._name))]
454
+
455
+ def __eq__(self, other):
456
+ """Comparison for equality (==).
457
+
458
+ Note: if the Variable's master matters to behavior
459
+ also compare self._master == other._master
460
+ """
461
+ return self.__class__.__name__ == other.__class__.__name__ \
462
+ and self._name == other._name
463
+
464
+ class StringVar(Variable):
465
+ """Value holder for strings variables."""
466
+ _default = ""
467
+ def __init__(self, master=None, value=None, name=None):
468
+ """Construct a string variable.
469
+
470
+ MASTER can be given as master widget.
471
+ VALUE is an optional value (defaults to "")
472
+ NAME is an optional Tcl name (defaults to PY_VARnum).
473
+
474
+ If NAME matches an existing variable and VALUE is omitted
475
+ then the existing value is retained.
476
+ """
477
+ Variable.__init__(self, master, value, name)
478
+
479
+ def get(self):
480
+ """Return value of variable as string."""
481
+ value = self._tk.globalgetvar(self._name)
482
+ if isinstance(value, str):
483
+ return value
484
+ return str(value)
485
+
486
+ class IntVar(Variable):
487
+ """Value holder for integer variables."""
488
+ _default = 0
489
+ def __init__(self, master=None, value=None, name=None):
490
+ """Construct an integer variable.
491
+
492
+ MASTER can be given as master widget.
493
+ VALUE is an optional value (defaults to 0)
494
+ NAME is an optional Tcl name (defaults to PY_VARnum).
495
+
496
+ If NAME matches an existing variable and VALUE is omitted
497
+ then the existing value is retained.
498
+ """
499
+ Variable.__init__(self, master, value, name)
500
+
501
+ def get(self):
502
+ """Return the value of the variable as an integer."""
503
+ value = self._tk.globalgetvar(self._name)
504
+ try:
505
+ return self._tk.getint(value)
506
+ except (TypeError, TclError):
507
+ return int(self._tk.getdouble(value))
508
+
509
+ class DoubleVar(Variable):
510
+ """Value holder for float variables."""
511
+ _default = 0.0
512
+ def __init__(self, master=None, value=None, name=None):
513
+ """Construct a float variable.
514
+
515
+ MASTER can be given as master widget.
516
+ VALUE is an optional value (defaults to 0.0)
517
+ NAME is an optional Tcl name (defaults to PY_VARnum).
518
+
519
+ If NAME matches an existing variable and VALUE is omitted
520
+ then the existing value is retained.
521
+ """
522
+ Variable.__init__(self, master, value, name)
523
+
524
+ def get(self):
525
+ """Return the value of the variable as a float."""
526
+ return self._tk.getdouble(self._tk.globalgetvar(self._name))
527
+
528
+ class BooleanVar(Variable):
529
+ """Value holder for boolean variables."""
530
+ _default = False
531
+ def __init__(self, master=None, value=None, name=None):
532
+ """Construct a boolean variable.
533
+
534
+ MASTER can be given as master widget.
535
+ VALUE is an optional value (defaults to False)
536
+ NAME is an optional Tcl name (defaults to PY_VARnum).
537
+
538
+ If NAME matches an existing variable and VALUE is omitted
539
+ then the existing value is retained.
540
+ """
541
+ Variable.__init__(self, master, value, name)
542
+
543
+ def set(self, value):
544
+ """Set the variable to VALUE."""
545
+ return self._tk.globalsetvar(self._name, self._tk.getboolean(value))
546
+ initialize = set
547
+
548
+ def get(self):
549
+ """Return the value of the variable as a bool."""
550
+ try:
551
+ return self._tk.getboolean(self._tk.globalgetvar(self._name))
552
+ except TclError:
553
+ raise ValueError("invalid literal for getboolean()")
554
+
555
+ def mainloop(n=0):
556
+ """Run the main loop of Tcl."""
557
+ _default_root.tk.mainloop(n)
558
+
559
+ getint = int
560
+
561
+ getdouble = float
562
+
563
+ def getboolean(s):
564
+ """Convert true and false to integer values 1 and 0."""
565
+ try:
566
+ return _default_root.tk.getboolean(s)
567
+ except TclError:
568
+ raise ValueError("invalid literal for getboolean()")
569
+
570
+ # Methods defined on both toplevel and interior widgets
571
+ class Misc:
572
+ """Internal class.
573
+
574
+ Base class which defines methods common for interior widgets."""
575
+
576
+ # used for generating child widget names
577
+ _last_child_ids = None
578
+
579
+ # XXX font command?
580
+ _tclCommands = None
581
+ def destroy(self):
582
+ """Internal function.
583
+
584
+ Delete all Tcl commands created for
585
+ this widget in the Tcl interpreter."""
586
+ if self._tclCommands is not None:
587
+ for name in self._tclCommands:
588
+ #print '- Tkinter: deleted command', name
589
+ self.tk.deletecommand(name)
590
+ self._tclCommands = None
591
+ def deletecommand(self, name):
592
+ """Internal function.
593
+
594
+ Delete the Tcl command provided in NAME."""
595
+ #print '- Tkinter: deleted command', name
596
+ self.tk.deletecommand(name)
597
+ try:
598
+ self._tclCommands.remove(name)
599
+ except ValueError:
600
+ pass
601
+ def tk_strictMotif(self, boolean=None):
602
+ """Set Tcl internal variable, whether the look and feel
603
+ should adhere to Motif.
604
+
605
+ A parameter of 1 means adhere to Motif (e.g. no color
606
+ change if mouse passes over slider).
607
+ Returns the set value."""
608
+ return self.tk.getboolean(self.tk.call(
609
+ 'set', 'tk_strictMotif', boolean))
610
+ def tk_bisque(self):
611
+ """Change the color scheme to light brown as used in Tk 3.6 and before."""
612
+ self.tk.call('tk_bisque')
613
+ def tk_setPalette(self, *args, **kw):
614
+ """Set a new color scheme for all widget elements.
615
+
616
+ A single color as argument will cause that all colors of Tk
617
+ widget elements are derived from this.
618
+ Alternatively several keyword parameters and its associated
619
+ colors can be given. The following keywords are valid:
620
+ activeBackground, foreground, selectColor,
621
+ activeForeground, highlightBackground, selectBackground,
622
+ background, highlightColor, selectForeground,
623
+ disabledForeground, insertBackground, troughColor."""
624
+ self.tk.call(('tk_setPalette',)
625
+ + _flatten(args) + _flatten(list(kw.items())))
626
+ def wait_variable(self, name='PY_VAR'):
627
+ """Wait until the variable is modified.
628
+
629
+ A parameter of type IntVar, StringVar, DoubleVar or
630
+ BooleanVar must be given."""
631
+ self.tk.call('tkwait', 'variable', name)
632
+ waitvar = wait_variable # XXX b/w compat
633
+ def wait_window(self, window=None):
634
+ """Wait until a WIDGET is destroyed.
635
+
636
+ If no parameter is given self is used."""
637
+ if window is None:
638
+ window = self
639
+ self.tk.call('tkwait', 'window', window._w)
640
+ def wait_visibility(self, window=None):
641
+ """Wait until the visibility of a WIDGET changes
642
+ (e.g. it appears).
643
+
644
+ If no parameter is given self is used."""
645
+ if window is None:
646
+ window = self
647
+ self.tk.call('tkwait', 'visibility', window._w)
648
+ def setvar(self, name='PY_VAR', value='1'):
649
+ """Set Tcl variable NAME to VALUE."""
650
+ self.tk.setvar(name, value)
651
+ def getvar(self, name='PY_VAR'):
652
+ """Return value of Tcl variable NAME."""
653
+ return self.tk.getvar(name)
654
+
655
+ def getint(self, s):
656
+ try:
657
+ return self.tk.getint(s)
658
+ except TclError as exc:
659
+ raise ValueError(str(exc))
660
+
661
+ def getdouble(self, s):
662
+ try:
663
+ return self.tk.getdouble(s)
664
+ except TclError as exc:
665
+ raise ValueError(str(exc))
666
+
667
+ def getboolean(self, s):
668
+ """Return a boolean value for Tcl boolean values true and false given as parameter."""
669
+ try:
670
+ return self.tk.getboolean(s)
671
+ except TclError:
672
+ raise ValueError("invalid literal for getboolean()")
673
+
674
+ def focus_set(self):
675
+ """Direct input focus to this widget.
676
+
677
+ If the application currently does not have the focus
678
+ this widget will get the focus if the application gets
679
+ the focus through the window manager."""
680
+ self.tk.call('focus', self._w)
681
+ focus = focus_set # XXX b/w compat?
682
+ def focus_force(self):
683
+ """Direct input focus to this widget even if the
684
+ application does not have the focus. Use with
685
+ caution!"""
686
+ self.tk.call('focus', '-force', self._w)
687
+ def focus_get(self):
688
+ """Return the widget which has currently the focus in the
689
+ application.
690
+
691
+ Use focus_displayof to allow working with several
692
+ displays. Return None if application does not have
693
+ the focus."""
694
+ name = self.tk.call('focus')
695
+ if name == 'none' or not name: return None
696
+ return self._nametowidget(name)
697
+ def focus_displayof(self):
698
+ """Return the widget which has currently the focus on the
699
+ display where this widget is located.
700
+
701
+ Return None if the application does not have the focus."""
702
+ name = self.tk.call('focus', '-displayof', self._w)
703
+ if name == 'none' or not name: return None
704
+ return self._nametowidget(name)
705
+ def focus_lastfor(self):
706
+ """Return the widget which would have the focus if top level
707
+ for this widget gets the focus from the window manager."""
708
+ name = self.tk.call('focus', '-lastfor', self._w)
709
+ if name == 'none' or not name: return None
710
+ return self._nametowidget(name)
711
+ def tk_focusFollowsMouse(self):
712
+ """The widget under mouse will get automatically focus. Can not
713
+ be disabled easily."""
714
+ self.tk.call('tk_focusFollowsMouse')
715
+ def tk_focusNext(self):
716
+ """Return the next widget in the focus order which follows
717
+ widget which has currently the focus.
718
+
719
+ The focus order first goes to the next child, then to
720
+ the children of the child recursively and then to the
721
+ next sibling which is higher in the stacking order. A
722
+ widget is omitted if it has the takefocus resource set
723
+ to 0."""
724
+ name = self.tk.call('tk_focusNext', self._w)
725
+ if not name: return None
726
+ return self._nametowidget(name)
727
+ def tk_focusPrev(self):
728
+ """Return previous widget in the focus order. See tk_focusNext for details."""
729
+ name = self.tk.call('tk_focusPrev', self._w)
730
+ if not name: return None
731
+ return self._nametowidget(name)
732
+ def after(self, ms, func=None, *args):
733
+ """Call function once after given time.
734
+
735
+ MS specifies the time in milliseconds. FUNC gives the
736
+ function which shall be called. Additional parameters
737
+ are given as parameters to the function call. Return
738
+ identifier to cancel scheduling with after_cancel."""
739
+ if not func:
740
+ # I'd rather use time.sleep(ms*0.001)
741
+ self.tk.call('after', ms)
742
+ else:
743
+ def callit():
744
+ try:
745
+ func(*args)
746
+ finally:
747
+ try:
748
+ self.deletecommand(name)
749
+ except TclError:
750
+ pass
751
+ callit.__name__ = func.__name__
752
+ name = self._register(callit)
753
+ return self.tk.call('after', ms, name)
754
+ def after_idle(self, func, *args):
755
+ """Call FUNC once if the Tcl main loop has no event to
756
+ process.
757
+
758
+ Return an identifier to cancel the scheduling with
759
+ after_cancel."""
760
+ return self.after('idle', func, *args)
761
+ def after_cancel(self, id):
762
+ """Cancel scheduling of function identified with ID.
763
+
764
+ Identifier returned by after or after_idle must be
765
+ given as first parameter."""
766
+ try:
767
+ data = self.tk.call('after', 'info', id)
768
+ # In Tk 8.3, splitlist returns: (script, type)
769
+ # In Tk 8.4, splitlist may return (script, type) or (script,)
770
+ script = self.tk.splitlist(data)[0]
771
+ self.deletecommand(script)
772
+ except TclError:
773
+ pass
774
+ self.tk.call('after', 'cancel', id)
775
+ def bell(self, displayof=0):
776
+ """Ring a display's bell."""
777
+ self.tk.call(('bell',) + self._displayof(displayof))
778
+
779
+ # Clipboard handling:
780
+ def clipboard_get(self, **kw):
781
+ """Retrieve data from the clipboard on window's display.
782
+
783
+ The window keyword defaults to the root window of the Tkinter
784
+ application.
785
+
786
+ The type keyword specifies the form in which the data is
787
+ to be returned and should be an atom name such as STRING
788
+ or FILE_NAME. Type defaults to STRING, except on X11, where the default
789
+ is to try UTF8_STRING and fall back to STRING.
790
+
791
+ This command is equivalent to:
792
+
793
+ selection_get(CLIPBOARD)
794
+ """
795
+ if 'type' not in kw and self._windowingsystem == 'x11':
796
+ try:
797
+ kw['type'] = 'UTF8_STRING'
798
+ return self.tk.call(('clipboard', 'get') + self._options(kw))
799
+ except TclError:
800
+ del kw['type']
801
+ return self.tk.call(('clipboard', 'get') + self._options(kw))
802
+
803
+ def clipboard_clear(self, **kw):
804
+ """Clear the data in the Tk clipboard.
805
+
806
+ A widget specified for the optional displayof keyword
807
+ argument specifies the target display."""
808
+ if 'displayof' not in kw: kw['displayof'] = self._w
809
+ self.tk.call(('clipboard', 'clear') + self._options(kw))
810
+ def clipboard_append(self, string, **kw):
811
+ """Append STRING to the Tk clipboard.
812
+
813
+ A widget specified at the optional displayof keyword
814
+ argument specifies the target display. The clipboard
815
+ can be retrieved with selection_get."""
816
+ if 'displayof' not in kw: kw['displayof'] = self._w
817
+ self.tk.call(('clipboard', 'append') + self._options(kw)
818
+ + ('--', string))
819
+ # XXX grab current w/o window argument
820
+ def grab_current(self):
821
+ """Return widget which has currently the grab in this application
822
+ or None."""
823
+ name = self.tk.call('grab', 'current', self._w)
824
+ if not name: return None
825
+ return self._nametowidget(name)
826
+ def grab_release(self):
827
+ """Release grab for this widget if currently set."""
828
+ self.tk.call('grab', 'release', self._w)
829
+ def grab_set(self):
830
+ """Set grab for this widget.
831
+
832
+ A grab directs all events to this and descendant
833
+ widgets in the application."""
834
+ self.tk.call('grab', 'set', self._w)
835
+ def grab_set_global(self):
836
+ """Set global grab for this widget.
837
+
838
+ A global grab directs all events to this and
839
+ descendant widgets on the display. Use with caution -
840
+ other applications do not get events anymore."""
841
+ self.tk.call('grab', 'set', '-global', self._w)
842
+ def grab_status(self):
843
+ """Return None, "local" or "global" if this widget has
844
+ no, a local or a global grab."""
845
+ status = self.tk.call('grab', 'status', self._w)
846
+ if status == 'none': status = None
847
+ return status
848
+ def option_add(self, pattern, value, priority = None):
849
+ """Set a VALUE (second parameter) for an option
850
+ PATTERN (first parameter).
851
+
852
+ An optional third parameter gives the numeric priority
853
+ (defaults to 80)."""
854
+ self.tk.call('option', 'add', pattern, value, priority)
855
+ def option_clear(self):
856
+ """Clear the option database.
857
+
858
+ It will be reloaded if option_add is called."""
859
+ self.tk.call('option', 'clear')
860
+ def option_get(self, name, className):
861
+ """Return the value for an option NAME for this widget
862
+ with CLASSNAME.
863
+
864
+ Values with higher priority override lower values."""
865
+ return self.tk.call('option', 'get', self._w, name, className)
866
+ def option_readfile(self, fileName, priority = None):
867
+ """Read file FILENAME into the option database.
868
+
869
+ An optional second parameter gives the numeric
870
+ priority."""
871
+ self.tk.call('option', 'readfile', fileName, priority)
872
+ def selection_clear(self, **kw):
873
+ """Clear the current X selection."""
874
+ if 'displayof' not in kw: kw['displayof'] = self._w
875
+ self.tk.call(('selection', 'clear') + self._options(kw))
876
+ def selection_get(self, **kw):
877
+ """Return the contents of the current X selection.
878
+
879
+ A keyword parameter selection specifies the name of
880
+ the selection and defaults to PRIMARY. A keyword
881
+ parameter displayof specifies a widget on the display
882
+ to use. A keyword parameter type specifies the form of data to be
883
+ fetched, defaulting to STRING except on X11, where UTF8_STRING is tried
884
+ before STRING."""
885
+ if 'displayof' not in kw: kw['displayof'] = self._w
886
+ if 'type' not in kw and self._windowingsystem == 'x11':
887
+ try:
888
+ kw['type'] = 'UTF8_STRING'
889
+ return self.tk.call(('selection', 'get') + self._options(kw))
890
+ except TclError:
891
+ del kw['type']
892
+ return self.tk.call(('selection', 'get') + self._options(kw))
893
+ def selection_handle(self, command, **kw):
894
+ """Specify a function COMMAND to call if the X
895
+ selection owned by this widget is queried by another
896
+ application.
897
+
898
+ This function must return the contents of the
899
+ selection. The function will be called with the
900
+ arguments OFFSET and LENGTH which allows the chunking
901
+ of very long selections. The following keyword
902
+ parameters can be provided:
903
+ selection - name of the selection (default PRIMARY),
904
+ type - type of the selection (e.g. STRING, FILE_NAME)."""
905
+ name = self._register(command)
906
+ self.tk.call(('selection', 'handle') + self._options(kw)
907
+ + (self._w, name))
908
+ def selection_own(self, **kw):
909
+ """Become owner of X selection.
910
+
911
+ A keyword parameter selection specifies the name of
912
+ the selection (default PRIMARY)."""
913
+ self.tk.call(('selection', 'own') +
914
+ self._options(kw) + (self._w,))
915
+ def selection_own_get(self, **kw):
916
+ """Return owner of X selection.
917
+
918
+ The following keyword parameter can
919
+ be provided:
920
+ selection - name of the selection (default PRIMARY),
921
+ type - type of the selection (e.g. STRING, FILE_NAME)."""
922
+ if 'displayof' not in kw: kw['displayof'] = self._w
923
+ name = self.tk.call(('selection', 'own') + self._options(kw))
924
+ if not name: return None
925
+ return self._nametowidget(name)
926
+ def send(self, interp, cmd, *args):
927
+ """Send Tcl command CMD to different interpreter INTERP to be executed."""
928
+ return self.tk.call(('send', interp, cmd) + args)
929
+ def lower(self, belowThis=None):
930
+ """Lower this widget in the stacking order."""
931
+ self.tk.call('lower', self._w, belowThis)
932
+ def tkraise(self, aboveThis=None):
933
+ """Raise this widget in the stacking order."""
934
+ self.tk.call('raise', self._w, aboveThis)
935
+ lift = tkraise
936
+ def winfo_atom(self, name, displayof=0):
937
+ """Return integer which represents atom NAME."""
938
+ args = ('winfo', 'atom') + self._displayof(displayof) + (name,)
939
+ return self.tk.getint(self.tk.call(args))
940
+ def winfo_atomname(self, id, displayof=0):
941
+ """Return name of atom with identifier ID."""
942
+ args = ('winfo', 'atomname') \
943
+ + self._displayof(displayof) + (id,)
944
+ return self.tk.call(args)
945
+ def winfo_cells(self):
946
+ """Return number of cells in the colormap for this widget."""
947
+ return self.tk.getint(
948
+ self.tk.call('winfo', 'cells', self._w))
949
+ def winfo_children(self):
950
+ """Return a list of all widgets which are children of this widget."""
951
+ result = []
952
+ for child in self.tk.splitlist(
953
+ self.tk.call('winfo', 'children', self._w)):
954
+ try:
955
+ # Tcl sometimes returns extra windows, e.g. for
956
+ # menus; those need to be skipped
957
+ result.append(self._nametowidget(child))
958
+ except KeyError:
959
+ pass
960
+ return result
961
+
962
+ def winfo_class(self):
963
+ """Return window class name of this widget."""
964
+ return self.tk.call('winfo', 'class', self._w)
965
+ def winfo_colormapfull(self):
966
+ """Return true if at the last color request the colormap was full."""
967
+ return self.tk.getboolean(
968
+ self.tk.call('winfo', 'colormapfull', self._w))
969
+ def winfo_containing(self, rootX, rootY, displayof=0):
970
+ """Return the widget which is at the root coordinates ROOTX, ROOTY."""
971
+ args = ('winfo', 'containing') \
972
+ + self._displayof(displayof) + (rootX, rootY)
973
+ name = self.tk.call(args)
974
+ if not name: return None
975
+ return self._nametowidget(name)
976
+ def winfo_depth(self):
977
+ """Return the number of bits per pixel."""
978
+ return self.tk.getint(self.tk.call('winfo', 'depth', self._w))
979
+ def winfo_exists(self):
980
+ """Return true if this widget exists."""
981
+ return self.tk.getint(
982
+ self.tk.call('winfo', 'exists', self._w))
983
+ def winfo_fpixels(self, number):
984
+ """Return the number of pixels for the given distance NUMBER
985
+ (e.g. "3c") as float."""
986
+ return self.tk.getdouble(self.tk.call(
987
+ 'winfo', 'fpixels', self._w, number))
988
+ def winfo_geometry(self):
989
+ """Return geometry string for this widget in the form "widthxheight+X+Y"."""
990
+ return self.tk.call('winfo', 'geometry', self._w)
991
+ def winfo_height(self):
992
+ """Return height of this widget."""
993
+ return self.tk.getint(
994
+ self.tk.call('winfo', 'height', self._w))
995
+ def winfo_id(self):
996
+ """Return identifier ID for this widget."""
997
+ return int(self.tk.call('winfo', 'id', self._w), 0)
998
+ def winfo_interps(self, displayof=0):
999
+ """Return the name of all Tcl interpreters for this display."""
1000
+ args = ('winfo', 'interps') + self._displayof(displayof)
1001
+ return self.tk.splitlist(self.tk.call(args))
1002
+ def winfo_ismapped(self):
1003
+ """Return true if this widget is mapped."""
1004
+ return self.tk.getint(
1005
+ self.tk.call('winfo', 'ismapped', self._w))
1006
+ def winfo_manager(self):
1007
+ """Return the window manager name for this widget."""
1008
+ return self.tk.call('winfo', 'manager', self._w)
1009
+ def winfo_name(self):
1010
+ """Return the name of this widget."""
1011
+ return self.tk.call('winfo', 'name', self._w)
1012
+ def winfo_parent(self):
1013
+ """Return the name of the parent of this widget."""
1014
+ return self.tk.call('winfo', 'parent', self._w)
1015
+ def winfo_pathname(self, id, displayof=0):
1016
+ """Return the pathname of the widget given by ID."""
1017
+ args = ('winfo', 'pathname') \
1018
+ + self._displayof(displayof) + (id,)
1019
+ return self.tk.call(args)
1020
+ def winfo_pixels(self, number):
1021
+ """Rounded integer value of winfo_fpixels."""
1022
+ return self.tk.getint(
1023
+ self.tk.call('winfo', 'pixels', self._w, number))
1024
+ def winfo_pointerx(self):
1025
+ """Return the x coordinate of the pointer on the root window."""
1026
+ return self.tk.getint(
1027
+ self.tk.call('winfo', 'pointerx', self._w))
1028
+ def winfo_pointerxy(self):
1029
+ """Return a tuple of x and y coordinates of the pointer on the root window."""
1030
+ return self._getints(
1031
+ self.tk.call('winfo', 'pointerxy', self._w))
1032
+ def winfo_pointery(self):
1033
+ """Return the y coordinate of the pointer on the root window."""
1034
+ return self.tk.getint(
1035
+ self.tk.call('winfo', 'pointery', self._w))
1036
+ def winfo_reqheight(self):
1037
+ """Return requested height of this widget."""
1038
+ return self.tk.getint(
1039
+ self.tk.call('winfo', 'reqheight', self._w))
1040
+ def winfo_reqwidth(self):
1041
+ """Return requested width of this widget."""
1042
+ return self.tk.getint(
1043
+ self.tk.call('winfo', 'reqwidth', self._w))
1044
+ def winfo_rgb(self, color):
1045
+ """Return tuple of decimal values for red, green, blue for
1046
+ COLOR in this widget."""
1047
+ return self._getints(
1048
+ self.tk.call('winfo', 'rgb', self._w, color))
1049
+ def winfo_rootx(self):
1050
+ """Return x coordinate of upper left corner of this widget on the
1051
+ root window."""
1052
+ return self.tk.getint(
1053
+ self.tk.call('winfo', 'rootx', self._w))
1054
+ def winfo_rooty(self):
1055
+ """Return y coordinate of upper left corner of this widget on the
1056
+ root window."""
1057
+ return self.tk.getint(
1058
+ self.tk.call('winfo', 'rooty', self._w))
1059
+ def winfo_screen(self):
1060
+ """Return the screen name of this widget."""
1061
+ return self.tk.call('winfo', 'screen', self._w)
1062
+ def winfo_screencells(self):
1063
+ """Return the number of the cells in the colormap of the screen
1064
+ of this widget."""
1065
+ return self.tk.getint(
1066
+ self.tk.call('winfo', 'screencells', self._w))
1067
+ def winfo_screendepth(self):
1068
+ """Return the number of bits per pixel of the root window of the
1069
+ screen of this widget."""
1070
+ return self.tk.getint(
1071
+ self.tk.call('winfo', 'screendepth', self._w))
1072
+ def winfo_screenheight(self):
1073
+ """Return the number of pixels of the height of the screen of this widget
1074
+ in pixel."""
1075
+ return self.tk.getint(
1076
+ self.tk.call('winfo', 'screenheight', self._w))
1077
+ def winfo_screenmmheight(self):
1078
+ """Return the number of pixels of the height of the screen of
1079
+ this widget in mm."""
1080
+ return self.tk.getint(
1081
+ self.tk.call('winfo', 'screenmmheight', self._w))
1082
+ def winfo_screenmmwidth(self):
1083
+ """Return the number of pixels of the width of the screen of
1084
+ this widget in mm."""
1085
+ return self.tk.getint(
1086
+ self.tk.call('winfo', 'screenmmwidth', self._w))
1087
+ def winfo_screenvisual(self):
1088
+ """Return one of the strings directcolor, grayscale, pseudocolor,
1089
+ staticcolor, staticgray, or truecolor for the default
1090
+ colormodel of this screen."""
1091
+ return self.tk.call('winfo', 'screenvisual', self._w)
1092
+ def winfo_screenwidth(self):
1093
+ """Return the number of pixels of the width of the screen of
1094
+ this widget in pixel."""
1095
+ return self.tk.getint(
1096
+ self.tk.call('winfo', 'screenwidth', self._w))
1097
+ def winfo_server(self):
1098
+ """Return information of the X-Server of the screen of this widget in
1099
+ the form "XmajorRminor vendor vendorVersion"."""
1100
+ return self.tk.call('winfo', 'server', self._w)
1101
+ def winfo_toplevel(self):
1102
+ """Return the toplevel widget of this widget."""
1103
+ return self._nametowidget(self.tk.call(
1104
+ 'winfo', 'toplevel', self._w))
1105
+ def winfo_viewable(self):
1106
+ """Return true if the widget and all its higher ancestors are mapped."""
1107
+ return self.tk.getint(
1108
+ self.tk.call('winfo', 'viewable', self._w))
1109
+ def winfo_visual(self):
1110
+ """Return one of the strings directcolor, grayscale, pseudocolor,
1111
+ staticcolor, staticgray, or truecolor for the
1112
+ colormodel of this widget."""
1113
+ return self.tk.call('winfo', 'visual', self._w)
1114
+ def winfo_visualid(self):
1115
+ """Return the X identifier for the visual for this widget."""
1116
+ return self.tk.call('winfo', 'visualid', self._w)
1117
+ def winfo_visualsavailable(self, includeids=False):
1118
+ """Return a list of all visuals available for the screen
1119
+ of this widget.
1120
+
1121
+ Each item in the list consists of a visual name (see winfo_visual), a
1122
+ depth and if includeids is true is given also the X identifier."""
1123
+ data = self.tk.call('winfo', 'visualsavailable', self._w,
1124
+ 'includeids' if includeids else None)
1125
+ data = [self.tk.splitlist(x) for x in self.tk.splitlist(data)]
1126
+ return [self.__winfo_parseitem(x) for x in data]
1127
+ def __winfo_parseitem(self, t):
1128
+ """Internal function."""
1129
+ return t[:1] + tuple(map(self.__winfo_getint, t[1:]))
1130
+ def __winfo_getint(self, x):
1131
+ """Internal function."""
1132
+ return int(x, 0)
1133
+ def winfo_vrootheight(self):
1134
+ """Return the height of the virtual root window associated with this
1135
+ widget in pixels. If there is no virtual root window return the
1136
+ height of the screen."""
1137
+ return self.tk.getint(
1138
+ self.tk.call('winfo', 'vrootheight', self._w))
1139
+ def winfo_vrootwidth(self):
1140
+ """Return the width of the virtual root window associated with this
1141
+ widget in pixel. If there is no virtual root window return the
1142
+ width of the screen."""
1143
+ return self.tk.getint(
1144
+ self.tk.call('winfo', 'vrootwidth', self._w))
1145
+ def winfo_vrootx(self):
1146
+ """Return the x offset of the virtual root relative to the root
1147
+ window of the screen of this widget."""
1148
+ return self.tk.getint(
1149
+ self.tk.call('winfo', 'vrootx', self._w))
1150
+ def winfo_vrooty(self):
1151
+ """Return the y offset of the virtual root relative to the root
1152
+ window of the screen of this widget."""
1153
+ return self.tk.getint(
1154
+ self.tk.call('winfo', 'vrooty', self._w))
1155
+ def winfo_width(self):
1156
+ """Return the width of this widget."""
1157
+ return self.tk.getint(
1158
+ self.tk.call('winfo', 'width', self._w))
1159
+ def winfo_x(self):
1160
+ """Return the x coordinate of the upper left corner of this widget
1161
+ in the parent."""
1162
+ return self.tk.getint(
1163
+ self.tk.call('winfo', 'x', self._w))
1164
+ def winfo_y(self):
1165
+ """Return the y coordinate of the upper left corner of this widget
1166
+ in the parent."""
1167
+ return self.tk.getint(
1168
+ self.tk.call('winfo', 'y', self._w))
1169
+ def update(self):
1170
+ """Enter event loop until all pending events have been processed by Tcl."""
1171
+ self.tk.call('update')
1172
+ def update_idletasks(self):
1173
+ """Enter event loop until all idle callbacks have been called. This
1174
+ will update the display of windows but not process events caused by
1175
+ the user."""
1176
+ self.tk.call('update', 'idletasks')
1177
+ def bindtags(self, tagList=None):
1178
+ """Set or get the list of bindtags for this widget.
1179
+
1180
+ With no argument return the list of all bindtags associated with
1181
+ this widget. With a list of strings as argument the bindtags are
1182
+ set to this list. The bindtags determine in which order events are
1183
+ processed (see bind)."""
1184
+ if tagList is None:
1185
+ return self.tk.splitlist(
1186
+ self.tk.call('bindtags', self._w))
1187
+ else:
1188
+ self.tk.call('bindtags', self._w, tagList)
1189
+ def _bind(self, what, sequence, func, add, needcleanup=1):
1190
+ """Internal function."""
1191
+ if isinstance(func, str):
1192
+ self.tk.call(what + (sequence, func))
1193
+ elif func:
1194
+ funcid = self._register(func, self._substitute,
1195
+ needcleanup)
1196
+ cmd = ('%sif {"[%s %s]" == "break"} break\n'
1197
+ %
1198
+ (add and '+' or '',
1199
+ funcid, self._subst_format_str))
1200
+ self.tk.call(what + (sequence, cmd))
1201
+ return funcid
1202
+ elif sequence:
1203
+ return self.tk.call(what + (sequence,))
1204
+ else:
1205
+ return self.tk.splitlist(self.tk.call(what))
1206
+ def bind(self, sequence=None, func=None, add=None):
1207
+ """Bind to this widget at event SEQUENCE a call to function FUNC.
1208
+
1209
+ SEQUENCE is a string of concatenated event
1210
+ patterns. An event pattern is of the form
1211
+ <MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is one
1212
+ of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4,
1213
+ Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3,
1214
+ B3, Alt, Button4, B4, Double, Button5, B5 Triple,
1215
+ Mod1, M1. TYPE is one of Activate, Enter, Map,
1216
+ ButtonPress, Button, Expose, Motion, ButtonRelease
1217
+ FocusIn, MouseWheel, Circulate, FocusOut, Property,
1218
+ Colormap, Gravity Reparent, Configure, KeyPress, Key,
1219
+ Unmap, Deactivate, KeyRelease Visibility, Destroy,
1220
+ Leave and DETAIL is the button number for ButtonPress,
1221
+ ButtonRelease and DETAIL is the Keysym for KeyPress and
1222
+ KeyRelease. Examples are
1223
+ <Control-Button-1> for pressing Control and mouse button 1 or
1224
+ <Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
1225
+ An event pattern can also be a virtual event of the form
1226
+ <<AString>> where AString can be arbitrary. This
1227
+ event can be generated by event_generate.
1228
+ If events are concatenated they must appear shortly
1229
+ after each other.
1230
+
1231
+ FUNC will be called if the event sequence occurs with an
1232
+ instance of Event as argument. If the return value of FUNC is
1233
+ "break" no further bound function is invoked.
1234
+
1235
+ An additional boolean parameter ADD specifies whether FUNC will
1236
+ be called additionally to the other bound function or whether
1237
+ it will replace the previous function.
1238
+
1239
+ Bind will return an identifier to allow deletion of the bound function with
1240
+ unbind without memory leak.
1241
+
1242
+ If FUNC or SEQUENCE is omitted the bound function or list
1243
+ of bound events are returned."""
1244
+
1245
+ return self._bind(('bind', self._w), sequence, func, add)
1246
+ def unbind(self, sequence, funcid=None):
1247
+ """Unbind for this widget for event SEQUENCE the
1248
+ function identified with FUNCID."""
1249
+ self.tk.call('bind', self._w, sequence, '')
1250
+ if funcid:
1251
+ self.deletecommand(funcid)
1252
+ def bind_all(self, sequence=None, func=None, add=None):
1253
+ """Bind to all widgets at an event SEQUENCE a call to function FUNC.
1254
+ An additional boolean parameter ADD specifies whether FUNC will
1255
+ be called additionally to the other bound function or whether
1256
+ it will replace the previous function. See bind for the return value."""
1257
+ return self._bind(('bind', 'all'), sequence, func, add, 0)
1258
+ def unbind_all(self, sequence):
1259
+ """Unbind for all widgets for event SEQUENCE all functions."""
1260
+ self.tk.call('bind', 'all' , sequence, '')
1261
+ def bind_class(self, className, sequence=None, func=None, add=None):
1262
+
1263
+ """Bind to widgets with bindtag CLASSNAME at event
1264
+ SEQUENCE a call of function FUNC. An additional
1265
+ boolean parameter ADD specifies whether FUNC will be
1266
+ called additionally to the other bound function or
1267
+ whether it will replace the previous function. See bind for
1268
+ the return value."""
1269
+
1270
+ return self._bind(('bind', className), sequence, func, add, 0)
1271
+ def unbind_class(self, className, sequence):
1272
+ """Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE
1273
+ all functions."""
1274
+ self.tk.call('bind', className , sequence, '')
1275
+ def mainloop(self, n=0):
1276
+ """Call the mainloop of Tk."""
1277
+ self.tk.mainloop(n)
1278
+ def quit(self):
1279
+ """Quit the Tcl interpreter. All widgets will be destroyed."""
1280
+ self.tk.quit()
1281
+ def _getints(self, string):
1282
+ """Internal function."""
1283
+ if string:
1284
+ return tuple(map(self.tk.getint, self.tk.splitlist(string)))
1285
+ def _getdoubles(self, string):
1286
+ """Internal function."""
1287
+ if string:
1288
+ return tuple(map(self.tk.getdouble, self.tk.splitlist(string)))
1289
+ def _getboolean(self, string):
1290
+ """Internal function."""
1291
+ if string:
1292
+ return self.tk.getboolean(string)
1293
+ def _displayof(self, displayof):
1294
+ """Internal function."""
1295
+ if displayof:
1296
+ return ('-displayof', displayof)
1297
+ if displayof is None:
1298
+ return ('-displayof', self._w)
1299
+ return ()
1300
+ @property
1301
+ def _windowingsystem(self):
1302
+ """Internal function."""
1303
+ try:
1304
+ return self._root()._windowingsystem_cached
1305
+ except AttributeError:
1306
+ ws = self._root()._windowingsystem_cached = \
1307
+ self.tk.call('tk', 'windowingsystem')
1308
+ return ws
1309
+ def _options(self, cnf, kw = None):
1310
+ """Internal function."""
1311
+ if kw:
1312
+ cnf = _cnfmerge((cnf, kw))
1313
+ else:
1314
+ cnf = _cnfmerge(cnf)
1315
+ res = ()
1316
+ for k, v in cnf.items():
1317
+ if v is not None:
1318
+ if k[-1] == '_': k = k[:-1]
1319
+ if callable(v):
1320
+ v = self._register(v)
1321
+ elif isinstance(v, (tuple, list)):
1322
+ nv = []
1323
+ for item in v:
1324
+ if isinstance(item, int):
1325
+ nv.append(str(item))
1326
+ elif isinstance(item, str):
1327
+ nv.append(_stringify(item))
1328
+ else:
1329
+ break
1330
+ else:
1331
+ v = ' '.join(nv)
1332
+ res = res + ('-'+k, v)
1333
+ return res
1334
+ def nametowidget(self, name):
1335
+ """Return the Tkinter instance of a widget identified by
1336
+ its Tcl name NAME."""
1337
+ name = str(name).split('.')
1338
+ w = self
1339
+
1340
+ if not name[0]:
1341
+ w = w._root()
1342
+ name = name[1:]
1343
+
1344
+ for n in name:
1345
+ if not n:
1346
+ break
1347
+ w = w.children[n]
1348
+
1349
+ return w
1350
+ _nametowidget = nametowidget
1351
+ def _register(self, func, subst=None, needcleanup=1):
1352
+ """Return a newly created Tcl function. If this
1353
+ function is called, the Python function FUNC will
1354
+ be executed. An optional function SUBST can
1355
+ be given which will be executed before FUNC."""
1356
+ f = CallWrapper(func, subst, self).__call__
1357
+ name = repr(id(f))
1358
+ try:
1359
+ func = func.__func__
1360
+ except AttributeError:
1361
+ pass
1362
+ try:
1363
+ name = name + func.__name__
1364
+ except AttributeError:
1365
+ pass
1366
+ self.tk.createcommand(name, f)
1367
+ if needcleanup:
1368
+ if self._tclCommands is None:
1369
+ self._tclCommands = []
1370
+ self._tclCommands.append(name)
1371
+ return name
1372
+ register = _register
1373
+ def _root(self):
1374
+ """Internal function."""
1375
+ w = self
1376
+ while w.master: w = w.master
1377
+ return w
1378
+ _subst_format = ('%#', '%b', '%f', '%h', '%k',
1379
+ '%s', '%t', '%w', '%x', '%y',
1380
+ '%A', '%E', '%K', '%N', '%W', '%T', '%X', '%Y', '%D')
1381
+ _subst_format_str = " ".join(_subst_format)
1382
+ def _substitute(self, *args):
1383
+ """Internal function."""
1384
+ if len(args) != len(self._subst_format): return args
1385
+ getboolean = self.tk.getboolean
1386
+
1387
+ getint = self.tk.getint
1388
+ def getint_event(s):
1389
+ """Tk changed behavior in 8.4.2, returning "??" rather more often."""
1390
+ try:
1391
+ return getint(s)
1392
+ except (ValueError, TclError):
1393
+ return s
1394
+
1395
+ nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args
1396
+ # Missing: (a, c, d, m, o, v, B, R)
1397
+ e = Event()
1398
+ # serial field: valid for all events
1399
+ # number of button: ButtonPress and ButtonRelease events only
1400
+ # height field: Configure, ConfigureRequest, Create,
1401
+ # ResizeRequest, and Expose events only
1402
+ # keycode field: KeyPress and KeyRelease events only
1403
+ # time field: "valid for events that contain a time field"
1404
+ # width field: Configure, ConfigureRequest, Create, ResizeRequest,
1405
+ # and Expose events only
1406
+ # x field: "valid for events that contain an x field"
1407
+ # y field: "valid for events that contain a y field"
1408
+ # keysym as decimal: KeyPress and KeyRelease events only
1409
+ # x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,
1410
+ # KeyRelease, and Motion events
1411
+ e.serial = getint(nsign)
1412
+ e.num = getint_event(b)
1413
+ try: e.focus = getboolean(f)
1414
+ except TclError: pass
1415
+ e.height = getint_event(h)
1416
+ e.keycode = getint_event(k)
1417
+ e.state = getint_event(s)
1418
+ e.time = getint_event(t)
1419
+ e.width = getint_event(w)
1420
+ e.x = getint_event(x)
1421
+ e.y = getint_event(y)
1422
+ e.char = A
1423
+ try: e.send_event = getboolean(E)
1424
+ except TclError: pass
1425
+ e.keysym = K
1426
+ e.keysym_num = getint_event(N)
1427
+ try:
1428
+ e.type = EventType(T)
1429
+ except ValueError:
1430
+ e.type = T
1431
+ try:
1432
+ e.widget = self._nametowidget(W)
1433
+ except KeyError:
1434
+ e.widget = W
1435
+ e.x_root = getint_event(X)
1436
+ e.y_root = getint_event(Y)
1437
+ try:
1438
+ e.delta = getint(D)
1439
+ except (ValueError, TclError):
1440
+ e.delta = 0
1441
+ return (e,)
1442
+ def _report_exception(self):
1443
+ """Internal function."""
1444
+ exc, val, tb = sys.exc_info()
1445
+ root = self._root()
1446
+ root.report_callback_exception(exc, val, tb)
1447
+
1448
+ def _getconfigure(self, *args):
1449
+ """Call Tcl configure command and return the result as a dict."""
1450
+ cnf = {}
1451
+ for x in self.tk.splitlist(self.tk.call(*args)):
1452
+ x = self.tk.splitlist(x)
1453
+ cnf[x[0][1:]] = (x[0][1:],) + x[1:]
1454
+ return cnf
1455
+
1456
+ def _getconfigure1(self, *args):
1457
+ x = self.tk.splitlist(self.tk.call(*args))
1458
+ return (x[0][1:],) + x[1:]
1459
+
1460
+ def _configure(self, cmd, cnf, kw):
1461
+ """Internal function."""
1462
+ if kw:
1463
+ cnf = _cnfmerge((cnf, kw))
1464
+ elif cnf:
1465
+ cnf = _cnfmerge(cnf)
1466
+ if cnf is None:
1467
+ return self._getconfigure(_flatten((self._w, cmd)))
1468
+ if isinstance(cnf, str):
1469
+ return self._getconfigure1(_flatten((self._w, cmd, '-'+cnf)))
1470
+ self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
1471
+ # These used to be defined in Widget:
1472
+ def configure(self, cnf=None, **kw):
1473
+ """Configure resources of a widget.
1474
+
1475
+ The values for resources are specified as keyword
1476
+ arguments. To get an overview about
1477
+ the allowed keyword arguments call the method keys.
1478
+ """
1479
+ return self._configure('configure', cnf, kw)
1480
+ config = configure
1481
+ def cget(self, key):
1482
+ """Return the resource value for a KEY given as string."""
1483
+ return self.tk.call(self._w, 'cget', '-' + key)
1484
+ __getitem__ = cget
1485
+ def __setitem__(self, key, value):
1486
+ self.configure({key: value})
1487
+ def keys(self):
1488
+ """Return a list of all resource names of this widget."""
1489
+ splitlist = self.tk.splitlist
1490
+ return [splitlist(x)[0][1:] for x in
1491
+ splitlist(self.tk.call(self._w, 'configure'))]
1492
+ def __str__(self):
1493
+ """Return the window path name of this widget."""
1494
+ return self._w
1495
+
1496
+ def __repr__(self):
1497
+ return '<%s.%s object %s>' % (
1498
+ self.__class__.__module__, self.__class__.__qualname__, self._w)
1499
+
1500
+ # Pack methods that apply to the master
1501
+ _noarg_ = ['_noarg_']
1502
+ def pack_propagate(self, flag=_noarg_):
1503
+ """Set or get the status for propagation of geometry information.
1504
+
1505
+ A boolean argument specifies whether the geometry information
1506
+ of the slaves will determine the size of this widget. If no argument
1507
+ is given the current setting will be returned.
1508
+ """
1509
+ if flag is Misc._noarg_:
1510
+ return self._getboolean(self.tk.call(
1511
+ 'pack', 'propagate', self._w))
1512
+ else:
1513
+ self.tk.call('pack', 'propagate', self._w, flag)
1514
+ propagate = pack_propagate
1515
+ def pack_slaves(self):
1516
+ """Return a list of all slaves of this widget
1517
+ in its packing order."""
1518
+ return [self._nametowidget(x) for x in
1519
+ self.tk.splitlist(
1520
+ self.tk.call('pack', 'slaves', self._w))]
1521
+ slaves = pack_slaves
1522
+ # Place method that applies to the master
1523
+ def place_slaves(self):
1524
+ """Return a list of all slaves of this widget
1525
+ in its packing order."""
1526
+ return [self._nametowidget(x) for x in
1527
+ self.tk.splitlist(
1528
+ self.tk.call(
1529
+ 'place', 'slaves', self._w))]
1530
+ # Grid methods that apply to the master
1531
+ def grid_anchor(self, anchor=None): # new in Tk 8.5
1532
+ """The anchor value controls how to place the grid within the
1533
+ master when no row/column has any weight.
1534
+
1535
+ The default anchor is nw."""
1536
+ self.tk.call('grid', 'anchor', self._w, anchor)
1537
+ anchor = grid_anchor
1538
+ def grid_bbox(self, column=None, row=None, col2=None, row2=None):
1539
+ """Return a tuple of integer coordinates for the bounding
1540
+ box of this widget controlled by the geometry manager grid.
1541
+
1542
+ If COLUMN, ROW is given the bounding box applies from
1543
+ the cell with row and column 0 to the specified
1544
+ cell. If COL2 and ROW2 are given the bounding box
1545
+ starts at that cell.
1546
+
1547
+ The returned integers specify the offset of the upper left
1548
+ corner in the master widget and the width and height.
1549
+ """
1550
+ args = ('grid', 'bbox', self._w)
1551
+ if column is not None and row is not None:
1552
+ args = args + (column, row)
1553
+ if col2 is not None and row2 is not None:
1554
+ args = args + (col2, row2)
1555
+ return self._getints(self.tk.call(*args)) or None
1556
+ bbox = grid_bbox
1557
+
1558
+ def _gridconvvalue(self, value):
1559
+ if isinstance(value, (str, _tkinter.Tcl_Obj)):
1560
+ try:
1561
+ svalue = str(value)
1562
+ if not svalue:
1563
+ return None
1564
+ elif '.' in svalue:
1565
+ return self.tk.getdouble(svalue)
1566
+ else:
1567
+ return self.tk.getint(svalue)
1568
+ except (ValueError, TclError):
1569
+ pass
1570
+ return value
1571
+
1572
+ def _grid_configure(self, command, index, cnf, kw):
1573
+ """Internal function."""
1574
+ if isinstance(cnf, str) and not kw:
1575
+ if cnf[-1:] == '_':
1576
+ cnf = cnf[:-1]
1577
+ if cnf[:1] != '-':
1578
+ cnf = '-'+cnf
1579
+ options = (cnf,)
1580
+ else:
1581
+ options = self._options(cnf, kw)
1582
+ if not options:
1583
+ return _splitdict(
1584
+ self.tk,
1585
+ self.tk.call('grid', command, self._w, index),
1586
+ conv=self._gridconvvalue)
1587
+ res = self.tk.call(
1588
+ ('grid', command, self._w, index)
1589
+ + options)
1590
+ if len(options) == 1:
1591
+ return self._gridconvvalue(res)
1592
+
1593
+ def grid_columnconfigure(self, index, cnf={}, **kw):
1594
+ """Configure column INDEX of a grid.
1595
+
1596
+ Valid resources are minsize (minimum size of the column),
1597
+ weight (how much does additional space propagate to this column)
1598
+ and pad (how much space to let additionally)."""
1599
+ return self._grid_configure('columnconfigure', index, cnf, kw)
1600
+ columnconfigure = grid_columnconfigure
1601
+ def grid_location(self, x, y):
1602
+ """Return a tuple of column and row which identify the cell
1603
+ at which the pixel at position X and Y inside the master
1604
+ widget is located."""
1605
+ return self._getints(
1606
+ self.tk.call(
1607
+ 'grid', 'location', self._w, x, y)) or None
1608
+ def grid_propagate(self, flag=_noarg_):
1609
+ """Set or get the status for propagation of geometry information.
1610
+
1611
+ A boolean argument specifies whether the geometry information
1612
+ of the slaves will determine the size of this widget. If no argument
1613
+ is given, the current setting will be returned.
1614
+ """
1615
+ if flag is Misc._noarg_:
1616
+ return self._getboolean(self.tk.call(
1617
+ 'grid', 'propagate', self._w))
1618
+ else:
1619
+ self.tk.call('grid', 'propagate', self._w, flag)
1620
+ def grid_rowconfigure(self, index, cnf={}, **kw):
1621
+ """Configure row INDEX of a grid.
1622
+
1623
+ Valid resources are minsize (minimum size of the row),
1624
+ weight (how much does additional space propagate to this row)
1625
+ and pad (how much space to let additionally)."""
1626
+ return self._grid_configure('rowconfigure', index, cnf, kw)
1627
+ rowconfigure = grid_rowconfigure
1628
+ def grid_size(self):
1629
+ """Return a tuple of the number of column and rows in the grid."""
1630
+ return self._getints(
1631
+ self.tk.call('grid', 'size', self._w)) or None
1632
+ size = grid_size
1633
+ def grid_slaves(self, row=None, column=None):
1634
+ """Return a list of all slaves of this widget
1635
+ in its packing order."""
1636
+ args = ()
1637
+ if row is not None:
1638
+ args = args + ('-row', row)
1639
+ if column is not None:
1640
+ args = args + ('-column', column)
1641
+ return [self._nametowidget(x) for x in
1642
+ self.tk.splitlist(self.tk.call(
1643
+ ('grid', 'slaves', self._w) + args))]
1644
+
1645
+ # Support for the "event" command, new in Tk 4.2.
1646
+ # By Case Roole.
1647
+
1648
+ def event_add(self, virtual, *sequences):
1649
+ """Bind a virtual event VIRTUAL (of the form <<Name>>)
1650
+ to an event SEQUENCE such that the virtual event is triggered
1651
+ whenever SEQUENCE occurs."""
1652
+ args = ('event', 'add', virtual) + sequences
1653
+ self.tk.call(args)
1654
+
1655
+ def event_delete(self, virtual, *sequences):
1656
+ """Unbind a virtual event VIRTUAL from SEQUENCE."""
1657
+ args = ('event', 'delete', virtual) + sequences
1658
+ self.tk.call(args)
1659
+
1660
+ def event_generate(self, sequence, **kw):
1661
+ """Generate an event SEQUENCE. Additional
1662
+ keyword arguments specify parameter of the event
1663
+ (e.g. x, y, rootx, rooty)."""
1664
+ args = ('event', 'generate', self._w, sequence)
1665
+ for k, v in kw.items():
1666
+ args = args + ('-%s' % k, str(v))
1667
+ self.tk.call(args)
1668
+
1669
+ def event_info(self, virtual=None):
1670
+ """Return a list of all virtual events or the information
1671
+ about the SEQUENCE bound to the virtual event VIRTUAL."""
1672
+ return self.tk.splitlist(
1673
+ self.tk.call('event', 'info', virtual))
1674
+
1675
+ # Image related commands
1676
+
1677
+ def image_names(self):
1678
+ """Return a list of all existing image names."""
1679
+ return self.tk.splitlist(self.tk.call('image', 'names'))
1680
+
1681
+ def image_types(self):
1682
+ """Return a list of all available image types (e.g. photo bitmap)."""
1683
+ return self.tk.splitlist(self.tk.call('image', 'types'))
1684
+
1685
+
1686
+ class CallWrapper:
1687
+ """Internal class. Stores function to call when some user
1688
+ defined Tcl function is called e.g. after an event occurred."""
1689
+ def __init__(self, func, subst, widget):
1690
+ """Store FUNC, SUBST and WIDGET as members."""
1691
+ self.func = func
1692
+ self.subst = subst
1693
+ self.widget = widget
1694
+ def __call__(self, *args):
1695
+ """Apply first function SUBST to arguments, than FUNC."""
1696
+ try:
1697
+ if self.subst:
1698
+ args = self.subst(*args)
1699
+ return self.func(*args)
1700
+ except SystemExit:
1701
+ raise
1702
+ except:
1703
+ self.widget._report_exception()
1704
+
1705
+
1706
+ class XView:
1707
+ """Mix-in class for querying and changing the horizontal position
1708
+ of a widget's window."""
1709
+
1710
+ def xview(self, *args):
1711
+ """Query and change the horizontal position of the view."""
1712
+ res = self.tk.call(self._w, 'xview', *args)
1713
+ if not args:
1714
+ return self._getdoubles(res)
1715
+
1716
+ def xview_moveto(self, fraction):
1717
+ """Adjusts the view in the window so that FRACTION of the
1718
+ total width of the canvas is off-screen to the left."""
1719
+ self.tk.call(self._w, 'xview', 'moveto', fraction)
1720
+
1721
+ def xview_scroll(self, number, what):
1722
+ """Shift the x-view according to NUMBER which is measured in "units"
1723
+ or "pages" (WHAT)."""
1724
+ self.tk.call(self._w, 'xview', 'scroll', number, what)
1725
+
1726
+
1727
+ class YView:
1728
+ """Mix-in class for querying and changing the vertical position
1729
+ of a widget's window."""
1730
+
1731
+ def yview(self, *args):
1732
+ """Query and change the vertical position of the view."""
1733
+ res = self.tk.call(self._w, 'yview', *args)
1734
+ if not args:
1735
+ return self._getdoubles(res)
1736
+
1737
+ def yview_moveto(self, fraction):
1738
+ """Adjusts the view in the window so that FRACTION of the
1739
+ total height of the canvas is off-screen to the top."""
1740
+ self.tk.call(self._w, 'yview', 'moveto', fraction)
1741
+
1742
+ def yview_scroll(self, number, what):
1743
+ """Shift the y-view according to NUMBER which is measured in
1744
+ "units" or "pages" (WHAT)."""
1745
+ self.tk.call(self._w, 'yview', 'scroll', number, what)
1746
+
1747
+
1748
+ class Wm:
1749
+ """Provides functions for the communication with the window manager."""
1750
+
1751
+ def wm_aspect(self,
1752
+ minNumer=None, minDenom=None,
1753
+ maxNumer=None, maxDenom=None):
1754
+ """Instruct the window manager to set the aspect ratio (width/height)
1755
+ of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
1756
+ of the actual values if no argument is given."""
1757
+ return self._getints(
1758
+ self.tk.call('wm', 'aspect', self._w,
1759
+ minNumer, minDenom,
1760
+ maxNumer, maxDenom))
1761
+ aspect = wm_aspect
1762
+
1763
+ def wm_attributes(self, *args):
1764
+ """This subcommand returns or sets platform specific attributes
1765
+
1766
+ The first form returns a list of the platform specific flags and
1767
+ their values. The second form returns the value for the specific
1768
+ option. The third form sets one or more of the values. The values
1769
+ are as follows:
1770
+
1771
+ On Windows, -disabled gets or sets whether the window is in a
1772
+ disabled state. -toolwindow gets or sets the style of the window
1773
+ to toolwindow (as defined in the MSDN). -topmost gets or sets
1774
+ whether this is a topmost window (displays above all other
1775
+ windows).
1776
+
1777
+ On Macintosh, XXXXX
1778
+
1779
+ On Unix, there are currently no special attribute values.
1780
+ """
1781
+ args = ('wm', 'attributes', self._w) + args
1782
+ return self.tk.call(args)
1783
+ attributes=wm_attributes
1784
+
1785
+ def wm_client(self, name=None):
1786
+ """Store NAME in WM_CLIENT_MACHINE property of this widget. Return
1787
+ current value."""
1788
+ return self.tk.call('wm', 'client', self._w, name)
1789
+ client = wm_client
1790
+ def wm_colormapwindows(self, *wlist):
1791
+ """Store list of window names (WLIST) into WM_COLORMAPWINDOWS property
1792
+ of this widget. This list contains windows whose colormaps differ from their
1793
+ parents. Return current list of widgets if WLIST is empty."""
1794
+ if len(wlist) > 1:
1795
+ wlist = (wlist,) # Tk needs a list of windows here
1796
+ args = ('wm', 'colormapwindows', self._w) + wlist
1797
+ if wlist:
1798
+ self.tk.call(args)
1799
+ else:
1800
+ return [self._nametowidget(x)
1801
+ for x in self.tk.splitlist(self.tk.call(args))]
1802
+ colormapwindows = wm_colormapwindows
1803
+ def wm_command(self, value=None):
1804
+ """Store VALUE in WM_COMMAND property. It is the command
1805
+ which shall be used to invoke the application. Return current
1806
+ command if VALUE is None."""
1807
+ return self.tk.call('wm', 'command', self._w, value)
1808
+ command = wm_command
1809
+ def wm_deiconify(self):
1810
+ """Deiconify this widget. If it was never mapped it will not be mapped.
1811
+ On Windows it will raise this widget and give it the focus."""
1812
+ return self.tk.call('wm', 'deiconify', self._w)
1813
+ deiconify = wm_deiconify
1814
+ def wm_focusmodel(self, model=None):
1815
+ """Set focus model to MODEL. "active" means that this widget will claim
1816
+ the focus itself, "passive" means that the window manager shall give
1817
+ the focus. Return current focus model if MODEL is None."""
1818
+ return self.tk.call('wm', 'focusmodel', self._w, model)
1819
+ focusmodel = wm_focusmodel
1820
+ def wm_forget(self, window): # new in Tk 8.5
1821
+ """The window will be unmapped from the screen and will no longer
1822
+ be managed by wm. toplevel windows will be treated like frame
1823
+ windows once they are no longer managed by wm, however, the menu
1824
+ option configuration will be remembered and the menus will return
1825
+ once the widget is managed again."""
1826
+ self.tk.call('wm', 'forget', window)
1827
+ forget = wm_forget
1828
+ def wm_frame(self):
1829
+ """Return identifier for decorative frame of this widget if present."""
1830
+ return self.tk.call('wm', 'frame', self._w)
1831
+ frame = wm_frame
1832
+ def wm_geometry(self, newGeometry=None):
1833
+ """Set geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return
1834
+ current value if None is given."""
1835
+ return self.tk.call('wm', 'geometry', self._w, newGeometry)
1836
+ geometry = wm_geometry
1837
+ def wm_grid(self,
1838
+ baseWidth=None, baseHeight=None,
1839
+ widthInc=None, heightInc=None):
1840
+ """Instruct the window manager that this widget shall only be
1841
+ resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and
1842
+ height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the
1843
+ number of grid units requested in Tk_GeometryRequest."""
1844
+ return self._getints(self.tk.call(
1845
+ 'wm', 'grid', self._w,
1846
+ baseWidth, baseHeight, widthInc, heightInc))
1847
+ grid = wm_grid
1848
+ def wm_group(self, pathName=None):
1849
+ """Set the group leader widgets for related widgets to PATHNAME. Return
1850
+ the group leader of this widget if None is given."""
1851
+ return self.tk.call('wm', 'group', self._w, pathName)
1852
+ group = wm_group
1853
+ def wm_iconbitmap(self, bitmap=None, default=None):
1854
+ """Set bitmap for the iconified widget to BITMAP. Return
1855
+ the bitmap if None is given.
1856
+
1857
+ Under Windows, the DEFAULT parameter can be used to set the icon
1858
+ for the widget and any descendents that don't have an icon set
1859
+ explicitly. DEFAULT can be the relative path to a .ico file
1860
+ (example: root.iconbitmap(default='myicon.ico') ). See Tk
1861
+ documentation for more information."""
1862
+ if default:
1863
+ return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
1864
+ else:
1865
+ return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
1866
+ iconbitmap = wm_iconbitmap
1867
+ def wm_iconify(self):
1868
+ """Display widget as icon."""
1869
+ return self.tk.call('wm', 'iconify', self._w)
1870
+ iconify = wm_iconify
1871
+ def wm_iconmask(self, bitmap=None):
1872
+ """Set mask for the icon bitmap of this widget. Return the
1873
+ mask if None is given."""
1874
+ return self.tk.call('wm', 'iconmask', self._w, bitmap)
1875
+ iconmask = wm_iconmask
1876
+ def wm_iconname(self, newName=None):
1877
+ """Set the name of the icon for this widget. Return the name if
1878
+ None is given."""
1879
+ return self.tk.call('wm', 'iconname', self._w, newName)
1880
+ iconname = wm_iconname
1881
+ def wm_iconphoto(self, default=False, *args): # new in Tk 8.5
1882
+ """Sets the titlebar icon for this window based on the named photo
1883
+ images passed through args. If default is True, this is applied to
1884
+ all future created toplevels as well.
1885
+
1886
+ The data in the images is taken as a snapshot at the time of
1887
+ invocation. If the images are later changed, this is not reflected
1888
+ to the titlebar icons. Multiple images are accepted to allow
1889
+ different images sizes to be provided. The window manager may scale
1890
+ provided icons to an appropriate size.
1891
+
1892
+ On Windows, the images are packed into a Windows icon structure.
1893
+ This will override an icon specified to wm_iconbitmap, and vice
1894
+ versa.
1895
+
1896
+ On X, the images are arranged into the _NET_WM_ICON X property,
1897
+ which most modern window managers support. An icon specified by
1898
+ wm_iconbitmap may exist simultaneously.
1899
+
1900
+ On Macintosh, this currently does nothing."""
1901
+ if default:
1902
+ self.tk.call('wm', 'iconphoto', self._w, "-default", *args)
1903
+ else:
1904
+ self.tk.call('wm', 'iconphoto', self._w, *args)
1905
+ iconphoto = wm_iconphoto
1906
+ def wm_iconposition(self, x=None, y=None):
1907
+ """Set the position of the icon of this widget to X and Y. Return
1908
+ a tuple of the current values of X and X if None is given."""
1909
+ return self._getints(self.tk.call(
1910
+ 'wm', 'iconposition', self._w, x, y))
1911
+ iconposition = wm_iconposition
1912
+ def wm_iconwindow(self, pathName=None):
1913
+ """Set widget PATHNAME to be displayed instead of icon. Return the current
1914
+ value if None is given."""
1915
+ return self.tk.call('wm', 'iconwindow', self._w, pathName)
1916
+ iconwindow = wm_iconwindow
1917
+ def wm_manage(self, widget): # new in Tk 8.5
1918
+ """The widget specified will become a stand alone top-level window.
1919
+ The window will be decorated with the window managers title bar,
1920
+ etc."""
1921
+ self.tk.call('wm', 'manage', widget)
1922
+ manage = wm_manage
1923
+ def wm_maxsize(self, width=None, height=None):
1924
+ """Set max WIDTH and HEIGHT for this widget. If the window is gridded
1925
+ the values are given in grid units. Return the current values if None
1926
+ is given."""
1927
+ return self._getints(self.tk.call(
1928
+ 'wm', 'maxsize', self._w, width, height))
1929
+ maxsize = wm_maxsize
1930
+ def wm_minsize(self, width=None, height=None):
1931
+ """Set min WIDTH and HEIGHT for this widget. If the window is gridded
1932
+ the values are given in grid units. Return the current values if None
1933
+ is given."""
1934
+ return self._getints(self.tk.call(
1935
+ 'wm', 'minsize', self._w, width, height))
1936
+ minsize = wm_minsize
1937
+ def wm_overrideredirect(self, boolean=None):
1938
+ """Instruct the window manager to ignore this widget
1939
+ if BOOLEAN is given with 1. Return the current value if None
1940
+ is given."""
1941
+ return self._getboolean(self.tk.call(
1942
+ 'wm', 'overrideredirect', self._w, boolean))
1943
+ overrideredirect = wm_overrideredirect
1944
+ def wm_positionfrom(self, who=None):
1945
+ """Instruct the window manager that the position of this widget shall
1946
+ be defined by the user if WHO is "user", and by its own policy if WHO is
1947
+ "program"."""
1948
+ return self.tk.call('wm', 'positionfrom', self._w, who)
1949
+ positionfrom = wm_positionfrom
1950
+ def wm_protocol(self, name=None, func=None):
1951
+ """Bind function FUNC to command NAME for this widget.
1952
+ Return the function bound to NAME if None is given. NAME could be
1953
+ e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
1954
+ if callable(func):
1955
+ command = self._register(func)
1956
+ else:
1957
+ command = func
1958
+ return self.tk.call(
1959
+ 'wm', 'protocol', self._w, name, command)
1960
+ protocol = wm_protocol
1961
+ def wm_resizable(self, width=None, height=None):
1962
+ """Instruct the window manager whether this width can be resized
1963
+ in WIDTH or HEIGHT. Both values are boolean values."""
1964
+ return self.tk.call('wm', 'resizable', self._w, width, height)
1965
+ resizable = wm_resizable
1966
+ def wm_sizefrom(self, who=None):
1967
+ """Instruct the window manager that the size of this widget shall
1968
+ be defined by the user if WHO is "user", and by its own policy if WHO is
1969
+ "program"."""
1970
+ return self.tk.call('wm', 'sizefrom', self._w, who)
1971
+ sizefrom = wm_sizefrom
1972
+ def wm_state(self, newstate=None):
1973
+ """Query or set the state of this widget as one of normal, icon,
1974
+ iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only)."""
1975
+ return self.tk.call('wm', 'state', self._w, newstate)
1976
+ state = wm_state
1977
+ def wm_title(self, string=None):
1978
+ """Set the title of this widget."""
1979
+ return self.tk.call('wm', 'title', self._w, string)
1980
+ title = wm_title
1981
+ def wm_transient(self, master=None):
1982
+ """Instruct the window manager that this widget is transient
1983
+ with regard to widget MASTER."""
1984
+ return self.tk.call('wm', 'transient', self._w, master)
1985
+ transient = wm_transient
1986
+ def wm_withdraw(self):
1987
+ """Withdraw this widget from the screen such that it is unmapped
1988
+ and forgotten by the window manager. Re-draw it with wm_deiconify."""
1989
+ return self.tk.call('wm', 'withdraw', self._w)
1990
+ withdraw = wm_withdraw
1991
+
1992
+
1993
+ class Tk(Misc, Wm):
1994
+ """Toplevel widget of Tk which represents mostly the main window
1995
+ of an application. It has an associated Tcl interpreter."""
1996
+ _w = '.'
1997
+ def __init__(self, screenName=None, baseName=None, className='Tk',
1998
+ useTk=1, sync=0, use=None):
1999
+ """Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will
2000
+ be created. BASENAME will be used for the identification of the profile file (see
2001
+ readprofile).
2002
+ It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME
2003
+ is the name of the widget class."""
2004
+ self.master = None
2005
+ self.children = {}
2006
+ self._tkloaded = 0
2007
+ # to avoid recursions in the getattr code in case of failure, we
2008
+ # ensure that self.tk is always _something_.
2009
+ self.tk = None
2010
+ if baseName is None:
2011
+ import os
2012
+ baseName = os.path.basename(sys.argv[0])
2013
+ baseName, ext = os.path.splitext(baseName)
2014
+ if ext not in ('.py', '.pyc'):
2015
+ baseName = baseName + ext
2016
+ interactive = 0
2017
+ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
2018
+ if useTk:
2019
+ self._loadtk()
2020
+ if not sys.flags.ignore_environment:
2021
+ # Issue #16248: Honor the -E flag to avoid code injection.
2022
+ self.readprofile(baseName, className)
2023
+ def loadtk(self):
2024
+ if not self._tkloaded:
2025
+ self.tk.loadtk()
2026
+ self._loadtk()
2027
+ def _loadtk(self):
2028
+ self._tkloaded = 1
2029
+ global _default_root
2030
+ # Version sanity checks
2031
+ tk_version = self.tk.getvar('tk_version')
2032
+ if tk_version != _tkinter.TK_VERSION:
2033
+ raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
2034
+ % (_tkinter.TK_VERSION, tk_version))
2035
+ # Under unknown circumstances, tcl_version gets coerced to float
2036
+ tcl_version = str(self.tk.getvar('tcl_version'))
2037
+ if tcl_version != _tkinter.TCL_VERSION:
2038
+ raise RuntimeError("tcl.h version (%s) doesn't match libtcl.a version (%s)" \
2039
+ % (_tkinter.TCL_VERSION, tcl_version))
2040
+ # Create and register the tkerror and exit commands
2041
+ # We need to inline parts of _register here, _ register
2042
+ # would register differently-named commands.
2043
+ if self._tclCommands is None:
2044
+ self._tclCommands = []
2045
+ self.tk.createcommand('tkerror', _tkerror)
2046
+ self.tk.createcommand('exit', _exit)
2047
+ self._tclCommands.append('tkerror')
2048
+ self._tclCommands.append('exit')
2049
+ if _support_default_root and not _default_root:
2050
+ _default_root = self
2051
+ self.protocol("WM_DELETE_WINDOW", self.destroy)
2052
+ def destroy(self):
2053
+ """Destroy this and all descendants widgets. This will
2054
+ end the application of this Tcl interpreter."""
2055
+ for c in list(self.children.values()): c.destroy()
2056
+ self.tk.call('destroy', self._w)
2057
+ Misc.destroy(self)
2058
+ global _default_root
2059
+ if _support_default_root and _default_root is self:
2060
+ _default_root = None
2061
+ def readprofile(self, baseName, className):
2062
+ """Internal function. It reads BASENAME.tcl and CLASSNAME.tcl into
2063
+ the Tcl Interpreter and calls exec on the contents of BASENAME.py and
2064
+ CLASSNAME.py if such a file exists in the home directory."""
2065
+ import os
2066
+ if 'HOME' in os.environ: home = os.environ['HOME']
2067
+ else: home = os.curdir
2068
+ class_tcl = os.path.join(home, '.%s.tcl' % className)
2069
+ class_py = os.path.join(home, '.%s.py' % className)
2070
+ base_tcl = os.path.join(home, '.%s.tcl' % baseName)
2071
+ base_py = os.path.join(home, '.%s.py' % baseName)
2072
+ dir = {'self': self}
2073
+ exec('from tkinter import *', dir)
2074
+ if os.path.isfile(class_tcl):
2075
+ self.tk.call('source', class_tcl)
2076
+ if os.path.isfile(class_py):
2077
+ exec(open(class_py).read(), dir)
2078
+ if os.path.isfile(base_tcl):
2079
+ self.tk.call('source', base_tcl)
2080
+ if os.path.isfile(base_py):
2081
+ exec(open(base_py).read(), dir)
2082
+ def report_callback_exception(self, exc, val, tb):
2083
+ """Report callback exception on sys.stderr.
2084
+
2085
+ Applications may want to override this internal function, and
2086
+ should when sys.stderr is None."""
2087
+ import traceback
2088
+ print("Exception in Tkinter callback", file=sys.stderr)
2089
+ sys.last_type = exc
2090
+ sys.last_value = val
2091
+ sys.last_traceback = tb
2092
+ traceback.print_exception(exc, val, tb)
2093
+ def __getattr__(self, attr):
2094
+ "Delegate attribute access to the interpreter object"
2095
+ return getattr(self.tk, attr)
2096
+
2097
+ # Ideally, the classes Pack, Place and Grid disappear, the
2098
+ # pack/place/grid methods are defined on the Widget class, and
2099
+ # everybody uses w.pack_whatever(...) instead of Pack.whatever(w,
2100
+ # ...), with pack(), place() and grid() being short for
2101
+ # pack_configure(), place_configure() and grid_columnconfigure(), and
2102
+ # forget() being short for pack_forget(). As a practical matter, I'm
2103
+ # afraid that there is too much code out there that may be using the
2104
+ # Pack, Place or Grid class, so I leave them intact -- but only as
2105
+ # backwards compatibility features. Also note that those methods that
2106
+ # take a master as argument (e.g. pack_propagate) have been moved to
2107
+ # the Misc class (which now incorporates all methods common between
2108
+ # toplevel and interior widgets). Again, for compatibility, these are
2109
+ # copied into the Pack, Place or Grid class.
2110
+
2111
+
2112
+ def Tcl(screenName=None, baseName=None, className='Tk', useTk=0):
2113
+ return Tk(screenName, baseName, className, useTk)
2114
+
2115
+ class Pack:
2116
+ """Geometry manager Pack.
2117
+
2118
+ Base class to use the methods pack_* in every widget."""
2119
+ def pack_configure(self, cnf={}, **kw):
2120
+ """Pack a widget in the parent widget. Use as options:
2121
+ after=widget - pack it after you have packed widget
2122
+ anchor=NSEW (or subset) - position widget according to
2123
+ given direction
2124
+ before=widget - pack it before you will pack widget
2125
+ expand=bool - expand widget if parent size grows
2126
+ fill=NONE or X or Y or BOTH - fill widget if widget grows
2127
+ in=master - use master to contain this widget
2128
+ in_=master - see 'in' option description
2129
+ ipadx=amount - add internal padding in x direction
2130
+ ipady=amount - add internal padding in y direction
2131
+ padx=amount - add padding in x direction
2132
+ pady=amount - add padding in y direction
2133
+ side=TOP or BOTTOM or LEFT or RIGHT - where to add this widget.
2134
+ """
2135
+ self.tk.call(
2136
+ ('pack', 'configure', self._w)
2137
+ + self._options(cnf, kw))
2138
+ pack = configure = config = pack_configure
2139
+ def pack_forget(self):
2140
+ """Unmap this widget and do not use it for the packing order."""
2141
+ self.tk.call('pack', 'forget', self._w)
2142
+ forget = pack_forget
2143
+ def pack_info(self):
2144
+ """Return information about the packing options
2145
+ for this widget."""
2146
+ d = _splitdict(self.tk, self.tk.call('pack', 'info', self._w))
2147
+ if 'in' in d:
2148
+ d['in'] = self.nametowidget(d['in'])
2149
+ return d
2150
+ info = pack_info
2151
+ propagate = pack_propagate = Misc.pack_propagate
2152
+ slaves = pack_slaves = Misc.pack_slaves
2153
+
2154
+ class Place:
2155
+ """Geometry manager Place.
2156
+
2157
+ Base class to use the methods place_* in every widget."""
2158
+ def place_configure(self, cnf={}, **kw):
2159
+ """Place a widget in the parent widget. Use as options:
2160
+ in=master - master relative to which the widget is placed
2161
+ in_=master - see 'in' option description
2162
+ x=amount - locate anchor of this widget at position x of master
2163
+ y=amount - locate anchor of this widget at position y of master
2164
+ relx=amount - locate anchor of this widget between 0.0 and 1.0
2165
+ relative to width of master (1.0 is right edge)
2166
+ rely=amount - locate anchor of this widget between 0.0 and 1.0
2167
+ relative to height of master (1.0 is bottom edge)
2168
+ anchor=NSEW (or subset) - position anchor according to given direction
2169
+ width=amount - width of this widget in pixel
2170
+ height=amount - height of this widget in pixel
2171
+ relwidth=amount - width of this widget between 0.0 and 1.0
2172
+ relative to width of master (1.0 is the same width
2173
+ as the master)
2174
+ relheight=amount - height of this widget between 0.0 and 1.0
2175
+ relative to height of master (1.0 is the same
2176
+ height as the master)
2177
+ bordermode="inside" or "outside" - whether to take border width of
2178
+ master widget into account
2179
+ """
2180
+ self.tk.call(
2181
+ ('place', 'configure', self._w)
2182
+ + self._options(cnf, kw))
2183
+ place = configure = config = place_configure
2184
+ def place_forget(self):
2185
+ """Unmap this widget."""
2186
+ self.tk.call('place', 'forget', self._w)
2187
+ forget = place_forget
2188
+ def place_info(self):
2189
+ """Return information about the placing options
2190
+ for this widget."""
2191
+ d = _splitdict(self.tk, self.tk.call('place', 'info', self._w))
2192
+ if 'in' in d:
2193
+ d['in'] = self.nametowidget(d['in'])
2194
+ return d
2195
+ info = place_info
2196
+ slaves = place_slaves = Misc.place_slaves
2197
+
2198
+ class Grid:
2199
+ """Geometry manager Grid.
2200
+
2201
+ Base class to use the methods grid_* in every widget."""
2202
+ # Thanks to Masazumi Yoshikawa (yosikawa@isi.edu)
2203
+ def grid_configure(self, cnf={}, **kw):
2204
+ """Position a widget in the parent widget in a grid. Use as options:
2205
+ column=number - use cell identified with given column (starting with 0)
2206
+ columnspan=number - this widget will span several columns
2207
+ in=master - use master to contain this widget
2208
+ in_=master - see 'in' option description
2209
+ ipadx=amount - add internal padding in x direction
2210
+ ipady=amount - add internal padding in y direction
2211
+ padx=amount - add padding in x direction
2212
+ pady=amount - add padding in y direction
2213
+ row=number - use cell identified with given row (starting with 0)
2214
+ rowspan=number - this widget will span several rows
2215
+ sticky=NSEW - if cell is larger on which sides will this
2216
+ widget stick to the cell boundary
2217
+ """
2218
+ self.tk.call(
2219
+ ('grid', 'configure', self._w)
2220
+ + self._options(cnf, kw))
2221
+ grid = configure = config = grid_configure
2222
+ bbox = grid_bbox = Misc.grid_bbox
2223
+ columnconfigure = grid_columnconfigure = Misc.grid_columnconfigure
2224
+ def grid_forget(self):
2225
+ """Unmap this widget."""
2226
+ self.tk.call('grid', 'forget', self._w)
2227
+ forget = grid_forget
2228
+ def grid_remove(self):
2229
+ """Unmap this widget but remember the grid options."""
2230
+ self.tk.call('grid', 'remove', self._w)
2231
+ def grid_info(self):
2232
+ """Return information about the options
2233
+ for positioning this widget in a grid."""
2234
+ d = _splitdict(self.tk, self.tk.call('grid', 'info', self._w))
2235
+ if 'in' in d:
2236
+ d['in'] = self.nametowidget(d['in'])
2237
+ return d
2238
+ info = grid_info
2239
+ location = grid_location = Misc.grid_location
2240
+ propagate = grid_propagate = Misc.grid_propagate
2241
+ rowconfigure = grid_rowconfigure = Misc.grid_rowconfigure
2242
+ size = grid_size = Misc.grid_size
2243
+ slaves = grid_slaves = Misc.grid_slaves
2244
+
2245
+ class BaseWidget(Misc):
2246
+ """Internal class."""
2247
+ def _setup(self, master, cnf):
2248
+ """Internal function. Sets up information about children."""
2249
+ if _support_default_root:
2250
+ global _default_root
2251
+ if not master:
2252
+ if not _default_root:
2253
+ _default_root = Tk()
2254
+ master = _default_root
2255
+ self.master = master
2256
+ self.tk = master.tk
2257
+ name = None
2258
+ if 'name' in cnf:
2259
+ name = cnf['name']
2260
+ del cnf['name']
2261
+ if not name:
2262
+ name = self.__class__.__name__.lower()
2263
+ if master._last_child_ids is None:
2264
+ master._last_child_ids = {}
2265
+ count = master._last_child_ids.get(name, 0) + 1
2266
+ master._last_child_ids[name] = count
2267
+ if count == 1:
2268
+ name = '!%s' % (name,)
2269
+ else:
2270
+ name = '!%s%d' % (name, count)
2271
+ self._name = name
2272
+ if master._w=='.':
2273
+ self._w = '.' + name
2274
+ else:
2275
+ self._w = master._w + '.' + name
2276
+ self.children = {}
2277
+ if self._name in self.master.children:
2278
+ self.master.children[self._name].destroy()
2279
+ self.master.children[self._name] = self
2280
+ def __init__(self, master, widgetName, cnf={}, kw={}, extra=()):
2281
+ """Construct a widget with the parent widget MASTER, a name WIDGETNAME
2282
+ and appropriate options."""
2283
+ if kw:
2284
+ cnf = _cnfmerge((cnf, kw))
2285
+ self.widgetName = widgetName
2286
+ BaseWidget._setup(self, master, cnf)
2287
+ if self._tclCommands is None:
2288
+ self._tclCommands = []
2289
+ classes = [(k, v) for k, v in cnf.items() if isinstance(k, type)]
2290
+ for k, v in classes:
2291
+ del cnf[k]
2292
+ self.tk.call(
2293
+ (widgetName, self._w) + extra + self._options(cnf))
2294
+ for k, v in classes:
2295
+ k.configure(self, v)
2296
+ def destroy(self):
2297
+ """Destroy this and all descendants widgets."""
2298
+ for c in list(self.children.values()): c.destroy()
2299
+ self.tk.call('destroy', self._w)
2300
+ if self._name in self.master.children:
2301
+ del self.master.children[self._name]
2302
+ Misc.destroy(self)
2303
+ def _do(self, name, args=()):
2304
+ # XXX Obsolete -- better use self.tk.call directly!
2305
+ return self.tk.call((self._w, name) + args)
2306
+
2307
+ class Widget(BaseWidget, Pack, Place, Grid):
2308
+ """Internal class.
2309
+
2310
+ Base class for a widget which can be positioned with the geometry managers
2311
+ Pack, Place or Grid."""
2312
+ pass
2313
+
2314
+ class Toplevel(BaseWidget, Wm):
2315
+ """Toplevel widget, e.g. for dialogs."""
2316
+ def __init__(self, master=None, cnf={}, **kw):
2317
+ """Construct a toplevel widget with the parent MASTER.
2318
+
2319
+ Valid resource names: background, bd, bg, borderwidth, class,
2320
+ colormap, container, cursor, height, highlightbackground,
2321
+ highlightcolor, highlightthickness, menu, relief, screen, takefocus,
2322
+ use, visual, width."""
2323
+ if kw:
2324
+ cnf = _cnfmerge((cnf, kw))
2325
+ extra = ()
2326
+ for wmkey in ['screen', 'class_', 'class', 'visual',
2327
+ 'colormap']:
2328
+ if wmkey in cnf:
2329
+ val = cnf[wmkey]
2330
+ # TBD: a hack needed because some keys
2331
+ # are not valid as keyword arguments
2332
+ if wmkey[-1] == '_': opt = '-'+wmkey[:-1]
2333
+ else: opt = '-'+wmkey
2334
+ extra = extra + (opt, val)
2335
+ del cnf[wmkey]
2336
+ BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
2337
+ root = self._root()
2338
+ self.iconname(root.iconname())
2339
+ self.title(root.title())
2340
+ self.protocol("WM_DELETE_WINDOW", self.destroy)
2341
+
2342
+ class Button(Widget):
2343
+ """Button widget."""
2344
+ def __init__(self, master=None, cnf={}, **kw):
2345
+ """Construct a button widget with the parent MASTER.
2346
+
2347
+ STANDARD OPTIONS
2348
+
2349
+ activebackground, activeforeground, anchor,
2350
+ background, bitmap, borderwidth, cursor,
2351
+ disabledforeground, font, foreground
2352
+ highlightbackground, highlightcolor,
2353
+ highlightthickness, image, justify,
2354
+ padx, pady, relief, repeatdelay,
2355
+ repeatinterval, takefocus, text,
2356
+ textvariable, underline, wraplength
2357
+
2358
+ WIDGET-SPECIFIC OPTIONS
2359
+
2360
+ command, compound, default, height,
2361
+ overrelief, state, width
2362
+ """
2363
+ Widget.__init__(self, master, 'button', cnf, kw)
2364
+
2365
+ def flash(self):
2366
+ """Flash the button.
2367
+
2368
+ This is accomplished by redisplaying
2369
+ the button several times, alternating between active and
2370
+ normal colors. At the end of the flash the button is left
2371
+ in the same normal/active state as when the command was
2372
+ invoked. This command is ignored if the button's state is
2373
+ disabled.
2374
+ """
2375
+ self.tk.call(self._w, 'flash')
2376
+
2377
+ def invoke(self):
2378
+ """Invoke the command associated with the button.
2379
+
2380
+ The return value is the return value from the command,
2381
+ or an empty string if there is no command associated with
2382
+ the button. This command is ignored if the button's state
2383
+ is disabled.
2384
+ """
2385
+ return self.tk.call(self._w, 'invoke')
2386
+
2387
+ class Canvas(Widget, XView, YView):
2388
+ """Canvas widget to display graphical elements like lines or text."""
2389
+ def __init__(self, master=None, cnf={}, **kw):
2390
+ """Construct a canvas widget with the parent MASTER.
2391
+
2392
+ Valid resource names: background, bd, bg, borderwidth, closeenough,
2393
+ confine, cursor, height, highlightbackground, highlightcolor,
2394
+ highlightthickness, insertbackground, insertborderwidth,
2395
+ insertofftime, insertontime, insertwidth, offset, relief,
2396
+ scrollregion, selectbackground, selectborderwidth, selectforeground,
2397
+ state, takefocus, width, xscrollcommand, xscrollincrement,
2398
+ yscrollcommand, yscrollincrement."""
2399
+ Widget.__init__(self, master, 'canvas', cnf, kw)
2400
+ def addtag(self, *args):
2401
+ """Internal function."""
2402
+ self.tk.call((self._w, 'addtag') + args)
2403
+ def addtag_above(self, newtag, tagOrId):
2404
+ """Add tag NEWTAG to all items above TAGORID."""
2405
+ self.addtag(newtag, 'above', tagOrId)
2406
+ def addtag_all(self, newtag):
2407
+ """Add tag NEWTAG to all items."""
2408
+ self.addtag(newtag, 'all')
2409
+ def addtag_below(self, newtag, tagOrId):
2410
+ """Add tag NEWTAG to all items below TAGORID."""
2411
+ self.addtag(newtag, 'below', tagOrId)
2412
+ def addtag_closest(self, newtag, x, y, halo=None, start=None):
2413
+ """Add tag NEWTAG to item which is closest to pixel at X, Y.
2414
+ If several match take the top-most.
2415
+ All items closer than HALO are considered overlapping (all are
2416
+ closests). If START is specified the next below this tag is taken."""
2417
+ self.addtag(newtag, 'closest', x, y, halo, start)
2418
+ def addtag_enclosed(self, newtag, x1, y1, x2, y2):
2419
+ """Add tag NEWTAG to all items in the rectangle defined
2420
+ by X1,Y1,X2,Y2."""
2421
+ self.addtag(newtag, 'enclosed', x1, y1, x2, y2)
2422
+ def addtag_overlapping(self, newtag, x1, y1, x2, y2):
2423
+ """Add tag NEWTAG to all items which overlap the rectangle
2424
+ defined by X1,Y1,X2,Y2."""
2425
+ self.addtag(newtag, 'overlapping', x1, y1, x2, y2)
2426
+ def addtag_withtag(self, newtag, tagOrId):
2427
+ """Add tag NEWTAG to all items with TAGORID."""
2428
+ self.addtag(newtag, 'withtag', tagOrId)
2429
+ def bbox(self, *args):
2430
+ """Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
2431
+ which encloses all items with tags specified as arguments."""
2432
+ return self._getints(
2433
+ self.tk.call((self._w, 'bbox') + args)) or None
2434
+ def tag_unbind(self, tagOrId, sequence, funcid=None):
2435
+ """Unbind for all items with TAGORID for event SEQUENCE the
2436
+ function identified with FUNCID."""
2437
+ self.tk.call(self._w, 'bind', tagOrId, sequence, '')
2438
+ if funcid:
2439
+ self.deletecommand(funcid)
2440
+ def tag_bind(self, tagOrId, sequence=None, func=None, add=None):
2441
+ """Bind to all items with TAGORID at event SEQUENCE a call to function FUNC.
2442
+
2443
+ An additional boolean parameter ADD specifies whether FUNC will be
2444
+ called additionally to the other bound function or whether it will
2445
+ replace the previous function. See bind for the return value."""
2446
+ return self._bind((self._w, 'bind', tagOrId),
2447
+ sequence, func, add)
2448
+ def canvasx(self, screenx, gridspacing=None):
2449
+ """Return the canvas x coordinate of pixel position SCREENX rounded
2450
+ to nearest multiple of GRIDSPACING units."""
2451
+ return self.tk.getdouble(self.tk.call(
2452
+ self._w, 'canvasx', screenx, gridspacing))
2453
+ def canvasy(self, screeny, gridspacing=None):
2454
+ """Return the canvas y coordinate of pixel position SCREENY rounded
2455
+ to nearest multiple of GRIDSPACING units."""
2456
+ return self.tk.getdouble(self.tk.call(
2457
+ self._w, 'canvasy', screeny, gridspacing))
2458
+ def coords(self, *args):
2459
+ """Return a list of coordinates for the item given in ARGS."""
2460
+ # XXX Should use _flatten on args
2461
+ return [self.tk.getdouble(x) for x in
2462
+ self.tk.splitlist(
2463
+ self.tk.call((self._w, 'coords') + args))]
2464
+ def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={})
2465
+ """Internal function."""
2466
+ args = _flatten(args)
2467
+ cnf = args[-1]
2468
+ if isinstance(cnf, (dict, tuple)):
2469
+ args = args[:-1]
2470
+ else:
2471
+ cnf = {}
2472
+ return self.tk.getint(self.tk.call(
2473
+ self._w, 'create', itemType,
2474
+ *(args + self._options(cnf, kw))))
2475
+ def create_arc(self, *args, **kw):
2476
+ """Create arc shaped region with coordinates x1,y1,x2,y2."""
2477
+ return self._create('arc', args, kw)
2478
+ def create_bitmap(self, *args, **kw):
2479
+ """Create bitmap with coordinates x1,y1."""
2480
+ return self._create('bitmap', args, kw)
2481
+ def create_image(self, *args, **kw):
2482
+ """Create image item with coordinates x1,y1."""
2483
+ return self._create('image', args, kw)
2484
+ def create_line(self, *args, **kw):
2485
+ """Create line with coordinates x1,y1,...,xn,yn."""
2486
+ return self._create('line', args, kw)
2487
+ def create_oval(self, *args, **kw):
2488
+ """Create oval with coordinates x1,y1,x2,y2."""
2489
+ return self._create('oval', args, kw)
2490
+ def create_polygon(self, *args, **kw):
2491
+ """Create polygon with coordinates x1,y1,...,xn,yn."""
2492
+ return self._create('polygon', args, kw)
2493
+ def create_rectangle(self, *args, **kw):
2494
+ """Create rectangle with coordinates x1,y1,x2,y2."""
2495
+ return self._create('rectangle', args, kw)
2496
+ def create_text(self, *args, **kw):
2497
+ """Create text with coordinates x1,y1."""
2498
+ return self._create('text', args, kw)
2499
+ def create_window(self, *args, **kw):
2500
+ """Create window with coordinates x1,y1,x2,y2."""
2501
+ return self._create('window', args, kw)
2502
+ def dchars(self, *args):
2503
+ """Delete characters of text items identified by tag or id in ARGS (possibly
2504
+ several times) from FIRST to LAST character (including)."""
2505
+ self.tk.call((self._w, 'dchars') + args)
2506
+ def delete(self, *args):
2507
+ """Delete items identified by all tag or ids contained in ARGS."""
2508
+ self.tk.call((self._w, 'delete') + args)
2509
+ def dtag(self, *args):
2510
+ """Delete tag or id given as last arguments in ARGS from items
2511
+ identified by first argument in ARGS."""
2512
+ self.tk.call((self._w, 'dtag') + args)
2513
+ def find(self, *args):
2514
+ """Internal function."""
2515
+ return self._getints(
2516
+ self.tk.call((self._w, 'find') + args)) or ()
2517
+ def find_above(self, tagOrId):
2518
+ """Return items above TAGORID."""
2519
+ return self.find('above', tagOrId)
2520
+ def find_all(self):
2521
+ """Return all items."""
2522
+ return self.find('all')
2523
+ def find_below(self, tagOrId):
2524
+ """Return all items below TAGORID."""
2525
+ return self.find('below', tagOrId)
2526
+ def find_closest(self, x, y, halo=None, start=None):
2527
+ """Return item which is closest to pixel at X, Y.
2528
+ If several match take the top-most.
2529
+ All items closer than HALO are considered overlapping (all are
2530
+ closest). If START is specified the next below this tag is taken."""
2531
+ return self.find('closest', x, y, halo, start)
2532
+ def find_enclosed(self, x1, y1, x2, y2):
2533
+ """Return all items in rectangle defined
2534
+ by X1,Y1,X2,Y2."""
2535
+ return self.find('enclosed', x1, y1, x2, y2)
2536
+ def find_overlapping(self, x1, y1, x2, y2):
2537
+ """Return all items which overlap the rectangle
2538
+ defined by X1,Y1,X2,Y2."""
2539
+ return self.find('overlapping', x1, y1, x2, y2)
2540
+ def find_withtag(self, tagOrId):
2541
+ """Return all items with TAGORID."""
2542
+ return self.find('withtag', tagOrId)
2543
+ def focus(self, *args):
2544
+ """Set focus to the first item specified in ARGS."""
2545
+ return self.tk.call((self._w, 'focus') + args)
2546
+ def gettags(self, *args):
2547
+ """Return tags associated with the first item specified in ARGS."""
2548
+ return self.tk.splitlist(
2549
+ self.tk.call((self._w, 'gettags') + args))
2550
+ def icursor(self, *args):
2551
+ """Set cursor at position POS in the item identified by TAGORID.
2552
+ In ARGS TAGORID must be first."""
2553
+ self.tk.call((self._w, 'icursor') + args)
2554
+ def index(self, *args):
2555
+ """Return position of cursor as integer in item specified in ARGS."""
2556
+ return self.tk.getint(self.tk.call((self._w, 'index') + args))
2557
+ def insert(self, *args):
2558
+ """Insert TEXT in item TAGORID at position POS. ARGS must
2559
+ be TAGORID POS TEXT."""
2560
+ self.tk.call((self._w, 'insert') + args)
2561
+ def itemcget(self, tagOrId, option):
2562
+ """Return the resource value for an OPTION for item TAGORID."""
2563
+ return self.tk.call(
2564
+ (self._w, 'itemcget') + (tagOrId, '-'+option))
2565
+ def itemconfigure(self, tagOrId, cnf=None, **kw):
2566
+ """Configure resources of an item TAGORID.
2567
+
2568
+ The values for resources are specified as keyword
2569
+ arguments. To get an overview about
2570
+ the allowed keyword arguments call the method without arguments.
2571
+ """
2572
+ return self._configure(('itemconfigure', tagOrId), cnf, kw)
2573
+ itemconfig = itemconfigure
2574
+ # lower, tkraise/lift hide Misc.lower, Misc.tkraise/lift,
2575
+ # so the preferred name for them is tag_lower, tag_raise
2576
+ # (similar to tag_bind, and similar to the Text widget);
2577
+ # unfortunately can't delete the old ones yet (maybe in 1.6)
2578
+ def tag_lower(self, *args):
2579
+ """Lower an item TAGORID given in ARGS
2580
+ (optional below another item)."""
2581
+ self.tk.call((self._w, 'lower') + args)
2582
+ lower = tag_lower
2583
+ def move(self, *args):
2584
+ """Move an item TAGORID given in ARGS."""
2585
+ self.tk.call((self._w, 'move') + args)
2586
+ def postscript(self, cnf={}, **kw):
2587
+ """Print the contents of the canvas to a postscript
2588
+ file. Valid options: colormap, colormode, file, fontmap,
2589
+ height, pageanchor, pageheight, pagewidth, pagex, pagey,
2590
+ rotate, width, x, y."""
2591
+ return self.tk.call((self._w, 'postscript') +
2592
+ self._options(cnf, kw))
2593
+ def tag_raise(self, *args):
2594
+ """Raise an item TAGORID given in ARGS
2595
+ (optional above another item)."""
2596
+ self.tk.call((self._w, 'raise') + args)
2597
+ lift = tkraise = tag_raise
2598
+ def scale(self, *args):
2599
+ """Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE."""
2600
+ self.tk.call((self._w, 'scale') + args)
2601
+ def scan_mark(self, x, y):
2602
+ """Remember the current X, Y coordinates."""
2603
+ self.tk.call(self._w, 'scan', 'mark', x, y)
2604
+ def scan_dragto(self, x, y, gain=10):
2605
+ """Adjust the view of the canvas to GAIN times the
2606
+ difference between X and Y and the coordinates given in
2607
+ scan_mark."""
2608
+ self.tk.call(self._w, 'scan', 'dragto', x, y, gain)
2609
+ def select_adjust(self, tagOrId, index):
2610
+ """Adjust the end of the selection near the cursor of an item TAGORID to index."""
2611
+ self.tk.call(self._w, 'select', 'adjust', tagOrId, index)
2612
+ def select_clear(self):
2613
+ """Clear the selection if it is in this widget."""
2614
+ self.tk.call(self._w, 'select', 'clear')
2615
+ def select_from(self, tagOrId, index):
2616
+ """Set the fixed end of a selection in item TAGORID to INDEX."""
2617
+ self.tk.call(self._w, 'select', 'from', tagOrId, index)
2618
+ def select_item(self):
2619
+ """Return the item which has the selection."""
2620
+ return self.tk.call(self._w, 'select', 'item') or None
2621
+ def select_to(self, tagOrId, index):
2622
+ """Set the variable end of a selection in item TAGORID to INDEX."""
2623
+ self.tk.call(self._w, 'select', 'to', tagOrId, index)
2624
+ def type(self, tagOrId):
2625
+ """Return the type of the item TAGORID."""
2626
+ return self.tk.call(self._w, 'type', tagOrId) or None
2627
+
2628
+ class Checkbutton(Widget):
2629
+ """Checkbutton widget which is either in on- or off-state."""
2630
+ def __init__(self, master=None, cnf={}, **kw):
2631
+ """Construct a checkbutton widget with the parent MASTER.
2632
+
2633
+ Valid resource names: activebackground, activeforeground, anchor,
2634
+ background, bd, bg, bitmap, borderwidth, command, cursor,
2635
+ disabledforeground, fg, font, foreground, height,
2636
+ highlightbackground, highlightcolor, highlightthickness, image,
2637
+ indicatoron, justify, offvalue, onvalue, padx, pady, relief,
2638
+ selectcolor, selectimage, state, takefocus, text, textvariable,
2639
+ underline, variable, width, wraplength."""
2640
+ Widget.__init__(self, master, 'checkbutton', cnf, kw)
2641
+ def deselect(self):
2642
+ """Put the button in off-state."""
2643
+ self.tk.call(self._w, 'deselect')
2644
+ def flash(self):
2645
+ """Flash the button."""
2646
+ self.tk.call(self._w, 'flash')
2647
+ def invoke(self):
2648
+ """Toggle the button and invoke a command if given as resource."""
2649
+ return self.tk.call(self._w, 'invoke')
2650
+ def select(self):
2651
+ """Put the button in on-state."""
2652
+ self.tk.call(self._w, 'select')
2653
+ def toggle(self):
2654
+ """Toggle the button."""
2655
+ self.tk.call(self._w, 'toggle')
2656
+
2657
+ class Entry(Widget, XView):
2658
+ """Entry widget which allows displaying simple text."""
2659
+ def __init__(self, master=None, cnf={}, **kw):
2660
+ """Construct an entry widget with the parent MASTER.
2661
+
2662
+ Valid resource names: background, bd, bg, borderwidth, cursor,
2663
+ exportselection, fg, font, foreground, highlightbackground,
2664
+ highlightcolor, highlightthickness, insertbackground,
2665
+ insertborderwidth, insertofftime, insertontime, insertwidth,
2666
+ invalidcommand, invcmd, justify, relief, selectbackground,
2667
+ selectborderwidth, selectforeground, show, state, takefocus,
2668
+ textvariable, validate, validatecommand, vcmd, width,
2669
+ xscrollcommand."""
2670
+ Widget.__init__(self, master, 'entry', cnf, kw)
2671
+ def delete(self, first, last=None):
2672
+ """Delete text from FIRST to LAST (not included)."""
2673
+ self.tk.call(self._w, 'delete', first, last)
2674
+ def get(self):
2675
+ """Return the text."""
2676
+ return self.tk.call(self._w, 'get')
2677
+ def icursor(self, index):
2678
+ """Insert cursor at INDEX."""
2679
+ self.tk.call(self._w, 'icursor', index)
2680
+ def index(self, index):
2681
+ """Return position of cursor."""
2682
+ return self.tk.getint(self.tk.call(
2683
+ self._w, 'index', index))
2684
+ def insert(self, index, string):
2685
+ """Insert STRING at INDEX."""
2686
+ self.tk.call(self._w, 'insert', index, string)
2687
+ def scan_mark(self, x):
2688
+ """Remember the current X, Y coordinates."""
2689
+ self.tk.call(self._w, 'scan', 'mark', x)
2690
+ def scan_dragto(self, x):
2691
+ """Adjust the view of the canvas to 10 times the
2692
+ difference between X and Y and the coordinates given in
2693
+ scan_mark."""
2694
+ self.tk.call(self._w, 'scan', 'dragto', x)
2695
+ def selection_adjust(self, index):
2696
+ """Adjust the end of the selection near the cursor to INDEX."""
2697
+ self.tk.call(self._w, 'selection', 'adjust', index)
2698
+ select_adjust = selection_adjust
2699
+ def selection_clear(self):
2700
+ """Clear the selection if it is in this widget."""
2701
+ self.tk.call(self._w, 'selection', 'clear')
2702
+ select_clear = selection_clear
2703
+ def selection_from(self, index):
2704
+ """Set the fixed end of a selection to INDEX."""
2705
+ self.tk.call(self._w, 'selection', 'from', index)
2706
+ select_from = selection_from
2707
+ def selection_present(self):
2708
+ """Return True if there are characters selected in the entry, False
2709
+ otherwise."""
2710
+ return self.tk.getboolean(
2711
+ self.tk.call(self._w, 'selection', 'present'))
2712
+ select_present = selection_present
2713
+ def selection_range(self, start, end):
2714
+ """Set the selection from START to END (not included)."""
2715
+ self.tk.call(self._w, 'selection', 'range', start, end)
2716
+ select_range = selection_range
2717
+ def selection_to(self, index):
2718
+ """Set the variable end of a selection to INDEX."""
2719
+ self.tk.call(self._w, 'selection', 'to', index)
2720
+ select_to = selection_to
2721
+
2722
+ class Frame(Widget):
2723
+ """Frame widget which may contain other widgets and can have a 3D border."""
2724
+ def __init__(self, master=None, cnf={}, **kw):
2725
+ """Construct a frame widget with the parent MASTER.
2726
+
2727
+ Valid resource names: background, bd, bg, borderwidth, class,
2728
+ colormap, container, cursor, height, highlightbackground,
2729
+ highlightcolor, highlightthickness, relief, takefocus, visual, width."""
2730
+ cnf = _cnfmerge((cnf, kw))
2731
+ extra = ()
2732
+ if 'class_' in cnf:
2733
+ extra = ('-class', cnf['class_'])
2734
+ del cnf['class_']
2735
+ elif 'class' in cnf:
2736
+ extra = ('-class', cnf['class'])
2737
+ del cnf['class']
2738
+ Widget.__init__(self, master, 'frame', cnf, {}, extra)
2739
+
2740
+ class Label(Widget):
2741
+ """Label widget which can display text and bitmaps."""
2742
+ def __init__(self, master=None, cnf={}, **kw):
2743
+ """Construct a label widget with the parent MASTER.
2744
+
2745
+ STANDARD OPTIONS
2746
+
2747
+ activebackground, activeforeground, anchor,
2748
+ background, bitmap, borderwidth, cursor,
2749
+ disabledforeground, font, foreground,
2750
+ highlightbackground, highlightcolor,
2751
+ highlightthickness, image, justify,
2752
+ padx, pady, relief, takefocus, text,
2753
+ textvariable, underline, wraplength
2754
+
2755
+ WIDGET-SPECIFIC OPTIONS
2756
+
2757
+ height, state, width
2758
+
2759
+ """
2760
+ Widget.__init__(self, master, 'label', cnf, kw)
2761
+
2762
+ class Listbox(Widget, XView, YView):
2763
+ """Listbox widget which can display a list of strings."""
2764
+ def __init__(self, master=None, cnf={}, **kw):
2765
+ """Construct a listbox widget with the parent MASTER.
2766
+
2767
+ Valid resource names: background, bd, bg, borderwidth, cursor,
2768
+ exportselection, fg, font, foreground, height, highlightbackground,
2769
+ highlightcolor, highlightthickness, relief, selectbackground,
2770
+ selectborderwidth, selectforeground, selectmode, setgrid, takefocus,
2771
+ width, xscrollcommand, yscrollcommand, listvariable."""
2772
+ Widget.__init__(self, master, 'listbox', cnf, kw)
2773
+ def activate(self, index):
2774
+ """Activate item identified by INDEX."""
2775
+ self.tk.call(self._w, 'activate', index)
2776
+ def bbox(self, index):
2777
+ """Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
2778
+ which encloses the item identified by the given index."""
2779
+ return self._getints(self.tk.call(self._w, 'bbox', index)) or None
2780
+ def curselection(self):
2781
+ """Return the indices of currently selected item."""
2782
+ return self._getints(self.tk.call(self._w, 'curselection')) or ()
2783
+ def delete(self, first, last=None):
2784
+ """Delete items from FIRST to LAST (included)."""
2785
+ self.tk.call(self._w, 'delete', first, last)
2786
+ def get(self, first, last=None):
2787
+ """Get list of items from FIRST to LAST (included)."""
2788
+ if last is not None:
2789
+ return self.tk.splitlist(self.tk.call(
2790
+ self._w, 'get', first, last))
2791
+ else:
2792
+ return self.tk.call(self._w, 'get', first)
2793
+ def index(self, index):
2794
+ """Return index of item identified with INDEX."""
2795
+ i = self.tk.call(self._w, 'index', index)
2796
+ if i == 'none': return None
2797
+ return self.tk.getint(i)
2798
+ def insert(self, index, *elements):
2799
+ """Insert ELEMENTS at INDEX."""
2800
+ self.tk.call((self._w, 'insert', index) + elements)
2801
+ def nearest(self, y):
2802
+ """Get index of item which is nearest to y coordinate Y."""
2803
+ return self.tk.getint(self.tk.call(
2804
+ self._w, 'nearest', y))
2805
+ def scan_mark(self, x, y):
2806
+ """Remember the current X, Y coordinates."""
2807
+ self.tk.call(self._w, 'scan', 'mark', x, y)
2808
+ def scan_dragto(self, x, y):
2809
+ """Adjust the view of the listbox to 10 times the
2810
+ difference between X and Y and the coordinates given in
2811
+ scan_mark."""
2812
+ self.tk.call(self._w, 'scan', 'dragto', x, y)
2813
+ def see(self, index):
2814
+ """Scroll such that INDEX is visible."""
2815
+ self.tk.call(self._w, 'see', index)
2816
+ def selection_anchor(self, index):
2817
+ """Set the fixed end oft the selection to INDEX."""
2818
+ self.tk.call(self._w, 'selection', 'anchor', index)
2819
+ select_anchor = selection_anchor
2820
+ def selection_clear(self, first, last=None):
2821
+ """Clear the selection from FIRST to LAST (included)."""
2822
+ self.tk.call(self._w,
2823
+ 'selection', 'clear', first, last)
2824
+ select_clear = selection_clear
2825
+ def selection_includes(self, index):
2826
+ """Return 1 if INDEX is part of the selection."""
2827
+ return self.tk.getboolean(self.tk.call(
2828
+ self._w, 'selection', 'includes', index))
2829
+ select_includes = selection_includes
2830
+ def selection_set(self, first, last=None):
2831
+ """Set the selection from FIRST to LAST (included) without
2832
+ changing the currently selected elements."""
2833
+ self.tk.call(self._w, 'selection', 'set', first, last)
2834
+ select_set = selection_set
2835
+ def size(self):
2836
+ """Return the number of elements in the listbox."""
2837
+ return self.tk.getint(self.tk.call(self._w, 'size'))
2838
+ def itemcget(self, index, option):
2839
+ """Return the resource value for an ITEM and an OPTION."""
2840
+ return self.tk.call(
2841
+ (self._w, 'itemcget') + (index, '-'+option))
2842
+ def itemconfigure(self, index, cnf=None, **kw):
2843
+ """Configure resources of an ITEM.
2844
+
2845
+ The values for resources are specified as keyword arguments.
2846
+ To get an overview about the allowed keyword arguments
2847
+ call the method without arguments.
2848
+ Valid resource names: background, bg, foreground, fg,
2849
+ selectbackground, selectforeground."""
2850
+ return self._configure(('itemconfigure', index), cnf, kw)
2851
+ itemconfig = itemconfigure
2852
+
2853
+ class Menu(Widget):
2854
+ """Menu widget which allows displaying menu bars, pull-down menus and pop-up menus."""
2855
+ def __init__(self, master=None, cnf={}, **kw):
2856
+ """Construct menu widget with the parent MASTER.
2857
+
2858
+ Valid resource names: activebackground, activeborderwidth,
2859
+ activeforeground, background, bd, bg, borderwidth, cursor,
2860
+ disabledforeground, fg, font, foreground, postcommand, relief,
2861
+ selectcolor, takefocus, tearoff, tearoffcommand, title, type."""
2862
+ Widget.__init__(self, master, 'menu', cnf, kw)
2863
+ def tk_popup(self, x, y, entry=""):
2864
+ """Post the menu at position X,Y with entry ENTRY."""
2865
+ self.tk.call('tk_popup', self._w, x, y, entry)
2866
+ def activate(self, index):
2867
+ """Activate entry at INDEX."""
2868
+ self.tk.call(self._w, 'activate', index)
2869
+ def add(self, itemType, cnf={}, **kw):
2870
+ """Internal function."""
2871
+ self.tk.call((self._w, 'add', itemType) +
2872
+ self._options(cnf, kw))
2873
+ def add_cascade(self, cnf={}, **kw):
2874
+ """Add hierarchical menu item."""
2875
+ self.add('cascade', cnf or kw)
2876
+ def add_checkbutton(self, cnf={}, **kw):
2877
+ """Add checkbutton menu item."""
2878
+ self.add('checkbutton', cnf or kw)
2879
+ def add_command(self, cnf={}, **kw):
2880
+ """Add command menu item."""
2881
+ self.add('command', cnf or kw)
2882
+ def add_radiobutton(self, cnf={}, **kw):
2883
+ """Addd radio menu item."""
2884
+ self.add('radiobutton', cnf or kw)
2885
+ def add_separator(self, cnf={}, **kw):
2886
+ """Add separator."""
2887
+ self.add('separator', cnf or kw)
2888
+ def insert(self, index, itemType, cnf={}, **kw):
2889
+ """Internal function."""
2890
+ self.tk.call((self._w, 'insert', index, itemType) +
2891
+ self._options(cnf, kw))
2892
+ def insert_cascade(self, index, cnf={}, **kw):
2893
+ """Add hierarchical menu item at INDEX."""
2894
+ self.insert(index, 'cascade', cnf or kw)
2895
+ def insert_checkbutton(self, index, cnf={}, **kw):
2896
+ """Add checkbutton menu item at INDEX."""
2897
+ self.insert(index, 'checkbutton', cnf or kw)
2898
+ def insert_command(self, index, cnf={}, **kw):
2899
+ """Add command menu item at INDEX."""
2900
+ self.insert(index, 'command', cnf or kw)
2901
+ def insert_radiobutton(self, index, cnf={}, **kw):
2902
+ """Addd radio menu item at INDEX."""
2903
+ self.insert(index, 'radiobutton', cnf or kw)
2904
+ def insert_separator(self, index, cnf={}, **kw):
2905
+ """Add separator at INDEX."""
2906
+ self.insert(index, 'separator', cnf or kw)
2907
+ def delete(self, index1, index2=None):
2908
+ """Delete menu items between INDEX1 and INDEX2 (included)."""
2909
+ if index2 is None:
2910
+ index2 = index1
2911
+
2912
+ num_index1, num_index2 = self.index(index1), self.index(index2)
2913
+ if (num_index1 is None) or (num_index2 is None):
2914
+ num_index1, num_index2 = 0, -1
2915
+
2916
+ for i in range(num_index1, num_index2 + 1):
2917
+ if 'command' in self.entryconfig(i):
2918
+ c = str(self.entrycget(i, 'command'))
2919
+ if c:
2920
+ self.deletecommand(c)
2921
+ self.tk.call(self._w, 'delete', index1, index2)
2922
+ def entrycget(self, index, option):
2923
+ """Return the resource value of a menu item for OPTION at INDEX."""
2924
+ return self.tk.call(self._w, 'entrycget', index, '-' + option)
2925
+ def entryconfigure(self, index, cnf=None, **kw):
2926
+ """Configure a menu item at INDEX."""
2927
+ return self._configure(('entryconfigure', index), cnf, kw)
2928
+ entryconfig = entryconfigure
2929
+ def index(self, index):
2930
+ """Return the index of a menu item identified by INDEX."""
2931
+ i = self.tk.call(self._w, 'index', index)
2932
+ if i == 'none': return None
2933
+ return self.tk.getint(i)
2934
+ def invoke(self, index):
2935
+ """Invoke a menu item identified by INDEX and execute
2936
+ the associated command."""
2937
+ return self.tk.call(self._w, 'invoke', index)
2938
+ def post(self, x, y):
2939
+ """Display a menu at position X,Y."""
2940
+ self.tk.call(self._w, 'post', x, y)
2941
+ def type(self, index):
2942
+ """Return the type of the menu item at INDEX."""
2943
+ return self.tk.call(self._w, 'type', index)
2944
+ def unpost(self):
2945
+ """Unmap a menu."""
2946
+ self.tk.call(self._w, 'unpost')
2947
+ def xposition(self, index): # new in Tk 8.5
2948
+ """Return the x-position of the leftmost pixel of the menu item
2949
+ at INDEX."""
2950
+ return self.tk.getint(self.tk.call(self._w, 'xposition', index))
2951
+ def yposition(self, index):
2952
+ """Return the y-position of the topmost pixel of the menu item at INDEX."""
2953
+ return self.tk.getint(self.tk.call(
2954
+ self._w, 'yposition', index))
2955
+
2956
+ class Menubutton(Widget):
2957
+ """Menubutton widget, obsolete since Tk8.0."""
2958
+ def __init__(self, master=None, cnf={}, **kw):
2959
+ Widget.__init__(self, master, 'menubutton', cnf, kw)
2960
+
2961
+ class Message(Widget):
2962
+ """Message widget to display multiline text. Obsolete since Label does it too."""
2963
+ def __init__(self, master=None, cnf={}, **kw):
2964
+ Widget.__init__(self, master, 'message', cnf, kw)
2965
+
2966
+ class Radiobutton(Widget):
2967
+ """Radiobutton widget which shows only one of several buttons in on-state."""
2968
+ def __init__(self, master=None, cnf={}, **kw):
2969
+ """Construct a radiobutton widget with the parent MASTER.
2970
+
2971
+ Valid resource names: activebackground, activeforeground, anchor,
2972
+ background, bd, bg, bitmap, borderwidth, command, cursor,
2973
+ disabledforeground, fg, font, foreground, height,
2974
+ highlightbackground, highlightcolor, highlightthickness, image,
2975
+ indicatoron, justify, padx, pady, relief, selectcolor, selectimage,
2976
+ state, takefocus, text, textvariable, underline, value, variable,
2977
+ width, wraplength."""
2978
+ Widget.__init__(self, master, 'radiobutton', cnf, kw)
2979
+ def deselect(self):
2980
+ """Put the button in off-state."""
2981
+
2982
+ self.tk.call(self._w, 'deselect')
2983
+ def flash(self):
2984
+ """Flash the button."""
2985
+ self.tk.call(self._w, 'flash')
2986
+ def invoke(self):
2987
+ """Toggle the button and invoke a command if given as resource."""
2988
+ return self.tk.call(self._w, 'invoke')
2989
+ def select(self):
2990
+ """Put the button in on-state."""
2991
+ self.tk.call(self._w, 'select')
2992
+
2993
+ class Scale(Widget):
2994
+ """Scale widget which can display a numerical scale."""
2995
+ def __init__(self, master=None, cnf={}, **kw):
2996
+ """Construct a scale widget with the parent MASTER.
2997
+
2998
+ Valid resource names: activebackground, background, bigincrement, bd,
2999
+ bg, borderwidth, command, cursor, digits, fg, font, foreground, from,
3000
+ highlightbackground, highlightcolor, highlightthickness, label,
3001
+ length, orient, relief, repeatdelay, repeatinterval, resolution,
3002
+ showvalue, sliderlength, sliderrelief, state, takefocus,
3003
+ tickinterval, to, troughcolor, variable, width."""
3004
+ Widget.__init__(self, master, 'scale', cnf, kw)
3005
+ def get(self):
3006
+ """Get the current value as integer or float."""
3007
+ value = self.tk.call(self._w, 'get')
3008
+ try:
3009
+ return self.tk.getint(value)
3010
+ except (ValueError, TypeError, TclError):
3011
+ return self.tk.getdouble(value)
3012
+ def set(self, value):
3013
+ """Set the value to VALUE."""
3014
+ self.tk.call(self._w, 'set', value)
3015
+ def coords(self, value=None):
3016
+ """Return a tuple (X,Y) of the point along the centerline of the
3017
+ trough that corresponds to VALUE or the current value if None is
3018
+ given."""
3019
+
3020
+ return self._getints(self.tk.call(self._w, 'coords', value))
3021
+ def identify(self, x, y):
3022
+ """Return where the point X,Y lies. Valid return values are "slider",
3023
+ "though1" and "though2"."""
3024
+ return self.tk.call(self._w, 'identify', x, y)
3025
+
3026
+ class Scrollbar(Widget):
3027
+ """Scrollbar widget which displays a slider at a certain position."""
3028
+ def __init__(self, master=None, cnf={}, **kw):
3029
+ """Construct a scrollbar widget with the parent MASTER.
3030
+
3031
+ Valid resource names: activebackground, activerelief,
3032
+ background, bd, bg, borderwidth, command, cursor,
3033
+ elementborderwidth, highlightbackground,
3034
+ highlightcolor, highlightthickness, jump, orient,
3035
+ relief, repeatdelay, repeatinterval, takefocus,
3036
+ troughcolor, width."""
3037
+ Widget.__init__(self, master, 'scrollbar', cnf, kw)
3038
+ def activate(self, index=None):
3039
+ """Marks the element indicated by index as active.
3040
+ The only index values understood by this method are "arrow1",
3041
+ "slider", or "arrow2". If any other value is specified then no
3042
+ element of the scrollbar will be active. If index is not specified,
3043
+ the method returns the name of the element that is currently active,
3044
+ or None if no element is active."""
3045
+ return self.tk.call(self._w, 'activate', index) or None
3046
+ def delta(self, deltax, deltay):
3047
+ """Return the fractional change of the scrollbar setting if it
3048
+ would be moved by DELTAX or DELTAY pixels."""
3049
+ return self.tk.getdouble(
3050
+ self.tk.call(self._w, 'delta', deltax, deltay))
3051
+ def fraction(self, x, y):
3052
+ """Return the fractional value which corresponds to a slider
3053
+ position of X,Y."""
3054
+ return self.tk.getdouble(self.tk.call(self._w, 'fraction', x, y))
3055
+ def identify(self, x, y):
3056
+ """Return the element under position X,Y as one of
3057
+ "arrow1","slider","arrow2" or ""."""
3058
+ return self.tk.call(self._w, 'identify', x, y)
3059
+ def get(self):
3060
+ """Return the current fractional values (upper and lower end)
3061
+ of the slider position."""
3062
+ return self._getdoubles(self.tk.call(self._w, 'get'))
3063
+ def set(self, first, last):
3064
+ """Set the fractional values of the slider position (upper and
3065
+ lower ends as value between 0 and 1)."""
3066
+ self.tk.call(self._w, 'set', first, last)
3067
+
3068
+
3069
+
3070
+ class Text(Widget, XView, YView):
3071
+ """Text widget which can display text in various forms."""
3072
+ def __init__(self, master=None, cnf={}, **kw):
3073
+ """Construct a text widget with the parent MASTER.
3074
+
3075
+ STANDARD OPTIONS
3076
+
3077
+ background, borderwidth, cursor,
3078
+ exportselection, font, foreground,
3079
+ highlightbackground, highlightcolor,
3080
+ highlightthickness, insertbackground,
3081
+ insertborderwidth, insertofftime,
3082
+ insertontime, insertwidth, padx, pady,
3083
+ relief, selectbackground,
3084
+ selectborderwidth, selectforeground,
3085
+ setgrid, takefocus,
3086
+ xscrollcommand, yscrollcommand,
3087
+
3088
+ WIDGET-SPECIFIC OPTIONS
3089
+
3090
+ autoseparators, height, maxundo,
3091
+ spacing1, spacing2, spacing3,
3092
+ state, tabs, undo, width, wrap,
3093
+
3094
+ """
3095
+ Widget.__init__(self, master, 'text', cnf, kw)
3096
+ def bbox(self, index):
3097
+ """Return a tuple of (x,y,width,height) which gives the bounding
3098
+ box of the visible part of the character at the given index."""
3099
+ return self._getints(
3100
+ self.tk.call(self._w, 'bbox', index)) or None
3101
+ def compare(self, index1, op, index2):
3102
+ """Return whether between index INDEX1 and index INDEX2 the
3103
+ relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=."""
3104
+ return self.tk.getboolean(self.tk.call(
3105
+ self._w, 'compare', index1, op, index2))
3106
+ def count(self, index1, index2, *args): # new in Tk 8.5
3107
+ """Counts the number of relevant things between the two indices.
3108
+ If index1 is after index2, the result will be a negative number
3109
+ (and this holds for each of the possible options).
3110
+
3111
+ The actual items which are counted depends on the options given by
3112
+ args. The result is a list of integers, one for the result of each
3113
+ counting option given. Valid counting options are "chars",
3114
+ "displaychars", "displayindices", "displaylines", "indices",
3115
+ "lines", "xpixels" and "ypixels". There is an additional possible
3116
+ option "update", which if given then all subsequent options ensure
3117
+ that any possible out of date information is recalculated."""
3118
+ args = ['-%s' % arg for arg in args if not arg.startswith('-')]
3119
+ args += [index1, index2]
3120
+ res = self.tk.call(self._w, 'count', *args) or None
3121
+ if res is not None and len(args) <= 3:
3122
+ return (res, )
3123
+ else:
3124
+ return res
3125
+ def debug(self, boolean=None):
3126
+ """Turn on the internal consistency checks of the B-Tree inside the text
3127
+ widget according to BOOLEAN."""
3128
+ if boolean is None:
3129
+ return self.tk.getboolean(self.tk.call(self._w, 'debug'))
3130
+ self.tk.call(self._w, 'debug', boolean)
3131
+ def delete(self, index1, index2=None):
3132
+ """Delete the characters between INDEX1 and INDEX2 (not included)."""
3133
+ self.tk.call(self._w, 'delete', index1, index2)
3134
+ def dlineinfo(self, index):
3135
+ """Return tuple (x,y,width,height,baseline) giving the bounding box
3136
+ and baseline position of the visible part of the line containing
3137
+ the character at INDEX."""
3138
+ return self._getints(self.tk.call(self._w, 'dlineinfo', index))
3139
+ def dump(self, index1, index2=None, command=None, **kw):
3140
+ """Return the contents of the widget between index1 and index2.
3141
+
3142
+ The type of contents returned in filtered based on the keyword
3143
+ parameters; if 'all', 'image', 'mark', 'tag', 'text', or 'window' are
3144
+ given and true, then the corresponding items are returned. The result
3145
+ is a list of triples of the form (key, value, index). If none of the
3146
+ keywords are true then 'all' is used by default.
3147
+
3148
+ If the 'command' argument is given, it is called once for each element
3149
+ of the list of triples, with the values of each triple serving as the
3150
+ arguments to the function. In this case the list is not returned."""
3151
+ args = []
3152
+ func_name = None
3153
+ result = None
3154
+ if not command:
3155
+ # Never call the dump command without the -command flag, since the
3156
+ # output could involve Tcl quoting and would be a pain to parse
3157
+ # right. Instead just set the command to build a list of triples
3158
+ # as if we had done the parsing.
3159
+ result = []
3160
+ def append_triple(key, value, index, result=result):
3161
+ result.append((key, value, index))
3162
+ command = append_triple
3163
+ try:
3164
+ if not isinstance(command, str):
3165
+ func_name = command = self._register(command)
3166
+ args += ["-command", command]
3167
+ for key in kw:
3168
+ if kw[key]: args.append("-" + key)
3169
+ args.append(index1)
3170
+ if index2:
3171
+ args.append(index2)
3172
+ self.tk.call(self._w, "dump", *args)
3173
+ return result
3174
+ finally:
3175
+ if func_name:
3176
+ self.deletecommand(func_name)
3177
+
3178
+ ## new in tk8.4
3179
+ def edit(self, *args):
3180
+ """Internal method
3181
+
3182
+ This method controls the undo mechanism and
3183
+ the modified flag. The exact behavior of the
3184
+ command depends on the option argument that
3185
+ follows the edit argument. The following forms
3186
+ of the command are currently supported:
3187
+
3188
+ edit_modified, edit_redo, edit_reset, edit_separator
3189
+ and edit_undo
3190
+
3191
+ """
3192
+ return self.tk.call(self._w, 'edit', *args)
3193
+
3194
+ def edit_modified(self, arg=None):
3195
+ """Get or Set the modified flag
3196
+
3197
+ If arg is not specified, returns the modified
3198
+ flag of the widget. The insert, delete, edit undo and
3199
+ edit redo commands or the user can set or clear the
3200
+ modified flag. If boolean is specified, sets the
3201
+ modified flag of the widget to arg.
3202
+ """
3203
+ return self.edit("modified", arg)
3204
+
3205
+ def edit_redo(self):
3206
+ """Redo the last undone edit
3207
+
3208
+ When the undo option is true, reapplies the last
3209
+ undone edits provided no other edits were done since
3210
+ then. Generates an error when the redo stack is empty.
3211
+ Does nothing when the undo option is false.
3212
+ """
3213
+ return self.edit("redo")
3214
+
3215
+ def edit_reset(self):
3216
+ """Clears the undo and redo stacks
3217
+ """
3218
+ return self.edit("reset")
3219
+
3220
+ def edit_separator(self):
3221
+ """Inserts a separator (boundary) on the undo stack.
3222
+
3223
+ Does nothing when the undo option is false
3224
+ """
3225
+ return self.edit("separator")
3226
+
3227
+ def edit_undo(self):
3228
+ """Undoes the last edit action
3229
+
3230
+ If the undo option is true. An edit action is defined
3231
+ as all the insert and delete commands that are recorded
3232
+ on the undo stack in between two separators. Generates
3233
+ an error when the undo stack is empty. Does nothing
3234
+ when the undo option is false
3235
+ """
3236
+ return self.edit("undo")
3237
+
3238
+ def get(self, index1, index2=None):
3239
+ """Return the text from INDEX1 to INDEX2 (not included)."""
3240
+ return self.tk.call(self._w, 'get', index1, index2)
3241
+ # (Image commands are new in 8.0)
3242
+ def image_cget(self, index, option):
3243
+ """Return the value of OPTION of an embedded image at INDEX."""
3244
+ if option[:1] != "-":
3245
+ option = "-" + option
3246
+ if option[-1:] == "_":
3247
+ option = option[:-1]
3248
+ return self.tk.call(self._w, "image", "cget", index, option)
3249
+ def image_configure(self, index, cnf=None, **kw):
3250
+ """Configure an embedded image at INDEX."""
3251
+ return self._configure(('image', 'configure', index), cnf, kw)
3252
+ def image_create(self, index, cnf={}, **kw):
3253
+ """Create an embedded image at INDEX."""
3254
+ return self.tk.call(
3255
+ self._w, "image", "create", index,
3256
+ *self._options(cnf, kw))
3257
+ def image_names(self):
3258
+ """Return all names of embedded images in this widget."""
3259
+ return self.tk.call(self._w, "image", "names")
3260
+ def index(self, index):
3261
+ """Return the index in the form line.char for INDEX."""
3262
+ return str(self.tk.call(self._w, 'index', index))
3263
+ def insert(self, index, chars, *args):
3264
+ """Insert CHARS before the characters at INDEX. An additional
3265
+ tag can be given in ARGS. Additional CHARS and tags can follow in ARGS."""
3266
+ self.tk.call((self._w, 'insert', index, chars) + args)
3267
+ def mark_gravity(self, markName, direction=None):
3268
+ """Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT).
3269
+ Return the current value if None is given for DIRECTION."""
3270
+ return self.tk.call(
3271
+ (self._w, 'mark', 'gravity', markName, direction))
3272
+ def mark_names(self):
3273
+ """Return all mark names."""
3274
+ return self.tk.splitlist(self.tk.call(
3275
+ self._w, 'mark', 'names'))
3276
+ def mark_set(self, markName, index):
3277
+ """Set mark MARKNAME before the character at INDEX."""
3278
+ self.tk.call(self._w, 'mark', 'set', markName, index)
3279
+ def mark_unset(self, *markNames):
3280
+ """Delete all marks in MARKNAMES."""
3281
+ self.tk.call((self._w, 'mark', 'unset') + markNames)
3282
+ def mark_next(self, index):
3283
+ """Return the name of the next mark after INDEX."""
3284
+ return self.tk.call(self._w, 'mark', 'next', index) or None
3285
+ def mark_previous(self, index):
3286
+ """Return the name of the previous mark before INDEX."""
3287
+ return self.tk.call(self._w, 'mark', 'previous', index) or None
3288
+ def peer_create(self, newPathName, cnf={}, **kw): # new in Tk 8.5
3289
+ """Creates a peer text widget with the given newPathName, and any
3290
+ optional standard configuration options. By default the peer will
3291
+ have the same start and end line as the parent widget, but
3292
+ these can be overridden with the standard configuration options."""
3293
+ self.tk.call(self._w, 'peer', 'create', newPathName,
3294
+ *self._options(cnf, kw))
3295
+ def peer_names(self): # new in Tk 8.5
3296
+ """Returns a list of peers of this widget (this does not include
3297
+ the widget itself)."""
3298
+ return self.tk.splitlist(self.tk.call(self._w, 'peer', 'names'))
3299
+ def replace(self, index1, index2, chars, *args): # new in Tk 8.5
3300
+ """Replaces the range of characters between index1 and index2 with
3301
+ the given characters and tags specified by args.
3302
+
3303
+ See the method insert for some more information about args, and the
3304
+ method delete for information about the indices."""
3305
+ self.tk.call(self._w, 'replace', index1, index2, chars, *args)
3306
+ def scan_mark(self, x, y):
3307
+ """Remember the current X, Y coordinates."""
3308
+ self.tk.call(self._w, 'scan', 'mark', x, y)
3309
+ def scan_dragto(self, x, y):
3310
+ """Adjust the view of the text to 10 times the
3311
+ difference between X and Y and the coordinates given in
3312
+ scan_mark."""
3313
+ self.tk.call(self._w, 'scan', 'dragto', x, y)
3314
+ def search(self, pattern, index, stopindex=None,
3315
+ forwards=None, backwards=None, exact=None,
3316
+ regexp=None, nocase=None, count=None, elide=None):
3317
+ """Search PATTERN beginning from INDEX until STOPINDEX.
3318
+ Return the index of the first character of a match or an
3319
+ empty string."""
3320
+ args = [self._w, 'search']
3321
+ if forwards: args.append('-forwards')
3322
+ if backwards: args.append('-backwards')
3323
+ if exact: args.append('-exact')
3324
+ if regexp: args.append('-regexp')
3325
+ if nocase: args.append('-nocase')
3326
+ if elide: args.append('-elide')
3327
+ if count: args.append('-count'); args.append(count)
3328
+ if pattern and pattern[0] == '-': args.append('--')
3329
+ args.append(pattern)
3330
+ args.append(index)
3331
+ if stopindex: args.append(stopindex)
3332
+ return str(self.tk.call(tuple(args)))
3333
+ def see(self, index):
3334
+ """Scroll such that the character at INDEX is visible."""
3335
+ self.tk.call(self._w, 'see', index)
3336
+ def tag_add(self, tagName, index1, *args):
3337
+ """Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS.
3338
+ Additional pairs of indices may follow in ARGS."""
3339
+ self.tk.call(
3340
+ (self._w, 'tag', 'add', tagName, index1) + args)
3341
+ def tag_unbind(self, tagName, sequence, funcid=None):
3342
+ """Unbind for all characters with TAGNAME for event SEQUENCE the
3343
+ function identified with FUNCID."""
3344
+ self.tk.call(self._w, 'tag', 'bind', tagName, sequence, '')
3345
+ if funcid:
3346
+ self.deletecommand(funcid)
3347
+ def tag_bind(self, tagName, sequence, func, add=None):
3348
+ """Bind to all characters with TAGNAME at event SEQUENCE a call to function FUNC.
3349
+
3350
+ An additional boolean parameter ADD specifies whether FUNC will be
3351
+ called additionally to the other bound function or whether it will
3352
+ replace the previous function. See bind for the return value."""
3353
+ return self._bind((self._w, 'tag', 'bind', tagName),
3354
+ sequence, func, add)
3355
+ def tag_cget(self, tagName, option):
3356
+ """Return the value of OPTION for tag TAGNAME."""
3357
+ if option[:1] != '-':
3358
+ option = '-' + option
3359
+ if option[-1:] == '_':
3360
+ option = option[:-1]
3361
+ return self.tk.call(self._w, 'tag', 'cget', tagName, option)
3362
+ def tag_configure(self, tagName, cnf=None, **kw):
3363
+ """Configure a tag TAGNAME."""
3364
+ return self._configure(('tag', 'configure', tagName), cnf, kw)
3365
+ tag_config = tag_configure
3366
+ def tag_delete(self, *tagNames):
3367
+ """Delete all tags in TAGNAMES."""
3368
+ self.tk.call((self._w, 'tag', 'delete') + tagNames)
3369
+ def tag_lower(self, tagName, belowThis=None):
3370
+ """Change the priority of tag TAGNAME such that it is lower
3371
+ than the priority of BELOWTHIS."""
3372
+ self.tk.call(self._w, 'tag', 'lower', tagName, belowThis)
3373
+ def tag_names(self, index=None):
3374
+ """Return a list of all tag names."""
3375
+ return self.tk.splitlist(
3376
+ self.tk.call(self._w, 'tag', 'names', index))
3377
+ def tag_nextrange(self, tagName, index1, index2=None):
3378
+ """Return a list of start and end index for the first sequence of
3379
+ characters between INDEX1 and INDEX2 which all have tag TAGNAME.
3380
+ The text is searched forward from INDEX1."""
3381
+ return self.tk.splitlist(self.tk.call(
3382
+ self._w, 'tag', 'nextrange', tagName, index1, index2))
3383
+ def tag_prevrange(self, tagName, index1, index2=None):
3384
+ """Return a list of start and end index for the first sequence of
3385
+ characters between INDEX1 and INDEX2 which all have tag TAGNAME.
3386
+ The text is searched backwards from INDEX1."""
3387
+ return self.tk.splitlist(self.tk.call(
3388
+ self._w, 'tag', 'prevrange', tagName, index1, index2))
3389
+ def tag_raise(self, tagName, aboveThis=None):
3390
+ """Change the priority of tag TAGNAME such that it is higher
3391
+ than the priority of ABOVETHIS."""
3392
+ self.tk.call(
3393
+ self._w, 'tag', 'raise', tagName, aboveThis)
3394
+ def tag_ranges(self, tagName):
3395
+ """Return a list of ranges of text which have tag TAGNAME."""
3396
+ return self.tk.splitlist(self.tk.call(
3397
+ self._w, 'tag', 'ranges', tagName))
3398
+ def tag_remove(self, tagName, index1, index2=None):
3399
+ """Remove tag TAGNAME from all characters between INDEX1 and INDEX2."""
3400
+ self.tk.call(
3401
+ self._w, 'tag', 'remove', tagName, index1, index2)
3402
+ def window_cget(self, index, option):
3403
+ """Return the value of OPTION of an embedded window at INDEX."""
3404
+ if option[:1] != '-':
3405
+ option = '-' + option
3406
+ if option[-1:] == '_':
3407
+ option = option[:-1]
3408
+ return self.tk.call(self._w, 'window', 'cget', index, option)
3409
+ def window_configure(self, index, cnf=None, **kw):
3410
+ """Configure an embedded window at INDEX."""
3411
+ return self._configure(('window', 'configure', index), cnf, kw)
3412
+ window_config = window_configure
3413
+ def window_create(self, index, cnf={}, **kw):
3414
+ """Create a window at INDEX."""
3415
+ self.tk.call(
3416
+ (self._w, 'window', 'create', index)
3417
+ + self._options(cnf, kw))
3418
+ def window_names(self):
3419
+ """Return all names of embedded windows in this widget."""
3420
+ return self.tk.splitlist(
3421
+ self.tk.call(self._w, 'window', 'names'))
3422
+ def yview_pickplace(self, *what):
3423
+ """Obsolete function, use see."""
3424
+ self.tk.call((self._w, 'yview', '-pickplace') + what)
3425
+
3426
+
3427
+ class _setit:
3428
+ """Internal class. It wraps the command in the widget OptionMenu."""
3429
+ def __init__(self, var, value, callback=None):
3430
+ self.__value = value
3431
+ self.__var = var
3432
+ self.__callback = callback
3433
+ def __call__(self, *args):
3434
+ self.__var.set(self.__value)
3435
+ if self.__callback:
3436
+ self.__callback(self.__value, *args)
3437
+
3438
+ class OptionMenu(Menubutton):
3439
+ """OptionMenu which allows the user to select a value from a menu."""
3440
+ def __init__(self, master, variable, value, *values, **kwargs):
3441
+ """Construct an optionmenu widget with the parent MASTER, with
3442
+ the resource textvariable set to VARIABLE, the initially selected
3443
+ value VALUE, the other menu values VALUES and an additional
3444
+ keyword argument command."""
3445
+ kw = {"borderwidth": 2, "textvariable": variable,
3446
+ "indicatoron": 1, "relief": RAISED, "anchor": "c",
3447
+ "highlightthickness": 2}
3448
+ Widget.__init__(self, master, "menubutton", kw)
3449
+ self.widgetName = 'tk_optionMenu'
3450
+ menu = self.__menu = Menu(self, name="menu", tearoff=0)
3451
+ self.menuname = menu._w
3452
+ # 'command' is the only supported keyword
3453
+ callback = kwargs.get('command')
3454
+ if 'command' in kwargs:
3455
+ del kwargs['command']
3456
+ if kwargs:
3457
+ raise TclError('unknown option -'+kwargs.keys()[0])
3458
+ menu.add_command(label=value,
3459
+ command=_setit(variable, value, callback))
3460
+ for v in values:
3461
+ menu.add_command(label=v,
3462
+ command=_setit(variable, v, callback))
3463
+ self["menu"] = menu
3464
+
3465
+ def __getitem__(self, name):
3466
+ if name == 'menu':
3467
+ return self.__menu
3468
+ return Widget.__getitem__(self, name)
3469
+
3470
+ def destroy(self):
3471
+ """Destroy this widget and the associated menu."""
3472
+ Menubutton.destroy(self)
3473
+ self.__menu = None
3474
+
3475
+ class Image:
3476
+ """Base class for images."""
3477
+ _last_id = 0
3478
+ def __init__(self, imgtype, name=None, cnf={}, master=None, **kw):
3479
+ self.name = None
3480
+ if not master:
3481
+ master = _default_root
3482
+ if not master:
3483
+ raise RuntimeError('Too early to create image')
3484
+ self.tk = getattr(master, 'tk', master)
3485
+ if not name:
3486
+ Image._last_id += 1
3487
+ name = "pyimage%r" % (Image._last_id,) # tk itself would use image<x>
3488
+ if kw and cnf: cnf = _cnfmerge((cnf, kw))
3489
+ elif kw: cnf = kw
3490
+ options = ()
3491
+ for k, v in cnf.items():
3492
+ if callable(v):
3493
+ v = self._register(v)
3494
+ options = options + ('-'+k, v)
3495
+ self.tk.call(('image', 'create', imgtype, name,) + options)
3496
+ self.name = name
3497
+ def __str__(self): return self.name
3498
+ def __del__(self):
3499
+ if self.name:
3500
+ try:
3501
+ self.tk.call('image', 'delete', self.name)
3502
+ except TclError:
3503
+ # May happen if the root was destroyed
3504
+ pass
3505
+ def __setitem__(self, key, value):
3506
+ self.tk.call(self.name, 'configure', '-'+key, value)
3507
+ def __getitem__(self, key):
3508
+ return self.tk.call(self.name, 'configure', '-'+key)
3509
+ def configure(self, **kw):
3510
+ """Configure the image."""
3511
+ res = ()
3512
+ for k, v in _cnfmerge(kw).items():
3513
+ if v is not None:
3514
+ if k[-1] == '_': k = k[:-1]
3515
+ if callable(v):
3516
+ v = self._register(v)
3517
+ res = res + ('-'+k, v)
3518
+ self.tk.call((self.name, 'config') + res)
3519
+ config = configure
3520
+ def height(self):
3521
+ """Return the height of the image."""
3522
+ return self.tk.getint(
3523
+ self.tk.call('image', 'height', self.name))
3524
+ def type(self):
3525
+ """Return the type of the image, e.g. "photo" or "bitmap"."""
3526
+ return self.tk.call('image', 'type', self.name)
3527
+ def width(self):
3528
+ """Return the width of the image."""
3529
+ return self.tk.getint(
3530
+ self.tk.call('image', 'width', self.name))
3531
+
3532
+ class PhotoImage(Image):
3533
+ """Widget which can display colored images in GIF, PPM/PGM format."""
3534
+ def __init__(self, name=None, cnf={}, master=None, **kw):
3535
+ """Create an image with NAME.
3536
+
3537
+ Valid resource names: data, format, file, gamma, height, palette,
3538
+ width."""
3539
+ Image.__init__(self, 'photo', name, cnf, master, **kw)
3540
+ def blank(self):
3541
+ """Display a transparent image."""
3542
+ self.tk.call(self.name, 'blank')
3543
+ def cget(self, option):
3544
+ """Return the value of OPTION."""
3545
+ return self.tk.call(self.name, 'cget', '-' + option)
3546
+ # XXX config
3547
+ def __getitem__(self, key):
3548
+ return self.tk.call(self.name, 'cget', '-' + key)
3549
+ # XXX copy -from, -to, ...?
3550
+ def copy(self):
3551
+ """Return a new PhotoImage with the same image as this widget."""
3552
+ destImage = PhotoImage(master=self.tk)
3553
+ self.tk.call(destImage, 'copy', self.name)
3554
+ return destImage
3555
+ def zoom(self, x, y=''):
3556
+ """Return a new PhotoImage with the same image as this widget
3557
+ but zoom it with a factor of x in the X direction and y in the Y
3558
+ direction. If y is not given, the default value is the same as x.
3559
+ """
3560
+ destImage = PhotoImage(master=self.tk)
3561
+ if y=='': y=x
3562
+ self.tk.call(destImage, 'copy', self.name, '-zoom',x,y)
3563
+ return destImage
3564
+ def subsample(self, x, y=''):
3565
+ """Return a new PhotoImage based on the same image as this widget
3566
+ but use only every Xth or Yth pixel. If y is not given, the
3567
+ default value is the same as x.
3568
+ """
3569
+ destImage = PhotoImage(master=self.tk)
3570
+ if y=='': y=x
3571
+ self.tk.call(destImage, 'copy', self.name, '-subsample',x,y)
3572
+ return destImage
3573
+ def get(self, x, y):
3574
+ """Return the color (red, green, blue) of the pixel at X,Y."""
3575
+ return self.tk.call(self.name, 'get', x, y)
3576
+ def put(self, data, to=None):
3577
+ """Put row formatted colors to image starting from
3578
+ position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))"""
3579
+ args = (self.name, 'put', data)
3580
+ if to:
3581
+ if to[0] == '-to':
3582
+ to = to[1:]
3583
+ args = args + ('-to',) + tuple(to)
3584
+ self.tk.call(args)
3585
+ # XXX read
3586
+ def write(self, filename, format=None, from_coords=None):
3587
+ """Write image to file FILENAME in FORMAT starting from
3588
+ position FROM_COORDS."""
3589
+ args = (self.name, 'write', filename)
3590
+ if format:
3591
+ args = args + ('-format', format)
3592
+ if from_coords:
3593
+ args = args + ('-from',) + tuple(from_coords)
3594
+ self.tk.call(args)
3595
+
3596
+ class BitmapImage(Image):
3597
+ """Widget which can display a bitmap."""
3598
+ def __init__(self, name=None, cnf={}, master=None, **kw):
3599
+ """Create a bitmap with NAME.
3600
+
3601
+ Valid resource names: background, data, file, foreground, maskdata, maskfile."""
3602
+ Image.__init__(self, 'bitmap', name, cnf, master, **kw)
3603
+
3604
+ def image_names():
3605
+ return _default_root.tk.splitlist(_default_root.tk.call('image', 'names'))
3606
+
3607
+ def image_types():
3608
+ return _default_root.tk.splitlist(_default_root.tk.call('image', 'types'))
3609
+
3610
+
3611
+ class Spinbox(Widget, XView):
3612
+ """spinbox widget."""
3613
+ def __init__(self, master=None, cnf={}, **kw):
3614
+ """Construct a spinbox widget with the parent MASTER.
3615
+
3616
+ STANDARD OPTIONS
3617
+
3618
+ activebackground, background, borderwidth,
3619
+ cursor, exportselection, font, foreground,
3620
+ highlightbackground, highlightcolor,
3621
+ highlightthickness, insertbackground,
3622
+ insertborderwidth, insertofftime,
3623
+ insertontime, insertwidth, justify, relief,
3624
+ repeatdelay, repeatinterval,
3625
+ selectbackground, selectborderwidth
3626
+ selectforeground, takefocus, textvariable
3627
+ xscrollcommand.
3628
+
3629
+ WIDGET-SPECIFIC OPTIONS
3630
+
3631
+ buttonbackground, buttoncursor,
3632
+ buttondownrelief, buttonuprelief,
3633
+ command, disabledbackground,
3634
+ disabledforeground, format, from,
3635
+ invalidcommand, increment,
3636
+ readonlybackground, state, to,
3637
+ validate, validatecommand values,
3638
+ width, wrap,
3639
+ """
3640
+ Widget.__init__(self, master, 'spinbox', cnf, kw)
3641
+
3642
+ def bbox(self, index):
3643
+ """Return a tuple of X1,Y1,X2,Y2 coordinates for a
3644
+ rectangle which encloses the character given by index.
3645
+
3646
+ The first two elements of the list give the x and y
3647
+ coordinates of the upper-left corner of the screen
3648
+ area covered by the character (in pixels relative
3649
+ to the widget) and the last two elements give the
3650
+ width and height of the character, in pixels. The
3651
+ bounding box may refer to a region outside the
3652
+ visible area of the window.
3653
+ """
3654
+ return self._getints(self.tk.call(self._w, 'bbox', index)) or None
3655
+
3656
+ def delete(self, first, last=None):
3657
+ """Delete one or more elements of the spinbox.
3658
+
3659
+ First is the index of the first character to delete,
3660
+ and last is the index of the character just after
3661
+ the last one to delete. If last isn't specified it
3662
+ defaults to first+1, i.e. a single character is
3663
+ deleted. This command returns an empty string.
3664
+ """
3665
+ return self.tk.call(self._w, 'delete', first, last)
3666
+
3667
+ def get(self):
3668
+ """Returns the spinbox's string"""
3669
+ return self.tk.call(self._w, 'get')
3670
+
3671
+ def icursor(self, index):
3672
+ """Alter the position of the insertion cursor.
3673
+
3674
+ The insertion cursor will be displayed just before
3675
+ the character given by index. Returns an empty string
3676
+ """
3677
+ return self.tk.call(self._w, 'icursor', index)
3678
+
3679
+ def identify(self, x, y):
3680
+ """Returns the name of the widget at position x, y
3681
+
3682
+ Return value is one of: none, buttondown, buttonup, entry
3683
+ """
3684
+ return self.tk.call(self._w, 'identify', x, y)
3685
+
3686
+ def index(self, index):
3687
+ """Returns the numerical index corresponding to index
3688
+ """
3689
+ return self.tk.call(self._w, 'index', index)
3690
+
3691
+ def insert(self, index, s):
3692
+ """Insert string s at index
3693
+
3694
+ Returns an empty string.
3695
+ """
3696
+ return self.tk.call(self._w, 'insert', index, s)
3697
+
3698
+ def invoke(self, element):
3699
+ """Causes the specified element to be invoked
3700
+
3701
+ The element could be buttondown or buttonup
3702
+ triggering the action associated with it.
3703
+ """
3704
+ return self.tk.call(self._w, 'invoke', element)
3705
+
3706
+ def scan(self, *args):
3707
+ """Internal function."""
3708
+ return self._getints(
3709
+ self.tk.call((self._w, 'scan') + args)) or ()
3710
+
3711
+ def scan_mark(self, x):
3712
+ """Records x and the current view in the spinbox window;
3713
+
3714
+ used in conjunction with later scan dragto commands.
3715
+ Typically this command is associated with a mouse button
3716
+ press in the widget. It returns an empty string.
3717
+ """
3718
+ return self.scan("mark", x)
3719
+
3720
+ def scan_dragto(self, x):
3721
+ """Compute the difference between the given x argument
3722
+ and the x argument to the last scan mark command
3723
+
3724
+ It then adjusts the view left or right by 10 times the
3725
+ difference in x-coordinates. This command is typically
3726
+ associated with mouse motion events in the widget, to
3727
+ produce the effect of dragging the spinbox at high speed
3728
+ through the window. The return value is an empty string.
3729
+ """
3730
+ return self.scan("dragto", x)
3731
+
3732
+ def selection(self, *args):
3733
+ """Internal function."""
3734
+ return self._getints(
3735
+ self.tk.call((self._w, 'selection') + args)) or ()
3736
+
3737
+ def selection_adjust(self, index):
3738
+ """Locate the end of the selection nearest to the character
3739
+ given by index,
3740
+
3741
+ Then adjust that end of the selection to be at index
3742
+ (i.e including but not going beyond index). The other
3743
+ end of the selection is made the anchor point for future
3744
+ select to commands. If the selection isn't currently in
3745
+ the spinbox, then a new selection is created to include
3746
+ the characters between index and the most recent selection
3747
+ anchor point, inclusive. Returns an empty string.
3748
+ """
3749
+ return self.selection("adjust", index)
3750
+
3751
+ def selection_clear(self):
3752
+ """Clear the selection
3753
+
3754
+ If the selection isn't in this widget then the
3755
+ command has no effect. Returns an empty string.
3756
+ """
3757
+ return self.selection("clear")
3758
+
3759
+ def selection_element(self, element=None):
3760
+ """Sets or gets the currently selected element.
3761
+
3762
+ If a spinbutton element is specified, it will be
3763
+ displayed depressed
3764
+ """
3765
+ return self.selection("element", element)
3766
+
3767
+ ###########################################################################
3768
+
3769
+ class LabelFrame(Widget):
3770
+ """labelframe widget."""
3771
+ def __init__(self, master=None, cnf={}, **kw):
3772
+ """Construct a labelframe widget with the parent MASTER.
3773
+
3774
+ STANDARD OPTIONS
3775
+
3776
+ borderwidth, cursor, font, foreground,
3777
+ highlightbackground, highlightcolor,
3778
+ highlightthickness, padx, pady, relief,
3779
+ takefocus, text
3780
+
3781
+ WIDGET-SPECIFIC OPTIONS
3782
+
3783
+ background, class, colormap, container,
3784
+ height, labelanchor, labelwidget,
3785
+ visual, width
3786
+ """
3787
+ Widget.__init__(self, master, 'labelframe', cnf, kw)
3788
+
3789
+ ########################################################################
3790
+
3791
+ class PanedWindow(Widget):
3792
+ """panedwindow widget."""
3793
+ def __init__(self, master=None, cnf={}, **kw):
3794
+ """Construct a panedwindow widget with the parent MASTER.
3795
+
3796
+ STANDARD OPTIONS
3797
+
3798
+ background, borderwidth, cursor, height,
3799
+ orient, relief, width
3800
+
3801
+ WIDGET-SPECIFIC OPTIONS
3802
+
3803
+ handlepad, handlesize, opaqueresize,
3804
+ sashcursor, sashpad, sashrelief,
3805
+ sashwidth, showhandle,
3806
+ """
3807
+ Widget.__init__(self, master, 'panedwindow', cnf, kw)
3808
+
3809
+ def add(self, child, **kw):
3810
+ """Add a child widget to the panedwindow in a new pane.
3811
+
3812
+ The child argument is the name of the child widget
3813
+ followed by pairs of arguments that specify how to
3814
+ manage the windows. The possible options and values
3815
+ are the ones accepted by the paneconfigure method.
3816
+ """
3817
+ self.tk.call((self._w, 'add', child) + self._options(kw))
3818
+
3819
+ def remove(self, child):
3820
+ """Remove the pane containing child from the panedwindow
3821
+
3822
+ All geometry management options for child will be forgotten.
3823
+ """
3824
+ self.tk.call(self._w, 'forget', child)
3825
+ forget=remove
3826
+
3827
+ def identify(self, x, y):
3828
+ """Identify the panedwindow component at point x, y
3829
+
3830
+ If the point is over a sash or a sash handle, the result
3831
+ is a two element list containing the index of the sash or
3832
+ handle, and a word indicating whether it is over a sash
3833
+ or a handle, such as {0 sash} or {2 handle}. If the point
3834
+ is over any other part of the panedwindow, the result is
3835
+ an empty list.
3836
+ """
3837
+ return self.tk.call(self._w, 'identify', x, y)
3838
+
3839
+ def proxy(self, *args):
3840
+ """Internal function."""
3841
+ return self._getints(
3842
+ self.tk.call((self._w, 'proxy') + args)) or ()
3843
+
3844
+ def proxy_coord(self):
3845
+ """Return the x and y pair of the most recent proxy location
3846
+ """
3847
+ return self.proxy("coord")
3848
+
3849
+ def proxy_forget(self):
3850
+ """Remove the proxy from the display.
3851
+ """
3852
+ return self.proxy("forget")
3853
+
3854
+ def proxy_place(self, x, y):
3855
+ """Place the proxy at the given x and y coordinates.
3856
+ """
3857
+ return self.proxy("place", x, y)
3858
+
3859
+ def sash(self, *args):
3860
+ """Internal function."""
3861
+ return self._getints(
3862
+ self.tk.call((self._w, 'sash') + args)) or ()
3863
+
3864
+ def sash_coord(self, index):
3865
+ """Return the current x and y pair for the sash given by index.
3866
+
3867
+ Index must be an integer between 0 and 1 less than the
3868
+ number of panes in the panedwindow. The coordinates given are
3869
+ those of the top left corner of the region containing the sash.
3870
+ pathName sash dragto index x y This command computes the
3871
+ difference between the given coordinates and the coordinates
3872
+ given to the last sash coord command for the given sash. It then
3873
+ moves that sash the computed difference. The return value is the
3874
+ empty string.
3875
+ """
3876
+ return self.sash("coord", index)
3877
+
3878
+ def sash_mark(self, index):
3879
+ """Records x and y for the sash given by index;
3880
+
3881
+ Used in conjunction with later dragto commands to move the sash.
3882
+ """
3883
+ return self.sash("mark", index)
3884
+
3885
+ def sash_place(self, index, x, y):
3886
+ """Place the sash given by index at the given coordinates
3887
+ """
3888
+ return self.sash("place", index, x, y)
3889
+
3890
+ def panecget(self, child, option):
3891
+ """Query a management option for window.
3892
+
3893
+ Option may be any value allowed by the paneconfigure subcommand
3894
+ """
3895
+ return self.tk.call(
3896
+ (self._w, 'panecget') + (child, '-'+option))
3897
+
3898
+ def paneconfigure(self, tagOrId, cnf=None, **kw):
3899
+ """Query or modify the management options for window.
3900
+
3901
+ If no option is specified, returns a list describing all
3902
+ of the available options for pathName. If option is
3903
+ specified with no value, then the command returns a list
3904
+ describing the one named option (this list will be identical
3905
+ to the corresponding sublist of the value returned if no
3906
+ option is specified). If one or more option-value pairs are
3907
+ specified, then the command modifies the given widget
3908
+ option(s) to have the given value(s); in this case the
3909
+ command returns an empty string. The following options
3910
+ are supported:
3911
+
3912
+ after window
3913
+ Insert the window after the window specified. window
3914
+ should be the name of a window already managed by pathName.
3915
+ before window
3916
+ Insert the window before the window specified. window
3917
+ should be the name of a window already managed by pathName.
3918
+ height size
3919
+ Specify a height for the window. The height will be the
3920
+ outer dimension of the window including its border, if
3921
+ any. If size is an empty string, or if -height is not
3922
+ specified, then the height requested internally by the
3923
+ window will be used initially; the height may later be
3924
+ adjusted by the movement of sashes in the panedwindow.
3925
+ Size may be any value accepted by Tk_GetPixels.
3926
+ minsize n
3927
+ Specifies that the size of the window cannot be made
3928
+ less than n. This constraint only affects the size of
3929
+ the widget in the paned dimension -- the x dimension
3930
+ for horizontal panedwindows, the y dimension for
3931
+ vertical panedwindows. May be any value accepted by
3932
+ Tk_GetPixels.
3933
+ padx n
3934
+ Specifies a non-negative value indicating how much
3935
+ extra space to leave on each side of the window in
3936
+ the X-direction. The value may have any of the forms
3937
+ accepted by Tk_GetPixels.
3938
+ pady n
3939
+ Specifies a non-negative value indicating how much
3940
+ extra space to leave on each side of the window in
3941
+ the Y-direction. The value may have any of the forms
3942
+ accepted by Tk_GetPixels.
3943
+ sticky style
3944
+ If a window's pane is larger than the requested
3945
+ dimensions of the window, this option may be used
3946
+ to position (or stretch) the window within its pane.
3947
+ Style is a string that contains zero or more of the
3948
+ characters n, s, e or w. The string can optionally
3949
+ contains spaces or commas, but they are ignored. Each
3950
+ letter refers to a side (north, south, east, or west)
3951
+ that the window will "stick" to. If both n and s
3952
+ (or e and w) are specified, the window will be
3953
+ stretched to fill the entire height (or width) of
3954
+ its cavity.
3955
+ width size
3956
+ Specify a width for the window. The width will be
3957
+ the outer dimension of the window including its
3958
+ border, if any. If size is an empty string, or
3959
+ if -width is not specified, then the width requested
3960
+ internally by the window will be used initially; the
3961
+ width may later be adjusted by the movement of sashes
3962
+ in the panedwindow. Size may be any value accepted by
3963
+ Tk_GetPixels.
3964
+
3965
+ """
3966
+ if cnf is None and not kw:
3967
+ return self._getconfigure(self._w, 'paneconfigure', tagOrId)
3968
+ if isinstance(cnf, str) and not kw:
3969
+ return self._getconfigure1(
3970
+ self._w, 'paneconfigure', tagOrId, '-'+cnf)
3971
+ self.tk.call((self._w, 'paneconfigure', tagOrId) +
3972
+ self._options(cnf, kw))
3973
+ paneconfig = paneconfigure
3974
+
3975
+ def panes(self):
3976
+ """Returns an ordered list of the child panes."""
3977
+ return self.tk.splitlist(self.tk.call(self._w, 'panes'))
3978
+
3979
+ # Test:
3980
+
3981
+ def _test():
3982
+ root = Tk()
3983
+ text = "This is Tcl/Tk version %s" % TclVersion
3984
+ text += "\nThis should be a cedilla: \xe7"
3985
+ label = Label(root, text=text)
3986
+ label.pack()
3987
+ test = Button(root, text="Click me!",
3988
+ command=lambda root=root: root.test.configure(
3989
+ text="[%s]" % root.test['text']))
3990
+ test.pack()
3991
+ root.test = test
3992
+ quit = Button(root, text="QUIT", command=root.destroy)
3993
+ quit.pack()
3994
+ # The following three commands are needed so the window pops
3995
+ # up on top on Windows...
3996
+ root.iconify()
3997
+ root.update()
3998
+ root.deiconify()
3999
+ root.mainloop()
4000
+
4001
+ if __name__ == '__main__':
4002
+ _test()