com.googler.python 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2352) hide show
  1. package/package.json +7 -0
  2. package/python3 +6 -0
  3. package/python3.4.2/bin/2to3 +5 -0
  4. package/python3.4.2/bin/2to3-3.4 +5 -0
  5. package/python3.4.2/bin/android-debian-builder +10 -0
  6. package/python3.4.2/bin/easy_install-3.4 +11 -0
  7. package/python3.4.2/bin/idle3 +5 -0
  8. package/python3.4.2/bin/idle3.4 +5 -0
  9. package/python3.4.2/bin/pip3 +11 -0
  10. package/python3.4.2/bin/pip3.4 +11 -0
  11. package/python3.4.2/bin/pydoc3 +5 -0
  12. package/python3.4.2/bin/pydoc3.4 +5 -0
  13. package/python3.4.2/bin/python3-config +111 -0
  14. package/python3.4.2/bin/python3.4 +0 -0
  15. package/python3.4.2/bin/python3.4-config +111 -0
  16. package/python3.4.2/bin/python3.4m-config +111 -0
  17. package/python3.4.2/bin/pyvenv +11 -0
  18. package/python3.4.2/bin/pyvenv-3.4 +11 -0
  19. package/python3.4.2/include/python3.4m/Python-ast.h +569 -0
  20. package/python3.4.2/include/python3.4m/Python.h +133 -0
  21. package/python3.4.2/include/python3.4m/abstract.h +1267 -0
  22. package/python3.4.2/include/python3.4m/accu.h +37 -0
  23. package/python3.4.2/include/python3.4m/asdl.h +45 -0
  24. package/python3.4.2/include/python3.4m/ast.h +22 -0
  25. package/python3.4.2/include/python3.4m/bitset.h +32 -0
  26. package/python3.4.2/include/python3.4m/bltinmodule.h +14 -0
  27. package/python3.4.2/include/python3.4m/boolobject.h +34 -0
  28. package/python3.4.2/include/python3.4m/bytearrayobject.h +62 -0
  29. package/python3.4.2/include/python3.4m/bytes_methods.h +46 -0
  30. package/python3.4.2/include/python3.4m/bytesobject.h +128 -0
  31. package/python3.4.2/include/python3.4m/cellobject.h +29 -0
  32. package/python3.4.2/include/python3.4m/ceval.h +205 -0
  33. package/python3.4.2/include/python3.4m/classobject.h +58 -0
  34. package/python3.4.2/include/python3.4m/code.h +115 -0
  35. package/python3.4.2/include/python3.4m/codecs.h +233 -0
  36. package/python3.4.2/include/python3.4m/compile.h +72 -0
  37. package/python3.4.2/include/python3.4m/complexobject.h +77 -0
  38. package/python3.4.2/include/python3.4m/datetime.h +243 -0
  39. package/python3.4.2/include/python3.4m/descrobject.h +105 -0
  40. package/python3.4.2/include/python3.4m/dictobject.h +126 -0
  41. package/python3.4.2/include/python3.4m/dtoa.h +19 -0
  42. package/python3.4.2/include/python3.4m/dynamic_annotations.h +499 -0
  43. package/python3.4.2/include/python3.4m/enumobject.h +17 -0
  44. package/python3.4.2/include/python3.4m/errcode.h +38 -0
  45. package/python3.4.2/include/python3.4m/eval.h +27 -0
  46. package/python3.4.2/include/python3.4m/fileobject.h +58 -0
  47. package/python3.4.2/include/python3.4m/fileutils.h +79 -0
  48. package/python3.4.2/include/python3.4m/floatobject.h +128 -0
  49. package/python3.4.2/include/python3.4m/frameobject.h +95 -0
  50. package/python3.4.2/include/python3.4m/funcobject.h +89 -0
  51. package/python3.4.2/include/python3.4m/genobject.h +46 -0
  52. package/python3.4.2/include/python3.4m/graminit.h +84 -0
  53. package/python3.4.2/include/python3.4m/grammar.h +93 -0
  54. package/python3.4.2/include/python3.4m/import.h +130 -0
  55. package/python3.4.2/include/python3.4m/intrcheck.h +21 -0
  56. package/python3.4.2/include/python3.4m/iterobject.h +25 -0
  57. package/python3.4.2/include/python3.4m/listobject.h +80 -0
  58. package/python3.4.2/include/python3.4m/longintrepr.h +103 -0
  59. package/python3.4.2/include/python3.4m/longobject.h +204 -0
  60. package/python3.4.2/include/python3.4m/marshal.h +28 -0
  61. package/python3.4.2/include/python3.4m/memoryobject.h +74 -0
  62. package/python3.4.2/include/python3.4m/metagrammar.h +18 -0
  63. package/python3.4.2/include/python3.4m/methodobject.h +93 -0
  64. package/python3.4.2/include/python3.4m/modsupport.h +132 -0
  65. package/python3.4.2/include/python3.4m/moduleobject.h +63 -0
  66. package/python3.4.2/include/python3.4m/namespaceobject.h +17 -0
  67. package/python3.4.2/include/python3.4m/node.h +44 -0
  68. package/python3.4.2/include/python3.4m/object.h +1015 -0
  69. package/python3.4.2/include/python3.4m/objimpl.h +361 -0
  70. package/python3.4.2/include/python3.4m/opcode.h +159 -0
  71. package/python3.4.2/include/python3.4m/osdefs.h +50 -0
  72. package/python3.4.2/include/python3.4m/parsetok.h +108 -0
  73. package/python3.4.2/include/python3.4m/patchlevel.h +35 -0
  74. package/python3.4.2/include/python3.4m/pgen.h +18 -0
  75. package/python3.4.2/include/python3.4m/pgenheaders.h +42 -0
  76. package/python3.4.2/include/python3.4m/py_curses.h +177 -0
  77. package/python3.4.2/include/python3.4m/pyarena.h +64 -0
  78. package/python3.4.2/include/python3.4m/pyatomic.h +184 -0
  79. package/python3.4.2/include/python3.4m/pycapsule.h +59 -0
  80. package/python3.4.2/include/python3.4m/pyconfig.h +1503 -0
  81. package/python3.4.2/include/python3.4m/pyctype.h +33 -0
  82. package/python3.4.2/include/python3.4m/pydebug.h +34 -0
  83. package/python3.4.2/include/python3.4m/pyerrors.h +464 -0
  84. package/python3.4.2/include/python3.4m/pyexpat.h +53 -0
  85. package/python3.4.2/include/python3.4m/pyfpe.h +176 -0
  86. package/python3.4.2/include/python3.4m/pygetopt.h +21 -0
  87. package/python3.4.2/include/python3.4m/pyhash.h +149 -0
  88. package/python3.4.2/include/python3.4m/pymacconfig.h +102 -0
  89. package/python3.4.2/include/python3.4m/pymacro.h +78 -0
  90. package/python3.4.2/include/python3.4m/pymath.h +190 -0
  91. package/python3.4.2/include/python3.4m/pymem.h +183 -0
  92. package/python3.4.2/include/python3.4m/pyport.h +883 -0
  93. package/python3.4.2/include/python3.4m/pystate.h +271 -0
  94. package/python3.4.2/include/python3.4m/pystrcmp.h +23 -0
  95. package/python3.4.2/include/python3.4m/pystrtod.h +41 -0
  96. package/python3.4.2/include/python3.4m/pythonrun.h +304 -0
  97. package/python3.4.2/include/python3.4m/pythread.h +93 -0
  98. package/python3.4.2/include/python3.4m/pytime.h +105 -0
  99. package/python3.4.2/include/python3.4m/rangeobject.h +27 -0
  100. package/python3.4.2/include/python3.4m/setobject.h +113 -0
  101. package/python3.4.2/include/python3.4m/sliceobject.h +50 -0
  102. package/python3.4.2/include/python3.4m/structmember.h +76 -0
  103. package/python3.4.2/include/python3.4m/structseq.h +49 -0
  104. package/python3.4.2/include/python3.4m/symtable.h +122 -0
  105. package/python3.4.2/include/python3.4m/sysmodule.h +43 -0
  106. package/python3.4.2/include/python3.4m/token.h +87 -0
  107. package/python3.4.2/include/python3.4m/traceback.h +72 -0
  108. package/python3.4.2/include/python3.4m/tupleobject.h +73 -0
  109. package/python3.4.2/include/python3.4m/typeslots.h +76 -0
  110. package/python3.4.2/include/python3.4m/ucnhash.h +36 -0
  111. package/python3.4.2/include/python3.4m/unicodeobject.h +2271 -0
  112. package/python3.4.2/include/python3.4m/warnings.h +54 -0
  113. package/python3.4.2/include/python3.4m/weakrefobject.h +86 -0
  114. package/python3.4.2/lib/pkgconfig/python-3.4.pc +13 -0
  115. package/python3.4.2/lib/pkgconfig/python-3.4m.pc +13 -0
  116. package/python3.4.2/lib/pkgconfig/python3.pc +13 -0
  117. package/python3.4.2/lib/python3.4/LICENSE.txt +254 -0
  118. package/python3.4.2/lib/python3.4/__future__.py +134 -0
  119. package/python3.4.2/lib/python3.4/__phello__.foo.py +1 -0
  120. package/python3.4.2/lib/python3.4/__pycache__/_bootlocale.cpython-34.pyc +0 -0
  121. package/python3.4.2/lib/python3.4/__pycache__/_collections_abc.cpython-34.pyc +0 -0
  122. package/python3.4.2/lib/python3.4/__pycache__/_sitebuiltins.cpython-34.pyc +0 -0
  123. package/python3.4.2/lib/python3.4/__pycache__/_sysconfigdata.cpython-34.pyc +0 -0
  124. package/python3.4.2/lib/python3.4/__pycache__/_weakrefset.cpython-34.pyc +0 -0
  125. package/python3.4.2/lib/python3.4/__pycache__/abc.cpython-34.pyc +0 -0
  126. package/python3.4.2/lib/python3.4/__pycache__/codecs.cpython-34.pyc +0 -0
  127. package/python3.4.2/lib/python3.4/__pycache__/genericpath.cpython-34.pyc +0 -0
  128. package/python3.4.2/lib/python3.4/__pycache__/io.cpython-34.pyc +0 -0
  129. package/python3.4.2/lib/python3.4/__pycache__/os.cpython-34.pyc +0 -0
  130. package/python3.4.2/lib/python3.4/__pycache__/posixpath.cpython-34.pyc +0 -0
  131. package/python3.4.2/lib/python3.4/__pycache__/rlcompleter.cpython-34.pyc +0 -0
  132. package/python3.4.2/lib/python3.4/__pycache__/site.cpython-34.pyc +0 -0
  133. package/python3.4.2/lib/python3.4/__pycache__/stat.cpython-34.pyc +0 -0
  134. package/python3.4.2/lib/python3.4/__pycache__/sysconfig.cpython-34.pyc +0 -0
  135. package/python3.4.2/lib/python3.4/_bootlocale.py +34 -0
  136. package/python3.4.2/lib/python3.4/_collections_abc.py +753 -0
  137. package/python3.4.2/lib/python3.4/_compat_pickle.py +137 -0
  138. package/python3.4.2/lib/python3.4/_dummy_thread.py +155 -0
  139. package/python3.4.2/lib/python3.4/_markupbase.py +395 -0
  140. package/python3.4.2/lib/python3.4/_osx_support.py +502 -0
  141. package/python3.4.2/lib/python3.4/_pyio.py +2105 -0
  142. package/python3.4.2/lib/python3.4/_sitebuiltins.py +103 -0
  143. package/python3.4.2/lib/python3.4/_strptime.py +511 -0
  144. package/python3.4.2/lib/python3.4/_sysconfigdata.py +710 -0
  145. package/python3.4.2/lib/python3.4/_threading_local.py +246 -0
  146. package/python3.4.2/lib/python3.4/_weakrefset.py +196 -0
  147. package/python3.4.2/lib/python3.4/abc.py +248 -0
  148. package/python3.4.2/lib/python3.4/aifc.py +918 -0
  149. package/python3.4.2/lib/python3.4/antigravity.py +17 -0
  150. package/python3.4.2/lib/python3.4/argparse.py +2379 -0
  151. package/python3.4.2/lib/python3.4/ast.py +315 -0
  152. package/python3.4.2/lib/python3.4/asynchat.py +333 -0
  153. package/python3.4.2/lib/python3.4/asyncio/__init__.py +48 -0
  154. package/python3.4.2/lib/python3.4/asyncio/base_events.py +1055 -0
  155. package/python3.4.2/lib/python3.4/asyncio/base_subprocess.py +197 -0
  156. package/python3.4.2/lib/python3.4/asyncio/constants.py +7 -0
  157. package/python3.4.2/lib/python3.4/asyncio/coroutines.py +195 -0
  158. package/python3.4.2/lib/python3.4/asyncio/events.py +586 -0
  159. package/python3.4.2/lib/python3.4/asyncio/futures.py +411 -0
  160. package/python3.4.2/lib/python3.4/asyncio/locks.py +469 -0
  161. package/python3.4.2/lib/python3.4/asyncio/log.py +7 -0
  162. package/python3.4.2/lib/python3.4/asyncio/proactor_events.py +499 -0
  163. package/python3.4.2/lib/python3.4/asyncio/protocols.py +129 -0
  164. package/python3.4.2/lib/python3.4/asyncio/queues.py +288 -0
  165. package/python3.4.2/lib/python3.4/asyncio/selector_events.py +996 -0
  166. package/python3.4.2/lib/python3.4/asyncio/streams.py +485 -0
  167. package/python3.4.2/lib/python3.4/asyncio/subprocess.py +228 -0
  168. package/python3.4.2/lib/python3.4/asyncio/tasks.py +658 -0
  169. package/python3.4.2/lib/python3.4/asyncio/test_utils.py +425 -0
  170. package/python3.4.2/lib/python3.4/asyncio/transports.py +298 -0
  171. package/python3.4.2/lib/python3.4/asyncio/unix_events.py +922 -0
  172. package/python3.4.2/lib/python3.4/asyncio/windows_events.py +634 -0
  173. package/python3.4.2/lib/python3.4/asyncio/windows_utils.py +207 -0
  174. package/python3.4.2/lib/python3.4/asyncore.py +666 -0
  175. package/python3.4.2/lib/python3.4/base64.py +602 -0
  176. package/python3.4.2/lib/python3.4/bdb.py +673 -0
  177. package/python3.4.2/lib/python3.4/binhex.py +471 -0
  178. package/python3.4.2/lib/python3.4/bisect.py +92 -0
  179. package/python3.4.2/lib/python3.4/bz2.py +521 -0
  180. package/python3.4.2/lib/python3.4/cProfile.py +160 -0
  181. package/python3.4.2/lib/python3.4/calendar.py +703 -0
  182. package/python3.4.2/lib/python3.4/cgi.py +1061 -0
  183. package/python3.4.2/lib/python3.4/cgitb.py +320 -0
  184. package/python3.4.2/lib/python3.4/chunk.py +167 -0
  185. package/python3.4.2/lib/python3.4/cmd.py +401 -0
  186. package/python3.4.2/lib/python3.4/code.py +302 -0
  187. package/python3.4.2/lib/python3.4/codecs.py +1110 -0
  188. package/python3.4.2/lib/python3.4/codeop.py +168 -0
  189. package/python3.4.2/lib/python3.4/collections/__init__.py +1132 -0
  190. package/python3.4.2/lib/python3.4/collections/__main__.py +38 -0
  191. package/python3.4.2/lib/python3.4/collections/abc.py +2 -0
  192. package/python3.4.2/lib/python3.4/colorsys.py +164 -0
  193. package/python3.4.2/lib/python3.4/compileall.py +241 -0
  194. package/python3.4.2/lib/python3.4/concurrent/__init__.py +1 -0
  195. package/python3.4.2/lib/python3.4/concurrent/futures/__init__.py +18 -0
  196. package/python3.4.2/lib/python3.4/concurrent/futures/_base.py +575 -0
  197. package/python3.4.2/lib/python3.4/concurrent/futures/process.py +427 -0
  198. package/python3.4.2/lib/python3.4/concurrent/futures/thread.py +132 -0
  199. package/python3.4.2/lib/python3.4/config-3.4m/Makefile +1835 -0
  200. package/python3.4.2/lib/python3.4/config-3.4m/Setup +466 -0
  201. package/python3.4.2/lib/python3.4/config-3.4m/Setup.config +13 -0
  202. package/python3.4.2/lib/python3.4/config-3.4m/Setup.local +1 -0
  203. package/python3.4.2/lib/python3.4/config-3.4m/config.c +234 -0
  204. package/python3.4.2/lib/python3.4/config-3.4m/config.c.in +67 -0
  205. package/python3.4.2/lib/python3.4/config-3.4m/install-sh +294 -0
  206. package/python3.4.2/lib/python3.4/config-3.4m/makesetup +293 -0
  207. package/python3.4.2/lib/python3.4/config-3.4m/python-config.py +68 -0
  208. package/python3.4.2/lib/python3.4/configparser.py +1254 -0
  209. package/python3.4.2/lib/python3.4/contextlib.py +340 -0
  210. package/python3.4.2/lib/python3.4/copy.py +333 -0
  211. package/python3.4.2/lib/python3.4/copyreg.py +202 -0
  212. package/python3.4.2/lib/python3.4/crypt.py +62 -0
  213. package/python3.4.2/lib/python3.4/csv.py +449 -0
  214. package/python3.4.2/lib/python3.4/ctypes/__init__.py +541 -0
  215. package/python3.4.2/lib/python3.4/ctypes/_endian.py +59 -0
  216. package/python3.4.2/lib/python3.4/ctypes/macholib/README.ctypes +7 -0
  217. package/python3.4.2/lib/python3.4/ctypes/macholib/__init__.py +9 -0
  218. package/python3.4.2/lib/python3.4/ctypes/macholib/dyld.py +158 -0
  219. package/python3.4.2/lib/python3.4/ctypes/macholib/dylib.py +63 -0
  220. package/python3.4.2/lib/python3.4/ctypes/macholib/fetch_macholib +2 -0
  221. package/python3.4.2/lib/python3.4/ctypes/macholib/fetch_macholib.bat +1 -0
  222. package/python3.4.2/lib/python3.4/ctypes/macholib/framework.py +65 -0
  223. package/python3.4.2/lib/python3.4/ctypes/test/__init__.py +14 -0
  224. package/python3.4.2/lib/python3.4/ctypes/test/__main__.py +4 -0
  225. package/python3.4.2/lib/python3.4/ctypes/test/test_anon.py +60 -0
  226. package/python3.4.2/lib/python3.4/ctypes/test/test_array_in_pointer.py +64 -0
  227. package/python3.4.2/lib/python3.4/ctypes/test/test_arrays.py +181 -0
  228. package/python3.4.2/lib/python3.4/ctypes/test/test_as_parameter.py +226 -0
  229. package/python3.4.2/lib/python3.4/ctypes/test/test_bitfields.py +263 -0
  230. package/python3.4.2/lib/python3.4/ctypes/test/test_buffers.py +64 -0
  231. package/python3.4.2/lib/python3.4/ctypes/test/test_bytes.py +65 -0
  232. package/python3.4.2/lib/python3.4/ctypes/test/test_byteswap.py +295 -0
  233. package/python3.4.2/lib/python3.4/ctypes/test/test_callbacks.py +247 -0
  234. package/python3.4.2/lib/python3.4/ctypes/test/test_cast.py +86 -0
  235. package/python3.4.2/lib/python3.4/ctypes/test/test_cfuncs.py +212 -0
  236. package/python3.4.2/lib/python3.4/ctypes/test/test_checkretval.py +36 -0
  237. package/python3.4.2/lib/python3.4/ctypes/test/test_delattr.py +21 -0
  238. package/python3.4.2/lib/python3.4/ctypes/test/test_errno.py +79 -0
  239. package/python3.4.2/lib/python3.4/ctypes/test/test_find.py +81 -0
  240. package/python3.4.2/lib/python3.4/ctypes/test/test_frombuffer.py +81 -0
  241. package/python3.4.2/lib/python3.4/ctypes/test/test_funcptr.py +127 -0
  242. package/python3.4.2/lib/python3.4/ctypes/test/test_functions.py +402 -0
  243. package/python3.4.2/lib/python3.4/ctypes/test/test_incomplete.py +42 -0
  244. package/python3.4.2/lib/python3.4/ctypes/test/test_init.py +40 -0
  245. package/python3.4.2/lib/python3.4/ctypes/test/test_internals.py +100 -0
  246. package/python3.4.2/lib/python3.4/ctypes/test/test_keeprefs.py +153 -0
  247. package/python3.4.2/lib/python3.4/ctypes/test/test_libc.py +33 -0
  248. package/python3.4.2/lib/python3.4/ctypes/test/test_loading.py +119 -0
  249. package/python3.4.2/lib/python3.4/ctypes/test/test_macholib.py +63 -0
  250. package/python3.4.2/lib/python3.4/ctypes/test/test_memfunctions.py +79 -0
  251. package/python3.4.2/lib/python3.4/ctypes/test/test_numbers.py +290 -0
  252. package/python3.4.2/lib/python3.4/ctypes/test/test_objects.py +67 -0
  253. package/python3.4.2/lib/python3.4/ctypes/test/test_parameters.py +176 -0
  254. package/python3.4.2/lib/python3.4/ctypes/test/test_pep3118.py +206 -0
  255. package/python3.4.2/lib/python3.4/ctypes/test/test_pickling.py +83 -0
  256. package/python3.4.2/lib/python3.4/ctypes/test/test_pointers.py +192 -0
  257. package/python3.4.2/lib/python3.4/ctypes/test/test_prototypes.py +219 -0
  258. package/python3.4.2/lib/python3.4/ctypes/test/test_python_api.py +89 -0
  259. package/python3.4.2/lib/python3.4/ctypes/test/test_random_things.py +74 -0
  260. package/python3.4.2/lib/python3.4/ctypes/test/test_refcounts.py +101 -0
  261. package/python3.4.2/lib/python3.4/ctypes/test/test_repr.py +29 -0
  262. package/python3.4.2/lib/python3.4/ctypes/test/test_returnfuncptrs.py +67 -0
  263. package/python3.4.2/lib/python3.4/ctypes/test/test_simplesubclasses.py +55 -0
  264. package/python3.4.2/lib/python3.4/ctypes/test/test_sizes.py +34 -0
  265. package/python3.4.2/lib/python3.4/ctypes/test/test_slicing.py +167 -0
  266. package/python3.4.2/lib/python3.4/ctypes/test/test_stringptr.py +77 -0
  267. package/python3.4.2/lib/python3.4/ctypes/test/test_strings.py +225 -0
  268. package/python3.4.2/lib/python3.4/ctypes/test/test_struct_fields.py +50 -0
  269. package/python3.4.2/lib/python3.4/ctypes/test/test_structures.py +468 -0
  270. package/python3.4.2/lib/python3.4/ctypes/test/test_unaligned_structures.py +45 -0
  271. package/python3.4.2/lib/python3.4/ctypes/test/test_unicode.py +56 -0
  272. package/python3.4.2/lib/python3.4/ctypes/test/test_values.py +95 -0
  273. package/python3.4.2/lib/python3.4/ctypes/test/test_varsize_struct.py +50 -0
  274. package/python3.4.2/lib/python3.4/ctypes/test/test_win32.py +119 -0
  275. package/python3.4.2/lib/python3.4/ctypes/test/test_wintypes.py +41 -0
  276. package/python3.4.2/lib/python3.4/ctypes/util.py +267 -0
  277. package/python3.4.2/lib/python3.4/ctypes/wintypes.py +202 -0
  278. package/python3.4.2/lib/python3.4/curses/__init__.py +101 -0
  279. package/python3.4.2/lib/python3.4/curses/ascii.py +99 -0
  280. package/python3.4.2/lib/python3.4/curses/has_key.py +192 -0
  281. package/python3.4.2/lib/python3.4/curses/panel.py +6 -0
  282. package/python3.4.2/lib/python3.4/curses/textpad.py +188 -0
  283. package/python3.4.2/lib/python3.4/datetime.py +2136 -0
  284. package/python3.4.2/lib/python3.4/dbm/__init__.py +188 -0
  285. package/python3.4.2/lib/python3.4/dbm/dumb.py +291 -0
  286. package/python3.4.2/lib/python3.4/dbm/gnu.py +3 -0
  287. package/python3.4.2/lib/python3.4/dbm/ndbm.py +3 -0
  288. package/python3.4.2/lib/python3.4/decimal.py +6414 -0
  289. package/python3.4.2/lib/python3.4/difflib.py +2039 -0
  290. package/python3.4.2/lib/python3.4/dis.py +475 -0
  291. package/python3.4.2/lib/python3.4/distutils/README +13 -0
  292. package/python3.4.2/lib/python3.4/distutils/__init__.py +17 -0
  293. package/python3.4.2/lib/python3.4/distutils/archive_util.py +245 -0
  294. package/python3.4.2/lib/python3.4/distutils/bcppcompiler.py +393 -0
  295. package/python3.4.2/lib/python3.4/distutils/ccompiler.py +1115 -0
  296. package/python3.4.2/lib/python3.4/distutils/cmd.py +435 -0
  297. package/python3.4.2/lib/python3.4/distutils/command/__init__.py +31 -0
  298. package/python3.4.2/lib/python3.4/distutils/command/bdist.py +142 -0
  299. package/python3.4.2/lib/python3.4/distutils/command/bdist_dumb.py +122 -0
  300. package/python3.4.2/lib/python3.4/distutils/command/bdist_msi.py +741 -0
  301. package/python3.4.2/lib/python3.4/distutils/command/bdist_rpm.py +582 -0
  302. package/python3.4.2/lib/python3.4/distutils/command/bdist_wininst.py +349 -0
  303. package/python3.4.2/lib/python3.4/distutils/command/build.py +148 -0
  304. package/python3.4.2/lib/python3.4/distutils/command/build_clib.py +209 -0
  305. package/python3.4.2/lib/python3.4/distutils/command/build_ext.py +735 -0
  306. package/python3.4.2/lib/python3.4/distutils/command/build_py.py +416 -0
  307. package/python3.4.2/lib/python3.4/distutils/command/build_scripts.py +160 -0
  308. package/python3.4.2/lib/python3.4/distutils/command/check.py +145 -0
  309. package/python3.4.2/lib/python3.4/distutils/command/clean.py +76 -0
  310. package/python3.4.2/lib/python3.4/distutils/command/command_template +33 -0
  311. package/python3.4.2/lib/python3.4/distutils/command/config.py +347 -0
  312. package/python3.4.2/lib/python3.4/distutils/command/install.py +650 -0
  313. package/python3.4.2/lib/python3.4/distutils/command/install_data.py +79 -0
  314. package/python3.4.2/lib/python3.4/distutils/command/install_egg_info.py +77 -0
  315. package/python3.4.2/lib/python3.4/distutils/command/install_headers.py +47 -0
  316. package/python3.4.2/lib/python3.4/distutils/command/install_lib.py +217 -0
  317. package/python3.4.2/lib/python3.4/distutils/command/install_scripts.py +60 -0
  318. package/python3.4.2/lib/python3.4/distutils/command/register.py +304 -0
  319. package/python3.4.2/lib/python3.4/distutils/command/sdist.py +467 -0
  320. package/python3.4.2/lib/python3.4/distutils/command/upload.py +202 -0
  321. package/python3.4.2/lib/python3.4/distutils/command/wininst-10.0-amd64.exe +0 -0
  322. package/python3.4.2/lib/python3.4/distutils/command/wininst-10.0.exe +0 -0
  323. package/python3.4.2/lib/python3.4/distutils/command/wininst-6.0.exe +0 -0
  324. package/python3.4.2/lib/python3.4/distutils/command/wininst-7.1.exe +0 -0
  325. package/python3.4.2/lib/python3.4/distutils/command/wininst-8.0.exe +0 -0
  326. package/python3.4.2/lib/python3.4/distutils/command/wininst-9.0-amd64.exe +0 -0
  327. package/python3.4.2/lib/python3.4/distutils/command/wininst-9.0.exe +0 -0
  328. package/python3.4.2/lib/python3.4/distutils/config.py +131 -0
  329. package/python3.4.2/lib/python3.4/distutils/core.py +237 -0
  330. package/python3.4.2/lib/python3.4/distutils/cygwinccompiler.py +405 -0
  331. package/python3.4.2/lib/python3.4/distutils/debug.py +5 -0
  332. package/python3.4.2/lib/python3.4/distutils/dep_util.py +92 -0
  333. package/python3.4.2/lib/python3.4/distutils/dir_util.py +210 -0
  334. package/python3.4.2/lib/python3.4/distutils/dist.py +1238 -0
  335. package/python3.4.2/lib/python3.4/distutils/errors.py +97 -0
  336. package/python3.4.2/lib/python3.4/distutils/extension.py +233 -0
  337. package/python3.4.2/lib/python3.4/distutils/fancy_getopt.py +457 -0
  338. package/python3.4.2/lib/python3.4/distutils/file_util.py +230 -0
  339. package/python3.4.2/lib/python3.4/distutils/filelist.py +328 -0
  340. package/python3.4.2/lib/python3.4/distutils/log.py +75 -0
  341. package/python3.4.2/lib/python3.4/distutils/msvc9compiler.py +788 -0
  342. package/python3.4.2/lib/python3.4/distutils/msvccompiler.py +640 -0
  343. package/python3.4.2/lib/python3.4/distutils/spawn.py +195 -0
  344. package/python3.4.2/lib/python3.4/distutils/sysconfig.py +562 -0
  345. package/python3.4.2/lib/python3.4/distutils/tests/Setup.sample +67 -0
  346. package/python3.4.2/lib/python3.4/distutils/tests/__init__.py +36 -0
  347. package/python3.4.2/lib/python3.4/distutils/tests/support.py +210 -0
  348. package/python3.4.2/lib/python3.4/distutils/tests/test_archive_util.py +341 -0
  349. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist.py +50 -0
  350. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_dumb.py +97 -0
  351. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_msi.py +25 -0
  352. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_rpm.py +134 -0
  353. package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_wininst.py +31 -0
  354. package/python3.4.2/lib/python3.4/distutils/tests/test_build.py +55 -0
  355. package/python3.4.2/lib/python3.4/distutils/tests/test_build_clib.py +143 -0
  356. package/python3.4.2/lib/python3.4/distutils/tests/test_build_ext.py +488 -0
  357. package/python3.4.2/lib/python3.4/distutils/tests/test_build_py.py +178 -0
  358. package/python3.4.2/lib/python3.4/distutils/tests/test_build_scripts.py +112 -0
  359. package/python3.4.2/lib/python3.4/distutils/tests/test_check.py +106 -0
  360. package/python3.4.2/lib/python3.4/distutils/tests/test_clean.py +51 -0
  361. package/python3.4.2/lib/python3.4/distutils/tests/test_cmd.py +126 -0
  362. package/python3.4.2/lib/python3.4/distutils/tests/test_config.py +120 -0
  363. package/python3.4.2/lib/python3.4/distutils/tests/test_config_cmd.py +89 -0
  364. package/python3.4.2/lib/python3.4/distutils/tests/test_core.py +108 -0
  365. package/python3.4.2/lib/python3.4/distutils/tests/test_cygwinccompiler.py +155 -0
  366. package/python3.4.2/lib/python3.4/distutils/tests/test_dep_util.py +81 -0
  367. package/python3.4.2/lib/python3.4/distutils/tests/test_dir_util.py +139 -0
  368. package/python3.4.2/lib/python3.4/distutils/tests/test_dist.py +454 -0
  369. package/python3.4.2/lib/python3.4/distutils/tests/test_extension.py +69 -0
  370. package/python3.4.2/lib/python3.4/distutils/tests/test_file_util.py +85 -0
  371. package/python3.4.2/lib/python3.4/distutils/tests/test_filelist.py +299 -0
  372. package/python3.4.2/lib/python3.4/distutils/tests/test_install.py +246 -0
  373. package/python3.4.2/lib/python3.4/distutils/tests/test_install_data.py +77 -0
  374. package/python3.4.2/lib/python3.4/distutils/tests/test_install_headers.py +41 -0
  375. package/python3.4.2/lib/python3.4/distutils/tests/test_install_lib.py +115 -0
  376. package/python3.4.2/lib/python3.4/distutils/tests/test_install_scripts.py +82 -0
  377. package/python3.4.2/lib/python3.4/distutils/tests/test_log.py +37 -0
  378. package/python3.4.2/lib/python3.4/distutils/tests/test_msvc9compiler.py +184 -0
  379. package/python3.4.2/lib/python3.4/distutils/tests/test_register.py +309 -0
  380. package/python3.4.2/lib/python3.4/distutils/tests/test_sdist.py +484 -0
  381. package/python3.4.2/lib/python3.4/distutils/tests/test_spawn.py +58 -0
  382. package/python3.4.2/lib/python3.4/distutils/tests/test_sysconfig.py +207 -0
  383. package/python3.4.2/lib/python3.4/distutils/tests/test_text_file.py +107 -0
  384. package/python3.4.2/lib/python3.4/distutils/tests/test_unixccompiler.py +150 -0
  385. package/python3.4.2/lib/python3.4/distutils/tests/test_upload.py +151 -0
  386. package/python3.4.2/lib/python3.4/distutils/tests/test_util.py +300 -0
  387. package/python3.4.2/lib/python3.4/distutils/tests/test_version.py +71 -0
  388. package/python3.4.2/lib/python3.4/distutils/tests/test_versionpredicate.py +13 -0
  389. package/python3.4.2/lib/python3.4/distutils/tests/xxmodule.c +396 -0
  390. package/python3.4.2/lib/python3.4/distutils/text_file.py +285 -0
  391. package/python3.4.2/lib/python3.4/distutils/unixccompiler.py +298 -0
  392. package/python3.4.2/lib/python3.4/distutils/util.py +553 -0
  393. package/python3.4.2/lib/python3.4/distutils/version.py +349 -0
  394. package/python3.4.2/lib/python3.4/distutils/versionpredicate.py +166 -0
  395. package/python3.4.2/lib/python3.4/doctest.py +2793 -0
  396. package/python3.4.2/lib/python3.4/dummy_threading.py +78 -0
  397. package/python3.4.2/lib/python3.4/email/__init__.py +64 -0
  398. package/python3.4.2/lib/python3.4/email/_encoded_words.py +221 -0
  399. package/python3.4.2/lib/python3.4/email/_header_value_parser.py +2947 -0
  400. package/python3.4.2/lib/python3.4/email/_parseaddr.py +540 -0
  401. package/python3.4.2/lib/python3.4/email/_policybase.py +358 -0
  402. package/python3.4.2/lib/python3.4/email/architecture.rst +216 -0
  403. package/python3.4.2/lib/python3.4/email/base64mime.py +119 -0
  404. package/python3.4.2/lib/python3.4/email/charset.py +409 -0
  405. package/python3.4.2/lib/python3.4/email/contentmanager.py +249 -0
  406. package/python3.4.2/lib/python3.4/email/encoders.py +69 -0
  407. package/python3.4.2/lib/python3.4/email/errors.py +107 -0
  408. package/python3.4.2/lib/python3.4/email/feedparser.py +526 -0
  409. package/python3.4.2/lib/python3.4/email/generator.py +507 -0
  410. package/python3.4.2/lib/python3.4/email/header.py +581 -0
  411. package/python3.4.2/lib/python3.4/email/headerregistry.py +583 -0
  412. package/python3.4.2/lib/python3.4/email/iterators.py +71 -0
  413. package/python3.4.2/lib/python3.4/email/message.py +1147 -0
  414. package/python3.4.2/lib/python3.4/email/mime/__init__.py +0 -0
  415. package/python3.4.2/lib/python3.4/email/mime/application.py +36 -0
  416. package/python3.4.2/lib/python3.4/email/mime/audio.py +73 -0
  417. package/python3.4.2/lib/python3.4/email/mime/base.py +26 -0
  418. package/python3.4.2/lib/python3.4/email/mime/image.py +46 -0
  419. package/python3.4.2/lib/python3.4/email/mime/message.py +34 -0
  420. package/python3.4.2/lib/python3.4/email/mime/multipart.py +47 -0
  421. package/python3.4.2/lib/python3.4/email/mime/nonmultipart.py +22 -0
  422. package/python3.4.2/lib/python3.4/email/mime/text.py +41 -0
  423. package/python3.4.2/lib/python3.4/email/parser.py +132 -0
  424. package/python3.4.2/lib/python3.4/email/policy.py +201 -0
  425. package/python3.4.2/lib/python3.4/email/quoprimime.py +299 -0
  426. package/python3.4.2/lib/python3.4/email/utils.py +399 -0
  427. package/python3.4.2/lib/python3.4/encodings/__init__.py +152 -0
  428. package/python3.4.2/lib/python3.4/encodings/__pycache__/__init__.cpython-34.pyc +0 -0
  429. package/python3.4.2/lib/python3.4/encodings/__pycache__/aliases.cpython-34.pyc +0 -0
  430. package/python3.4.2/lib/python3.4/encodings/__pycache__/ascii.cpython-34.pyc +0 -0
  431. package/python3.4.2/lib/python3.4/encodings/__pycache__/latin_1.cpython-34.pyc +0 -0
  432. package/python3.4.2/lib/python3.4/encodings/__pycache__/utf_8.cpython-34.pyc +0 -0
  433. package/python3.4.2/lib/python3.4/encodings/aliases.py +544 -0
  434. package/python3.4.2/lib/python3.4/encodings/ascii.py +50 -0
  435. package/python3.4.2/lib/python3.4/encodings/base64_codec.py +55 -0
  436. package/python3.4.2/lib/python3.4/encodings/big5.py +39 -0
  437. package/python3.4.2/lib/python3.4/encodings/big5hkscs.py +39 -0
  438. package/python3.4.2/lib/python3.4/encodings/bz2_codec.py +78 -0
  439. package/python3.4.2/lib/python3.4/encodings/charmap.py +69 -0
  440. package/python3.4.2/lib/python3.4/encodings/cp037.py +307 -0
  441. package/python3.4.2/lib/python3.4/encodings/cp1006.py +307 -0
  442. package/python3.4.2/lib/python3.4/encodings/cp1026.py +307 -0
  443. package/python3.4.2/lib/python3.4/encodings/cp1125.py +698 -0
  444. package/python3.4.2/lib/python3.4/encodings/cp1140.py +307 -0
  445. package/python3.4.2/lib/python3.4/encodings/cp1250.py +307 -0
  446. package/python3.4.2/lib/python3.4/encodings/cp1251.py +307 -0
  447. package/python3.4.2/lib/python3.4/encodings/cp1252.py +307 -0
  448. package/python3.4.2/lib/python3.4/encodings/cp1253.py +307 -0
  449. package/python3.4.2/lib/python3.4/encodings/cp1254.py +307 -0
  450. package/python3.4.2/lib/python3.4/encodings/cp1255.py +307 -0
  451. package/python3.4.2/lib/python3.4/encodings/cp1256.py +307 -0
  452. package/python3.4.2/lib/python3.4/encodings/cp1257.py +307 -0
  453. package/python3.4.2/lib/python3.4/encodings/cp1258.py +307 -0
  454. package/python3.4.2/lib/python3.4/encodings/cp273.py +307 -0
  455. package/python3.4.2/lib/python3.4/encodings/cp424.py +307 -0
  456. package/python3.4.2/lib/python3.4/encodings/cp437.py +698 -0
  457. package/python3.4.2/lib/python3.4/encodings/cp500.py +307 -0
  458. package/python3.4.2/lib/python3.4/encodings/cp65001.py +40 -0
  459. package/python3.4.2/lib/python3.4/encodings/cp720.py +309 -0
  460. package/python3.4.2/lib/python3.4/encodings/cp737.py +698 -0
  461. package/python3.4.2/lib/python3.4/encodings/cp775.py +697 -0
  462. package/python3.4.2/lib/python3.4/encodings/cp850.py +698 -0
  463. package/python3.4.2/lib/python3.4/encodings/cp852.py +698 -0
  464. package/python3.4.2/lib/python3.4/encodings/cp855.py +698 -0
  465. package/python3.4.2/lib/python3.4/encodings/cp856.py +307 -0
  466. package/python3.4.2/lib/python3.4/encodings/cp857.py +694 -0
  467. package/python3.4.2/lib/python3.4/encodings/cp858.py +698 -0
  468. package/python3.4.2/lib/python3.4/encodings/cp860.py +698 -0
  469. package/python3.4.2/lib/python3.4/encodings/cp861.py +698 -0
  470. package/python3.4.2/lib/python3.4/encodings/cp862.py +698 -0
  471. package/python3.4.2/lib/python3.4/encodings/cp863.py +698 -0
  472. package/python3.4.2/lib/python3.4/encodings/cp864.py +690 -0
  473. package/python3.4.2/lib/python3.4/encodings/cp865.py +698 -0
  474. package/python3.4.2/lib/python3.4/encodings/cp866.py +698 -0
  475. package/python3.4.2/lib/python3.4/encodings/cp869.py +689 -0
  476. package/python3.4.2/lib/python3.4/encodings/cp874.py +307 -0
  477. package/python3.4.2/lib/python3.4/encodings/cp875.py +307 -0
  478. package/python3.4.2/lib/python3.4/encodings/cp932.py +39 -0
  479. package/python3.4.2/lib/python3.4/encodings/cp949.py +39 -0
  480. package/python3.4.2/lib/python3.4/encodings/cp950.py +39 -0
  481. package/python3.4.2/lib/python3.4/encodings/euc_jis_2004.py +39 -0
  482. package/python3.4.2/lib/python3.4/encodings/euc_jisx0213.py +39 -0
  483. package/python3.4.2/lib/python3.4/encodings/euc_jp.py +39 -0
  484. package/python3.4.2/lib/python3.4/encodings/euc_kr.py +39 -0
  485. package/python3.4.2/lib/python3.4/encodings/gb18030.py +39 -0
  486. package/python3.4.2/lib/python3.4/encodings/gb2312.py +39 -0
  487. package/python3.4.2/lib/python3.4/encodings/gbk.py +39 -0
  488. package/python3.4.2/lib/python3.4/encodings/hex_codec.py +55 -0
  489. package/python3.4.2/lib/python3.4/encodings/hp_roman8.py +312 -0
  490. package/python3.4.2/lib/python3.4/encodings/hz.py +39 -0
  491. package/python3.4.2/lib/python3.4/encodings/idna.py +309 -0
  492. package/python3.4.2/lib/python3.4/encodings/iso2022_jp.py +39 -0
  493. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_1.py +39 -0
  494. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_2.py +39 -0
  495. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_2004.py +39 -0
  496. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_3.py +39 -0
  497. package/python3.4.2/lib/python3.4/encodings/iso2022_jp_ext.py +39 -0
  498. package/python3.4.2/lib/python3.4/encodings/iso2022_kr.py +39 -0
  499. package/python3.4.2/lib/python3.4/encodings/iso8859_1.py +307 -0
  500. package/python3.4.2/lib/python3.4/encodings/iso8859_10.py +307 -0
  501. package/python3.4.2/lib/python3.4/encodings/iso8859_11.py +307 -0
  502. package/python3.4.2/lib/python3.4/encodings/iso8859_13.py +307 -0
  503. package/python3.4.2/lib/python3.4/encodings/iso8859_14.py +307 -0
  504. package/python3.4.2/lib/python3.4/encodings/iso8859_15.py +307 -0
  505. package/python3.4.2/lib/python3.4/encodings/iso8859_16.py +307 -0
  506. package/python3.4.2/lib/python3.4/encodings/iso8859_2.py +307 -0
  507. package/python3.4.2/lib/python3.4/encodings/iso8859_3.py +307 -0
  508. package/python3.4.2/lib/python3.4/encodings/iso8859_4.py +307 -0
  509. package/python3.4.2/lib/python3.4/encodings/iso8859_5.py +307 -0
  510. package/python3.4.2/lib/python3.4/encodings/iso8859_6.py +307 -0
  511. package/python3.4.2/lib/python3.4/encodings/iso8859_7.py +307 -0
  512. package/python3.4.2/lib/python3.4/encodings/iso8859_8.py +307 -0
  513. package/python3.4.2/lib/python3.4/encodings/iso8859_9.py +307 -0
  514. package/python3.4.2/lib/python3.4/encodings/johab.py +39 -0
  515. package/python3.4.2/lib/python3.4/encodings/koi8_r.py +307 -0
  516. package/python3.4.2/lib/python3.4/encodings/koi8_u.py +307 -0
  517. package/python3.4.2/lib/python3.4/encodings/latin_1.py +50 -0
  518. package/python3.4.2/lib/python3.4/encodings/mac_arabic.py +698 -0
  519. package/python3.4.2/lib/python3.4/encodings/mac_centeuro.py +307 -0
  520. package/python3.4.2/lib/python3.4/encodings/mac_croatian.py +307 -0
  521. package/python3.4.2/lib/python3.4/encodings/mac_cyrillic.py +307 -0
  522. package/python3.4.2/lib/python3.4/encodings/mac_farsi.py +307 -0
  523. package/python3.4.2/lib/python3.4/encodings/mac_greek.py +307 -0
  524. package/python3.4.2/lib/python3.4/encodings/mac_iceland.py +307 -0
  525. package/python3.4.2/lib/python3.4/encodings/mac_latin2.py +312 -0
  526. package/python3.4.2/lib/python3.4/encodings/mac_roman.py +307 -0
  527. package/python3.4.2/lib/python3.4/encodings/mac_romanian.py +307 -0
  528. package/python3.4.2/lib/python3.4/encodings/mac_turkish.py +307 -0
  529. package/python3.4.2/lib/python3.4/encodings/mbcs.py +47 -0
  530. package/python3.4.2/lib/python3.4/encodings/palmos.py +308 -0
  531. package/python3.4.2/lib/python3.4/encodings/ptcp154.py +312 -0
  532. package/python3.4.2/lib/python3.4/encodings/punycode.py +237 -0
  533. package/python3.4.2/lib/python3.4/encodings/quopri_codec.py +56 -0
  534. package/python3.4.2/lib/python3.4/encodings/raw_unicode_escape.py +45 -0
  535. package/python3.4.2/lib/python3.4/encodings/rot_13.py +113 -0
  536. package/python3.4.2/lib/python3.4/encodings/shift_jis.py +39 -0
  537. package/python3.4.2/lib/python3.4/encodings/shift_jis_2004.py +39 -0
  538. package/python3.4.2/lib/python3.4/encodings/shift_jisx0213.py +39 -0
  539. package/python3.4.2/lib/python3.4/encodings/tis_620.py +307 -0
  540. package/python3.4.2/lib/python3.4/encodings/undefined.py +49 -0
  541. package/python3.4.2/lib/python3.4/encodings/unicode_escape.py +45 -0
  542. package/python3.4.2/lib/python3.4/encodings/unicode_internal.py +45 -0
  543. package/python3.4.2/lib/python3.4/encodings/utf_16.py +155 -0
  544. package/python3.4.2/lib/python3.4/encodings/utf_16_be.py +42 -0
  545. package/python3.4.2/lib/python3.4/encodings/utf_16_le.py +42 -0
  546. package/python3.4.2/lib/python3.4/encodings/utf_32.py +150 -0
  547. package/python3.4.2/lib/python3.4/encodings/utf_32_be.py +37 -0
  548. package/python3.4.2/lib/python3.4/encodings/utf_32_le.py +37 -0
  549. package/python3.4.2/lib/python3.4/encodings/utf_7.py +38 -0
  550. package/python3.4.2/lib/python3.4/encodings/utf_8.py +42 -0
  551. package/python3.4.2/lib/python3.4/encodings/utf_8_sig.py +130 -0
  552. package/python3.4.2/lib/python3.4/encodings/uu_codec.py +99 -0
  553. package/python3.4.2/lib/python3.4/encodings/zlib_codec.py +77 -0
  554. package/python3.4.2/lib/python3.4/ensurepip/__init__.py +210 -0
  555. package/python3.4.2/lib/python3.4/ensurepip/__main__.py +4 -0
  556. package/python3.4.2/lib/python3.4/ensurepip/_bundled/pip-1.5.6-py2.py3-none-any.whl +0 -0
  557. package/python3.4.2/lib/python3.4/ensurepip/_bundled/setuptools-2.1-py2.py3-none-any.whl +0 -0
  558. package/python3.4.2/lib/python3.4/ensurepip/_uninstall.py +30 -0
  559. package/python3.4.2/lib/python3.4/enum.py +525 -0
  560. package/python3.4.2/lib/python3.4/filecmp.py +305 -0
  561. package/python3.4.2/lib/python3.4/fileinput.py +429 -0
  562. package/python3.4.2/lib/python3.4/fnmatch.py +109 -0
  563. package/python3.4.2/lib/python3.4/formatter.py +448 -0
  564. package/python3.4.2/lib/python3.4/fractions.py +630 -0
  565. package/python3.4.2/lib/python3.4/ftplib.py +1088 -0
  566. package/python3.4.2/lib/python3.4/functools.py +721 -0
  567. package/python3.4.2/lib/python3.4/genericpath.py +132 -0
  568. package/python3.4.2/lib/python3.4/getopt.py +215 -0
  569. package/python3.4.2/lib/python3.4/getpass.py +186 -0
  570. package/python3.4.2/lib/python3.4/gettext.py +523 -0
  571. package/python3.4.2/lib/python3.4/glob.py +110 -0
  572. package/python3.4.2/lib/python3.4/gzip.py +674 -0
  573. package/python3.4.2/lib/python3.4/hashlib.py +217 -0
  574. package/python3.4.2/lib/python3.4/heapq.py +476 -0
  575. package/python3.4.2/lib/python3.4/hmac.py +144 -0
  576. package/python3.4.2/lib/python3.4/html/__init__.py +132 -0
  577. package/python3.4.2/lib/python3.4/html/entities.py +2506 -0
  578. package/python3.4.2/lib/python3.4/html/parser.py +550 -0
  579. package/python3.4.2/lib/python3.4/http/__init__.py +1 -0
  580. package/python3.4.2/lib/python3.4/http/client.py +1302 -0
  581. package/python3.4.2/lib/python3.4/http/cookiejar.py +2080 -0
  582. package/python3.4.2/lib/python3.4/http/cookies.py +578 -0
  583. package/python3.4.2/lib/python3.4/http/server.py +1241 -0
  584. package/python3.4.2/lib/python3.4/idlelib/AutoComplete.py +233 -0
  585. package/python3.4.2/lib/python3.4/idlelib/AutoCompleteWindow.py +415 -0
  586. package/python3.4.2/lib/python3.4/idlelib/AutoExpand.py +104 -0
  587. package/python3.4.2/lib/python3.4/idlelib/Bindings.py +94 -0
  588. package/python3.4.2/lib/python3.4/idlelib/CREDITS.txt +37 -0
  589. package/python3.4.2/lib/python3.4/idlelib/CallTipWindow.py +170 -0
  590. package/python3.4.2/lib/python3.4/idlelib/CallTips.py +175 -0
  591. package/python3.4.2/lib/python3.4/idlelib/ChangeLog +1591 -0
  592. package/python3.4.2/lib/python3.4/idlelib/ClassBrowser.py +229 -0
  593. package/python3.4.2/lib/python3.4/idlelib/CodeContext.py +176 -0
  594. package/python3.4.2/lib/python3.4/idlelib/ColorDelegator.py +254 -0
  595. package/python3.4.2/lib/python3.4/idlelib/Debugger.py +490 -0
  596. package/python3.4.2/lib/python3.4/idlelib/Delegator.py +25 -0
  597. package/python3.4.2/lib/python3.4/idlelib/EditorWindow.py +1729 -0
  598. package/python3.4.2/lib/python3.4/idlelib/FileList.py +129 -0
  599. package/python3.4.2/lib/python3.4/idlelib/FormatParagraph.py +193 -0
  600. package/python3.4.2/lib/python3.4/idlelib/GrepDialog.py +159 -0
  601. package/python3.4.2/lib/python3.4/idlelib/HISTORY.txt +296 -0
  602. package/python3.4.2/lib/python3.4/idlelib/HyperParser.py +313 -0
  603. package/python3.4.2/lib/python3.4/idlelib/IOBinding.py +555 -0
  604. package/python3.4.2/lib/python3.4/idlelib/Icons/folder.gif +0 -0
  605. package/python3.4.2/lib/python3.4/idlelib/Icons/idle.icns +0 -0
  606. package/python3.4.2/lib/python3.4/idlelib/Icons/idle.ico +0 -0
  607. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_16.gif +0 -0
  608. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_16.png +0 -0
  609. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_32.gif +0 -0
  610. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_32.png +0 -0
  611. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_48.gif +0 -0
  612. package/python3.4.2/lib/python3.4/idlelib/Icons/idle_48.png +0 -0
  613. package/python3.4.2/lib/python3.4/idlelib/Icons/minusnode.gif +0 -0
  614. package/python3.4.2/lib/python3.4/idlelib/Icons/openfolder.gif +0 -0
  615. package/python3.4.2/lib/python3.4/idlelib/Icons/plusnode.gif +0 -0
  616. package/python3.4.2/lib/python3.4/idlelib/Icons/python.gif +0 -0
  617. package/python3.4.2/lib/python3.4/idlelib/Icons/tk.gif +0 -0
  618. package/python3.4.2/lib/python3.4/idlelib/IdleHistory.py +104 -0
  619. package/python3.4.2/lib/python3.4/idlelib/MultiCall.py +453 -0
  620. package/python3.4.2/lib/python3.4/idlelib/MultiStatusBar.py +45 -0
  621. package/python3.4.2/lib/python3.4/idlelib/NEWS.txt +877 -0
  622. package/python3.4.2/lib/python3.4/idlelib/ObjectBrowser.py +143 -0
  623. package/python3.4.2/lib/python3.4/idlelib/OutputWindow.py +144 -0
  624. package/python3.4.2/lib/python3.4/idlelib/ParenMatch.py +178 -0
  625. package/python3.4.2/lib/python3.4/idlelib/PathBrowser.py +106 -0
  626. package/python3.4.2/lib/python3.4/idlelib/Percolator.py +104 -0
  627. package/python3.4.2/lib/python3.4/idlelib/PyParse.py +618 -0
  628. package/python3.4.2/lib/python3.4/idlelib/PyShell.py +1619 -0
  629. package/python3.4.2/lib/python3.4/idlelib/README.txt +60 -0
  630. package/python3.4.2/lib/python3.4/idlelib/RemoteDebugger.py +389 -0
  631. package/python3.4.2/lib/python3.4/idlelib/RemoteObjectBrowser.py +36 -0
  632. package/python3.4.2/lib/python3.4/idlelib/ReplaceDialog.py +221 -0
  633. package/python3.4.2/lib/python3.4/idlelib/RstripExtension.py +33 -0
  634. package/python3.4.2/lib/python3.4/idlelib/ScriptBinding.py +207 -0
  635. package/python3.4.2/lib/python3.4/idlelib/ScrolledList.py +140 -0
  636. package/python3.4.2/lib/python3.4/idlelib/SearchDialog.py +89 -0
  637. package/python3.4.2/lib/python3.4/idlelib/SearchDialogBase.py +184 -0
  638. package/python3.4.2/lib/python3.4/idlelib/SearchEngine.py +233 -0
  639. package/python3.4.2/lib/python3.4/idlelib/StackViewer.py +152 -0
  640. package/python3.4.2/lib/python3.4/idlelib/TODO.txt +210 -0
  641. package/python3.4.2/lib/python3.4/idlelib/ToolTip.py +97 -0
  642. package/python3.4.2/lib/python3.4/idlelib/TreeWidget.py +465 -0
  643. package/python3.4.2/lib/python3.4/idlelib/UndoDelegator.py +365 -0
  644. package/python3.4.2/lib/python3.4/idlelib/WidgetRedirector.py +174 -0
  645. package/python3.4.2/lib/python3.4/idlelib/WindowList.py +90 -0
  646. package/python3.4.2/lib/python3.4/idlelib/ZoomHeight.py +51 -0
  647. package/python3.4.2/lib/python3.4/idlelib/__init__.py +1 -0
  648. package/python3.4.2/lib/python3.4/idlelib/__main__.py +9 -0
  649. package/python3.4.2/lib/python3.4/idlelib/aboutDialog.py +145 -0
  650. package/python3.4.2/lib/python3.4/idlelib/config-extensions.def +96 -0
  651. package/python3.4.2/lib/python3.4/idlelib/config-highlight.def +64 -0
  652. package/python3.4.2/lib/python3.4/idlelib/config-keys.def +214 -0
  653. package/python3.4.2/lib/python3.4/idlelib/config-main.def +79 -0
  654. package/python3.4.2/lib/python3.4/idlelib/configDialog.py +1195 -0
  655. package/python3.4.2/lib/python3.4/idlelib/configHandler.py +722 -0
  656. package/python3.4.2/lib/python3.4/idlelib/configHelpSourceEdit.py +166 -0
  657. package/python3.4.2/lib/python3.4/idlelib/configSectionNameDialog.py +98 -0
  658. package/python3.4.2/lib/python3.4/idlelib/dynOptionMenuWidget.py +57 -0
  659. package/python3.4.2/lib/python3.4/idlelib/extend.txt +83 -0
  660. package/python3.4.2/lib/python3.4/idlelib/help.txt +368 -0
  661. package/python3.4.2/lib/python3.4/idlelib/idle.bat +4 -0
  662. package/python3.4.2/lib/python3.4/idlelib/idle.py +11 -0
  663. package/python3.4.2/lib/python3.4/idlelib/idle.pyw +21 -0
  664. package/python3.4.2/lib/python3.4/idlelib/idle_test/README.txt +115 -0
  665. package/python3.4.2/lib/python3.4/idlelib/idle_test/__init__.py +9 -0
  666. package/python3.4.2/lib/python3.4/idlelib/idle_test/htest.py +369 -0
  667. package/python3.4.2/lib/python3.4/idlelib/idle_test/mock_idle.py +55 -0
  668. package/python3.4.2/lib/python3.4/idlelib/idle_test/mock_tk.py +298 -0
  669. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_autocomplete.py +143 -0
  670. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_autoexpand.py +141 -0
  671. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_calltips.py +172 -0
  672. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_config_name.py +75 -0
  673. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_configdialog.py +32 -0
  674. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_delegator.py +37 -0
  675. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_formatparagraph.py +377 -0
  676. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_grep.py +80 -0
  677. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_hyperparser.py +273 -0
  678. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_idlehistory.py +167 -0
  679. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_parenmatch.py +109 -0
  680. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_pathbrowser.py +12 -0
  681. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_rstrip.py +49 -0
  682. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_searchdialogbase.py +165 -0
  683. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_searchengine.py +329 -0
  684. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_text.py +228 -0
  685. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_textview.py +97 -0
  686. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_warning.py +73 -0
  687. package/python3.4.2/lib/python3.4/idlelib/idle_test/test_widgetredir.py +122 -0
  688. package/python3.4.2/lib/python3.4/idlelib/idlever.py +1 -0
  689. package/python3.4.2/lib/python3.4/idlelib/keybindingDialog.py +266 -0
  690. package/python3.4.2/lib/python3.4/idlelib/macosxSupport.py +239 -0
  691. package/python3.4.2/lib/python3.4/idlelib/rpc.py +624 -0
  692. package/python3.4.2/lib/python3.4/idlelib/run.py +404 -0
  693. package/python3.4.2/lib/python3.4/idlelib/tabbedpages.py +498 -0
  694. package/python3.4.2/lib/python3.4/idlelib/testcode.py +31 -0
  695. package/python3.4.2/lib/python3.4/idlelib/textView.py +86 -0
  696. package/python3.4.2/lib/python3.4/imaplib.py +1549 -0
  697. package/python3.4.2/lib/python3.4/imghdr.py +154 -0
  698. package/python3.4.2/lib/python3.4/imp.py +315 -0
  699. package/python3.4.2/lib/python3.4/importlib/__init__.py +156 -0
  700. package/python3.4.2/lib/python3.4/importlib/_bootstrap.py +2461 -0
  701. package/python3.4.2/lib/python3.4/importlib/abc.py +323 -0
  702. package/python3.4.2/lib/python3.4/importlib/machinery.py +21 -0
  703. package/python3.4.2/lib/python3.4/importlib/util.py +202 -0
  704. package/python3.4.2/lib/python3.4/inspect.py +2759 -0
  705. package/python3.4.2/lib/python3.4/io.py +92 -0
  706. package/python3.4.2/lib/python3.4/ipaddress.py +2183 -0
  707. package/python3.4.2/lib/python3.4/json/__init__.py +331 -0
  708. package/python3.4.2/lib/python3.4/json/decoder.py +362 -0
  709. package/python3.4.2/lib/python3.4/json/encoder.py +433 -0
  710. package/python3.4.2/lib/python3.4/json/scanner.py +73 -0
  711. package/python3.4.2/lib/python3.4/json/tool.py +39 -0
  712. package/python3.4.2/lib/python3.4/keyword.py +94 -0
  713. package/python3.4.2/lib/python3.4/lib2to3/Grammar.txt +159 -0
  714. package/python3.4.2/lib/python3.4/lib2to3/Grammar3.4.2.final.0.pickle +0 -0
  715. package/python3.4.2/lib/python3.4/lib2to3/PatternGrammar.txt +28 -0
  716. package/python3.4.2/lib/python3.4/lib2to3/PatternGrammar3.4.2.final.0.pickle +0 -0
  717. package/python3.4.2/lib/python3.4/lib2to3/__init__.py +1 -0
  718. package/python3.4.2/lib/python3.4/lib2to3/__main__.py +4 -0
  719. package/python3.4.2/lib/python3.4/lib2to3/btm_matcher.py +168 -0
  720. package/python3.4.2/lib/python3.4/lib2to3/btm_utils.py +281 -0
  721. package/python3.4.2/lib/python3.4/lib2to3/fixer_base.py +187 -0
  722. package/python3.4.2/lib/python3.4/lib2to3/fixer_util.py +455 -0
  723. package/python3.4.2/lib/python3.4/lib2to3/fixes/__init__.py +1 -0
  724. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_apply.py +59 -0
  725. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_asserts.py +34 -0
  726. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_basestring.py +14 -0
  727. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_buffer.py +22 -0
  728. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_callable.py +37 -0
  729. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_dict.py +107 -0
  730. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_except.py +93 -0
  731. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_exec.py +40 -0
  732. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_execfile.py +52 -0
  733. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_exitfunc.py +72 -0
  734. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_filter.py +76 -0
  735. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_funcattrs.py +21 -0
  736. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_future.py +22 -0
  737. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_getcwdu.py +19 -0
  738. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_has_key.py +110 -0
  739. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_idioms.py +152 -0
  740. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_import.py +99 -0
  741. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_imports.py +145 -0
  742. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_imports2.py +16 -0
  743. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_input.py +26 -0
  744. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_intern.py +31 -0
  745. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_isinstance.py +52 -0
  746. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_itertools.py +43 -0
  747. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_itertools_imports.py +57 -0
  748. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_long.py +19 -0
  749. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_map.py +91 -0
  750. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_metaclass.py +228 -0
  751. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_methodattrs.py +24 -0
  752. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_ne.py +23 -0
  753. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_next.py +103 -0
  754. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_nonzero.py +21 -0
  755. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_numliterals.py +28 -0
  756. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_operator.py +98 -0
  757. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_paren.py +44 -0
  758. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_print.py +87 -0
  759. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_raise.py +90 -0
  760. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_raw_input.py +17 -0
  761. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_reduce.py +35 -0
  762. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_reload.py +28 -0
  763. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_renames.py +70 -0
  764. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_repr.py +23 -0
  765. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_set_literal.py +53 -0
  766. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_standarderror.py +18 -0
  767. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_sys_exc.py +30 -0
  768. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_throw.py +56 -0
  769. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_tuple_params.py +175 -0
  770. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_types.py +62 -0
  771. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_unicode.py +42 -0
  772. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_urllib.py +197 -0
  773. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_ws_comma.py +39 -0
  774. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_xrange.py +73 -0
  775. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_xreadlines.py +25 -0
  776. package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_zip.py +35 -0
  777. package/python3.4.2/lib/python3.4/lib2to3/main.py +268 -0
  778. package/python3.4.2/lib/python3.4/lib2to3/patcomp.py +205 -0
  779. package/python3.4.2/lib/python3.4/lib2to3/pgen2/__init__.py +4 -0
  780. package/python3.4.2/lib/python3.4/lib2to3/pgen2/conv.py +257 -0
  781. package/python3.4.2/lib/python3.4/lib2to3/pgen2/driver.py +157 -0
  782. package/python3.4.2/lib/python3.4/lib2to3/pgen2/grammar.py +183 -0
  783. package/python3.4.2/lib/python3.4/lib2to3/pgen2/literals.py +60 -0
  784. package/python3.4.2/lib/python3.4/lib2to3/pgen2/parse.py +201 -0
  785. package/python3.4.2/lib/python3.4/lib2to3/pgen2/pgen.py +386 -0
  786. package/python3.4.2/lib/python3.4/lib2to3/pgen2/token.py +83 -0
  787. package/python3.4.2/lib/python3.4/lib2to3/pgen2/tokenize.py +502 -0
  788. package/python3.4.2/lib/python3.4/lib2to3/pygram.py +40 -0
  789. package/python3.4.2/lib/python3.4/lib2to3/pytree.py +864 -0
  790. package/python3.4.2/lib/python3.4/lib2to3/refactor.py +747 -0
  791. package/python3.4.2/lib/python3.4/lib2to3/tests/__init__.py +24 -0
  792. package/python3.4.2/lib/python3.4/lib2to3/tests/data/README +6 -0
  793. package/python3.4.2/lib/python3.4/lib2to3/tests/data/bom.py +2 -0
  794. package/python3.4.2/lib/python3.4/lib2to3/tests/data/crlf.py +3 -0
  795. package/python3.4.2/lib/python3.4/lib2to3/tests/data/different_encoding.py +6 -0
  796. package/python3.4.2/lib/python3.4/lib2to3/tests/data/false_encoding.py +2 -0
  797. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/bad_order.py +5 -0
  798. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/__init__.py +0 -0
  799. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_explicit.py +6 -0
  800. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_first.py +6 -0
  801. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_last.py +7 -0
  802. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_parrot.py +13 -0
  803. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_preorder.py +6 -0
  804. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/no_fixer_cls.py +1 -0
  805. package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/parrot_example.py +2 -0
  806. package/python3.4.2/lib/python3.4/lib2to3/tests/data/infinite_recursion.py +2669 -0
  807. package/python3.4.2/lib/python3.4/lib2to3/tests/data/py2_test_grammar.py +974 -0
  808. package/python3.4.2/lib/python3.4/lib2to3/tests/data/py3_test_grammar.py +923 -0
  809. package/python3.4.2/lib/python3.4/lib2to3/tests/pytree_idempotency.py +92 -0
  810. package/python3.4.2/lib/python3.4/lib2to3/tests/support.py +54 -0
  811. package/python3.4.2/lib/python3.4/lib2to3/tests/test_all_fixers.py +23 -0
  812. package/python3.4.2/lib/python3.4/lib2to3/tests/test_fixers.py +4687 -0
  813. package/python3.4.2/lib/python3.4/lib2to3/tests/test_main.py +139 -0
  814. package/python3.4.2/lib/python3.4/lib2to3/tests/test_parser.py +249 -0
  815. package/python3.4.2/lib/python3.4/lib2to3/tests/test_pytree.py +477 -0
  816. package/python3.4.2/lib/python3.4/lib2to3/tests/test_refactor.py +321 -0
  817. package/python3.4.2/lib/python3.4/lib2to3/tests/test_util.py +594 -0
  818. package/python3.4.2/lib/python3.4/linecache.py +134 -0
  819. package/python3.4.2/lib/python3.4/locale.py +1559 -0
  820. package/python3.4.2/lib/python3.4/logging/__init__.py +1950 -0
  821. package/python3.4.2/lib/python3.4/logging/config.py +927 -0
  822. package/python3.4.2/lib/python3.4/logging/handlers.py +1452 -0
  823. package/python3.4.2/lib/python3.4/lzma.py +511 -0
  824. package/python3.4.2/lib/python3.4/macpath.py +205 -0
  825. package/python3.4.2/lib/python3.4/macurl2path.py +77 -0
  826. package/python3.4.2/lib/python3.4/mailbox.py +2136 -0
  827. package/python3.4.2/lib/python3.4/mailcap.py +253 -0
  828. package/python3.4.2/lib/python3.4/mimetypes.py +592 -0
  829. package/python3.4.2/lib/python3.4/modulefinder.py +642 -0
  830. package/python3.4.2/lib/python3.4/multiprocessing/__init__.py +38 -0
  831. package/python3.4.2/lib/python3.4/multiprocessing/connection.py +954 -0
  832. package/python3.4.2/lib/python3.4/multiprocessing/context.py +348 -0
  833. package/python3.4.2/lib/python3.4/multiprocessing/dummy/__init__.py +119 -0
  834. package/python3.4.2/lib/python3.4/multiprocessing/dummy/connection.py +74 -0
  835. package/python3.4.2/lib/python3.4/multiprocessing/forkserver.py +267 -0
  836. package/python3.4.2/lib/python3.4/multiprocessing/heap.py +249 -0
  837. package/python3.4.2/lib/python3.4/multiprocessing/managers.py +1131 -0
  838. package/python3.4.2/lib/python3.4/multiprocessing/pool.py +769 -0
  839. package/python3.4.2/lib/python3.4/multiprocessing/popen_fork.py +83 -0
  840. package/python3.4.2/lib/python3.4/multiprocessing/popen_forkserver.py +69 -0
  841. package/python3.4.2/lib/python3.4/multiprocessing/popen_spawn_posix.py +69 -0
  842. package/python3.4.2/lib/python3.4/multiprocessing/popen_spawn_win32.py +99 -0
  843. package/python3.4.2/lib/python3.4/multiprocessing/process.py +332 -0
  844. package/python3.4.2/lib/python3.4/multiprocessing/queues.py +367 -0
  845. package/python3.4.2/lib/python3.4/multiprocessing/reduction.py +240 -0
  846. package/python3.4.2/lib/python3.4/multiprocessing/resource_sharer.py +158 -0
  847. package/python3.4.2/lib/python3.4/multiprocessing/semaphore_tracker.py +143 -0
  848. package/python3.4.2/lib/python3.4/multiprocessing/sharedctypes.py +245 -0
  849. package/python3.4.2/lib/python3.4/multiprocessing/spawn.py +287 -0
  850. package/python3.4.2/lib/python3.4/multiprocessing/synchronize.py +418 -0
  851. package/python3.4.2/lib/python3.4/multiprocessing/util.py +367 -0
  852. package/python3.4.2/lib/python3.4/netrc.py +142 -0
  853. package/python3.4.2/lib/python3.4/nntplib.py +1134 -0
  854. package/python3.4.2/lib/python3.4/ntpath.py +625 -0
  855. package/python3.4.2/lib/python3.4/nturl2path.py +66 -0
  856. package/python3.4.2/lib/python3.4/numbers.py +394 -0
  857. package/python3.4.2/lib/python3.4/opcode.py +200 -0
  858. package/python3.4.2/lib/python3.4/operator.py +411 -0
  859. package/python3.4.2/lib/python3.4/optparse.py +1680 -0
  860. package/python3.4.2/lib/python3.4/os.py +980 -0
  861. package/python3.4.2/lib/python3.4/pathlib.py +1291 -0
  862. package/python3.4.2/lib/python3.4/pdb.py +1685 -0
  863. package/python3.4.2/lib/python3.4/pickle.py +1599 -0
  864. package/python3.4.2/lib/python3.4/pickletools.py +2818 -0
  865. package/python3.4.2/lib/python3.4/pipes.py +247 -0
  866. package/python3.4.2/lib/python3.4/pkgutil.py +629 -0
  867. package/python3.4.2/lib/python3.4/plat-linux/CDROM.py +207 -0
  868. package/python3.4.2/lib/python3.4/plat-linux/DLFCN.py +83 -0
  869. package/python3.4.2/lib/python3.4/plat-linux/IN.py +615 -0
  870. package/python3.4.2/lib/python3.4/plat-linux/TYPES.py +170 -0
  871. package/python3.4.2/lib/python3.4/plat-linux/regen +8 -0
  872. package/python3.4.2/lib/python3.4/platform.py +1476 -0
  873. package/python3.4.2/lib/python3.4/plistlib.py +1025 -0
  874. package/python3.4.2/lib/python3.4/poplib.py +461 -0
  875. package/python3.4.2/lib/python3.4/posixpath.py +457 -0
  876. package/python3.4.2/lib/python3.4/pprint.py +416 -0
  877. package/python3.4.2/lib/python3.4/profile.py +589 -0
  878. package/python3.4.2/lib/python3.4/pstats.py +691 -0
  879. package/python3.4.2/lib/python3.4/pty.py +170 -0
  880. package/python3.4.2/lib/python3.4/py_compile.py +185 -0
  881. package/python3.4.2/lib/python3.4/pyclbr.py +351 -0
  882. package/python3.4.2/lib/python3.4/pydoc.py +2622 -0
  883. package/python3.4.2/lib/python3.4/pydoc_data/__init__.py +0 -0
  884. package/python3.4.2/lib/python3.4/pydoc_data/_pydoc.css +6 -0
  885. package/python3.4.2/lib/python3.4/pydoc_data/topics.py +79 -0
  886. package/python3.4.2/lib/python3.4/queue.py +249 -0
  887. package/python3.4.2/lib/python3.4/quopri.py +242 -0
  888. package/python3.4.2/lib/python3.4/random.py +742 -0
  889. package/python3.4.2/lib/python3.4/re.py +368 -0
  890. package/python3.4.2/lib/python3.4/reprlib.py +157 -0
  891. package/python3.4.2/lib/python3.4/rlcompleter.py +165 -0
  892. package/python3.4.2/lib/python3.4/runpy.py +271 -0
  893. package/python3.4.2/lib/python3.4/sched.py +167 -0
  894. package/python3.4.2/lib/python3.4/selectors.py +525 -0
  895. package/python3.4.2/lib/python3.4/shelve.py +239 -0
  896. package/python3.4.2/lib/python3.4/shlex.py +304 -0
  897. package/python3.4.2/lib/python3.4/shutil.py +1127 -0
  898. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/PKG-INFO +55 -0
  899. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/SOURCES.txt +126 -0
  900. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
  901. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/entry_points.txt +4 -0
  902. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
  903. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/requires.txt +4 -0
  904. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/top_level.txt +1 -0
  905. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/__init__.py +69 -0
  906. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/_compat.py +150 -0
  907. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/_stringdefs.py +132 -0
  908. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/bccache.py +344 -0
  909. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/compiler.py +1640 -0
  910. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/constants.py +32 -0
  911. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/debug.py +337 -0
  912. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/defaults.py +43 -0
  913. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/environment.py +1191 -0
  914. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/exceptions.py +146 -0
  915. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/ext.py +636 -0
  916. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/filters.py +987 -0
  917. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/lexer.py +733 -0
  918. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/loaders.py +471 -0
  919. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/meta.py +103 -0
  920. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/nodes.py +914 -0
  921. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/optimizer.py +68 -0
  922. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/parser.py +895 -0
  923. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/runtime.py +581 -0
  924. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/sandbox.py +368 -0
  925. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/tests.py +149 -0
  926. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/__init__.py +156 -0
  927. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/api.py +261 -0
  928. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/bytecode_cache.py +37 -0
  929. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/core_tags.py +305 -0
  930. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/debug.py +58 -0
  931. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/doctests.py +29 -0
  932. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/ext.py +459 -0
  933. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/filters.py +515 -0
  934. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/imports.py +141 -0
  935. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/inheritance.py +250 -0
  936. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/lexnparse.py +593 -0
  937. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/loader.py +226 -0
  938. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/regression.py +279 -0
  939. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/__init__.py +0 -0
  940. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/broken.html +3 -0
  941. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/foo/test.html +1 -0
  942. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/syntaxerror.html +4 -0
  943. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/test.html +1 -0
  944. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/security.py +166 -0
  945. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/tests.py +93 -0
  946. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/utils.py +82 -0
  947. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/utils.py +520 -0
  948. package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/visitor.py +87 -0
  949. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/PKG-INFO +119 -0
  950. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/SOURCES.txt +17 -0
  951. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
  952. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
  953. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/top_level.txt +1 -0
  954. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/__init__.py +298 -0
  955. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_compat.py +26 -0
  956. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_constants.py +267 -0
  957. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_native.py +46 -0
  958. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_speedups.c +239 -0
  959. package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/tests.py +179 -0
  960. package/python3.4.2/lib/python3.4/site-packages/README +2 -0
  961. package/python3.4.2/lib/python3.4/site-packages/_markerlib/__init__.py +16 -0
  962. package/python3.4.2/lib/python3.4/site-packages/_markerlib/markers.py +119 -0
  963. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/PKG-INFO +68 -0
  964. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/SOURCES.txt +23 -0
  965. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
  966. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/entry_points.txt +3 -0
  967. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
  968. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/requires.txt +1 -0
  969. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/scripts/android-debian-builder +6 -0
  970. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/top_level.txt +1 -0
  971. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/__init__.py +0 -0
  972. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/__main__.py +26 -0
  973. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/build.py +63 -0
  974. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/config.py +82 -0
  975. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/deb.sh +106 -0
  976. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/default-config +42 -0
  977. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/first-time-setup.sh +94 -0
  978. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/init.sh +27 -0
  979. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/examples/jessie-armhf.cfg +26 -0
  980. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/run_tests.py +38 -0
  981. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/script.py +110 -0
  982. package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/util.py +177 -0
  983. package/python3.4.2/lib/python3.4/site-packages/easy-install.pth +4 -0
  984. package/python3.4.2/lib/python3.4/site-packages/easy_install.py +5 -0
  985. package/python3.4.2/lib/python3.4/site-packages/pip/__init__.py +277 -0
  986. package/python3.4.2/lib/python3.4/site-packages/pip/__main__.py +7 -0
  987. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/__init__.py +8 -0
  988. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/__init__.py +16 -0
  989. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/markers.py +119 -0
  990. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/__init__.py +7 -0
  991. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansi.py +50 -0
  992. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansitowin32.py +190 -0
  993. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/initialise.py +56 -0
  994. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/win32.py +137 -0
  995. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/winterm.py +120 -0
  996. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/__init__.py +23 -0
  997. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -0
  998. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -0
  999. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/shutil.py +761 -0
  1000. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -0
  1001. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +788 -0
  1002. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -0
  1003. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py +1064 -0
  1004. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/database.py +1301 -0
  1005. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/index.py +488 -0
  1006. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/locators.py +1194 -0
  1007. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/manifest.py +364 -0
  1008. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/markers.py +190 -0
  1009. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/metadata.py +1026 -0
  1010. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/resources.py +317 -0
  1011. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/scripts.py +323 -0
  1012. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  1013. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  1014. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/util.py +1575 -0
  1015. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/version.py +721 -0
  1016. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  1017. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  1018. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/wheel.py +958 -0
  1019. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py +23 -0
  1020. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/constants.py +3104 -0
  1021. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
  1022. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/_base.py +12 -0
  1023. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +20 -0
  1024. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +65 -0
  1025. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -0
  1026. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +205 -0
  1027. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +12 -0
  1028. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -0
  1029. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py +2713 -0
  1030. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/ihatexml.py +285 -0
  1031. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/inputstream.py +881 -0
  1032. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/sanitizer.py +271 -0
  1033. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/__init__.py +16 -0
  1034. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py +320 -0
  1035. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/tokenizer.py +1731 -0
  1036. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +0 -0
  1037. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +44 -0
  1038. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +76 -0
  1039. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/_base.py +377 -0
  1040. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +227 -0
  1041. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +337 -0
  1042. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +369 -0
  1043. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +57 -0
  1044. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/_base.py +200 -0
  1045. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +46 -0
  1046. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +138 -0
  1047. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/genshistream.py +69 -0
  1048. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/lxmletree.py +208 -0
  1049. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/pulldom.py +63 -0
  1050. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/__init__.py +12 -0
  1051. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/_base.py +37 -0
  1052. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/datrie.py +44 -0
  1053. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/py.py +67 -0
  1054. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/utils.py +82 -0
  1055. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pkg_resources.py +2762 -0
  1056. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/re-vendor.py +34 -0
  1057. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__init__.py +77 -0
  1058. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py +388 -0
  1059. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/api.py +120 -0
  1060. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/auth.py +193 -0
  1061. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cacert.pem +5026 -0
  1062. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/certs.py +24 -0
  1063. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/compat.py +115 -0
  1064. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cookies.py +454 -0
  1065. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/exceptions.py +75 -0
  1066. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/hooks.py +45 -0
  1067. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/models.py +803 -0
  1068. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/__init__.py +3 -0
  1069. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/__init__.py +32 -0
  1070. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5freq.py +925 -0
  1071. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5prober.py +42 -0
  1072. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py +46 -0
  1073. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardistribution.py +231 -0
  1074. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetgroupprober.py +106 -0
  1075. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetprober.py +62 -0
  1076. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/codingstatemachine.py +61 -0
  1077. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/compat.py +34 -0
  1078. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/constants.py +39 -0
  1079. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/cp949prober.py +44 -0
  1080. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escprober.py +86 -0
  1081. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escsm.py +242 -0
  1082. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/eucjpprober.py +90 -0
  1083. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrfreq.py +596 -0
  1084. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrprober.py +42 -0
  1085. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwfreq.py +428 -0
  1086. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwprober.py +41 -0
  1087. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/gb2312freq.py +472 -0
  1088. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/gb2312prober.py +41 -0
  1089. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/hebrewprober.py +283 -0
  1090. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/jisfreq.py +569 -0
  1091. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/jpcntx.py +219 -0
  1092. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langbulgarianmodel.py +229 -0
  1093. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langcyrillicmodel.py +329 -0
  1094. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langgreekmodel.py +225 -0
  1095. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langhebrewmodel.py +201 -0
  1096. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langhungarianmodel.py +225 -0
  1097. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langthaimodel.py +200 -0
  1098. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/latin1prober.py +139 -0
  1099. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcharsetprober.py +86 -0
  1100. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcsgroupprober.py +54 -0
  1101. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcssm.py +575 -0
  1102. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py +120 -0
  1103. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcsgroupprober.py +69 -0
  1104. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sjisprober.py +91 -0
  1105. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py +170 -0
  1106. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/utf8prober.py +76 -0
  1107. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py +58 -0
  1108. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/_collections.py +205 -0
  1109. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py +204 -0
  1110. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py +710 -0
  1111. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/__init__.py +0 -0
  1112. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/ntlmpool.py +120 -0
  1113. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py +422 -0
  1114. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py +126 -0
  1115. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/fields.py +177 -0
  1116. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/filepost.py +100 -0
  1117. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/__init__.py +4 -0
  1118. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ordered_dict.py +260 -0
  1119. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py +385 -0
  1120. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +13 -0
  1121. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py +105 -0
  1122. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/poolmanager.py +258 -0
  1123. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/request.py +141 -0
  1124. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/response.py +308 -0
  1125. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py +27 -0
  1126. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py +45 -0
  1127. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/request.py +68 -0
  1128. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py +13 -0
  1129. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py +133 -0
  1130. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/timeout.py +234 -0
  1131. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/url.py +162 -0
  1132. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py +637 -0
  1133. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/status_codes.py +88 -0
  1134. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/structures.py +127 -0
  1135. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/utils.py +673 -0
  1136. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/six.py +646 -0
  1137. package/python3.4.2/lib/python3.4/site-packages/pip/backwardcompat/__init__.py +138 -0
  1138. package/python3.4.2/lib/python3.4/site-packages/pip/basecommand.py +201 -0
  1139. package/python3.4.2/lib/python3.4/site-packages/pip/baseparser.py +224 -0
  1140. package/python3.4.2/lib/python3.4/site-packages/pip/cmdoptions.py +371 -0
  1141. package/python3.4.2/lib/python3.4/site-packages/pip/commands/__init__.py +88 -0
  1142. package/python3.4.2/lib/python3.4/site-packages/pip/commands/bundle.py +42 -0
  1143. package/python3.4.2/lib/python3.4/site-packages/pip/commands/completion.py +59 -0
  1144. package/python3.4.2/lib/python3.4/site-packages/pip/commands/freeze.py +114 -0
  1145. package/python3.4.2/lib/python3.4/site-packages/pip/commands/help.py +33 -0
  1146. package/python3.4.2/lib/python3.4/site-packages/pip/commands/install.py +314 -0
  1147. package/python3.4.2/lib/python3.4/site-packages/pip/commands/list.py +162 -0
  1148. package/python3.4.2/lib/python3.4/site-packages/pip/commands/search.py +132 -0
  1149. package/python3.4.2/lib/python3.4/site-packages/pip/commands/show.py +80 -0
  1150. package/python3.4.2/lib/python3.4/site-packages/pip/commands/uninstall.py +59 -0
  1151. package/python3.4.2/lib/python3.4/site-packages/pip/commands/unzip.py +7 -0
  1152. package/python3.4.2/lib/python3.4/site-packages/pip/commands/wheel.py +195 -0
  1153. package/python3.4.2/lib/python3.4/site-packages/pip/commands/zip.py +351 -0
  1154. package/python3.4.2/lib/python3.4/site-packages/pip/download.py +644 -0
  1155. package/python3.4.2/lib/python3.4/site-packages/pip/exceptions.py +46 -0
  1156. package/python3.4.2/lib/python3.4/site-packages/pip/index.py +990 -0
  1157. package/python3.4.2/lib/python3.4/site-packages/pip/locations.py +172 -0
  1158. package/python3.4.2/lib/python3.4/site-packages/pip/log.py +276 -0
  1159. package/python3.4.2/lib/python3.4/site-packages/pip/pep425tags.py +102 -0
  1160. package/python3.4.2/lib/python3.4/site-packages/pip/req.py +1931 -0
  1161. package/python3.4.2/lib/python3.4/site-packages/pip/runner.py +18 -0
  1162. package/python3.4.2/lib/python3.4/site-packages/pip/status_codes.py +6 -0
  1163. package/python3.4.2/lib/python3.4/site-packages/pip/util.py +720 -0
  1164. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/__init__.py +251 -0
  1165. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/bazaar.py +131 -0
  1166. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/git.py +194 -0
  1167. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/mercurial.py +151 -0
  1168. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/subversion.py +273 -0
  1169. package/python3.4.2/lib/python3.4/site-packages/pip/wheel.py +560 -0
  1170. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/DESCRIPTION.rst +71 -0
  1171. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/METADATA +98 -0
  1172. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/RECORD +373 -0
  1173. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/WHEEL +6 -0
  1174. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/entry_points.txt +5 -0
  1175. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/metadata.json +1 -0
  1176. package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/top_level.txt +1 -0
  1177. package/python3.4.2/lib/python3.4/site-packages/pkg_resources.py +2719 -0
  1178. package/python3.4.2/lib/python3.4/site-packages/setuptools/__init__.py +98 -0
  1179. package/python3.4.2/lib/python3.4/site-packages/setuptools/archive_util.py +210 -0
  1180. package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-32.exe +0 -0
  1181. package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-64.exe +0 -0
  1182. package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-arm-32.exe +0 -0
  1183. package/python3.4.2/lib/python3.4/site-packages/setuptools/cli.exe +0 -0
  1184. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/__init__.py +17 -0
  1185. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/alias.py +82 -0
  1186. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_egg.py +553 -0
  1187. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_rpm.py +82 -0
  1188. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_wininst.py +82 -0
  1189. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/build_ext.py +298 -0
  1190. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/build_py.py +221 -0
  1191. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/develop.py +167 -0
  1192. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/easy_install.py +1915 -0
  1193. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/egg_info.py +392 -0
  1194. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install.py +103 -0
  1195. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_egg_info.py +125 -0
  1196. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_lib.py +82 -0
  1197. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_scripts.py +54 -0
  1198. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/launcher manifest.xml +15 -0
  1199. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/register.py +10 -0
  1200. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/rotate.py +83 -0
  1201. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/saveopts.py +24 -0
  1202. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/sdist.py +238 -0
  1203. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/setopt.py +164 -0
  1204. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/test.py +198 -0
  1205. package/python3.4.2/lib/python3.4/site-packages/setuptools/command/upload_docs.py +193 -0
  1206. package/python3.4.2/lib/python3.4/site-packages/setuptools/compat.py +83 -0
  1207. package/python3.4.2/lib/python3.4/site-packages/setuptools/depends.py +246 -0
  1208. package/python3.4.2/lib/python3.4/site-packages/setuptools/dist.py +796 -0
  1209. package/python3.4.2/lib/python3.4/site-packages/setuptools/extension.py +46 -0
  1210. package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-32.exe +0 -0
  1211. package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-64.exe +0 -0
  1212. package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-arm-32.exe +0 -0
  1213. package/python3.4.2/lib/python3.4/site-packages/setuptools/gui.exe +0 -0
  1214. package/python3.4.2/lib/python3.4/site-packages/setuptools/lib2to3_ex.py +58 -0
  1215. package/python3.4.2/lib/python3.4/site-packages/setuptools/package_index.py +1057 -0
  1216. package/python3.4.2/lib/python3.4/site-packages/setuptools/py26compat.py +19 -0
  1217. package/python3.4.2/lib/python3.4/site-packages/setuptools/py27compat.py +15 -0
  1218. package/python3.4.2/lib/python3.4/site-packages/setuptools/py31compat.py +11 -0
  1219. package/python3.4.2/lib/python3.4/site-packages/setuptools/sandbox.py +322 -0
  1220. package/python3.4.2/lib/python3.4/site-packages/setuptools/script template (dev).py +11 -0
  1221. package/python3.4.2/lib/python3.4/site-packages/setuptools/script template.py +4 -0
  1222. package/python3.4.2/lib/python3.4/site-packages/setuptools/site-patch.py +83 -0
  1223. package/python3.4.2/lib/python3.4/site-packages/setuptools/ssl_support.py +234 -0
  1224. package/python3.4.2/lib/python3.4/site-packages/setuptools/svn_utils.py +564 -0
  1225. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/__init__.py +352 -0
  1226. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/doctest.py +2683 -0
  1227. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/environment.py +165 -0
  1228. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/py26compat.py +14 -0
  1229. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/script-with-bom.py +3 -0
  1230. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/server.py +82 -0
  1231. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_bdist_egg.py +69 -0
  1232. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_build_ext.py +20 -0
  1233. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_develop.py +122 -0
  1234. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_dist_info.py +83 -0
  1235. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_easy_install.py +394 -0
  1236. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_egg_info.py +173 -0
  1237. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_markerlib.py +68 -0
  1238. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_packageindex.py +203 -0
  1239. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_resources.py +620 -0
  1240. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_sandbox.py +79 -0
  1241. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_sdist.py +535 -0
  1242. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_svn.py +246 -0
  1243. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_test.py +124 -0
  1244. package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_upload_docs.py +72 -0
  1245. package/python3.4.2/lib/python3.4/site-packages/setuptools/version.py +1 -0
  1246. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/DESCRIPTION.rst +1742 -0
  1247. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/METADATA +1772 -0
  1248. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/RECORD +149 -0
  1249. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/WHEEL +6 -0
  1250. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/dependency_links.txt +2 -0
  1251. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/entry_points.txt +62 -0
  1252. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/entry_points.txt.orig +62 -0
  1253. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/pydist.json +1 -0
  1254. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/requires.txt.orig +7 -0
  1255. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/top_level.txt +4 -0
  1256. package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/zip-safe +1 -0
  1257. package/python3.4.2/lib/python3.4/site.py +616 -0
  1258. package/python3.4.2/lib/python3.4/smtpd.py +861 -0
  1259. package/python3.4.2/lib/python3.4/smtplib.py +999 -0
  1260. package/python3.4.2/lib/python3.4/sndhdr.py +240 -0
  1261. package/python3.4.2/lib/python3.4/socket.py +535 -0
  1262. package/python3.4.2/lib/python3.4/socketserver.py +748 -0
  1263. package/python3.4.2/lib/python3.4/sqlite3/__init__.py +23 -0
  1264. package/python3.4.2/lib/python3.4/sqlite3/dbapi2.py +89 -0
  1265. package/python3.4.2/lib/python3.4/sqlite3/dump.py +70 -0
  1266. package/python3.4.2/lib/python3.4/sqlite3/test/__init__.py +0 -0
  1267. package/python3.4.2/lib/python3.4/sqlite3/test/dbapi.py +911 -0
  1268. package/python3.4.2/lib/python3.4/sqlite3/test/dump.py +81 -0
  1269. package/python3.4.2/lib/python3.4/sqlite3/test/factory.py +253 -0
  1270. package/python3.4.2/lib/python3.4/sqlite3/test/hooks.py +258 -0
  1271. package/python3.4.2/lib/python3.4/sqlite3/test/regression.py +358 -0
  1272. package/python3.4.2/lib/python3.4/sqlite3/test/transactions.py +204 -0
  1273. package/python3.4.2/lib/python3.4/sqlite3/test/types.py +403 -0
  1274. package/python3.4.2/lib/python3.4/sqlite3/test/userfunctions.py +468 -0
  1275. package/python3.4.2/lib/python3.4/sre_compile.py +489 -0
  1276. package/python3.4.2/lib/python3.4/sre_constants.py +261 -0
  1277. package/python3.4.2/lib/python3.4/sre_parse.py +859 -0
  1278. package/python3.4.2/lib/python3.4/ssl.py +945 -0
  1279. package/python3.4.2/lib/python3.4/stat.py +155 -0
  1280. package/python3.4.2/lib/python3.4/statistics.py +595 -0
  1281. package/python3.4.2/lib/python3.4/string.py +282 -0
  1282. package/python3.4.2/lib/python3.4/stringprep.py +272 -0
  1283. package/python3.4.2/lib/python3.4/struct.py +15 -0
  1284. package/python3.4.2/lib/python3.4/subprocess.py +1690 -0
  1285. package/python3.4.2/lib/python3.4/sunau.py +525 -0
  1286. package/python3.4.2/lib/python3.4/symbol.py +111 -0
  1287. package/python3.4.2/lib/python3.4/symtable.py +240 -0
  1288. package/python3.4.2/lib/python3.4/sysconfig.py +709 -0
  1289. package/python3.4.2/lib/python3.4/tabnanny.py +332 -0
  1290. package/python3.4.2/lib/python3.4/tarfile.py +2519 -0
  1291. package/python3.4.2/lib/python3.4/telnetlib.py +672 -0
  1292. package/python3.4.2/lib/python3.4/tempfile.py +698 -0
  1293. package/python3.4.2/lib/python3.4/test/185test.db +0 -0
  1294. package/python3.4.2/lib/python3.4/test/Sine-1000Hz-300ms.aif +0 -0
  1295. package/python3.4.2/lib/python3.4/test/__init__.py +1 -0
  1296. package/python3.4.2/lib/python3.4/test/__main__.py +3 -0
  1297. package/python3.4.2/lib/python3.4/test/_test_multiprocessing.py +3841 -0
  1298. package/python3.4.2/lib/python3.4/test/audiodata/pluck-alaw.aifc +0 -0
  1299. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.aiff +0 -0
  1300. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.au +0 -0
  1301. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.wav +0 -0
  1302. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.aiff +0 -0
  1303. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.au +0 -0
  1304. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.wav +0 -0
  1305. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.aiff +0 -0
  1306. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.au +0 -0
  1307. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.wav +0 -0
  1308. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.aiff +0 -0
  1309. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.au +0 -0
  1310. package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.wav +0 -0
  1311. package/python3.4.2/lib/python3.4/test/audiodata/pluck-ulaw.aifc +0 -0
  1312. package/python3.4.2/lib/python3.4/test/audiodata/pluck-ulaw.au +0 -0
  1313. package/python3.4.2/lib/python3.4/test/audiotest.au +0 -0
  1314. package/python3.4.2/lib/python3.4/test/audiotests.py +329 -0
  1315. package/python3.4.2/lib/python3.4/test/autotest.py +6 -0
  1316. package/python3.4.2/lib/python3.4/test/bad_coding.py +1 -0
  1317. package/python3.4.2/lib/python3.4/test/bad_coding2.py +2 -0
  1318. package/python3.4.2/lib/python3.4/test/badcert.pem +36 -0
  1319. package/python3.4.2/lib/python3.4/test/badkey.pem +40 -0
  1320. package/python3.4.2/lib/python3.4/test/badsyntax_3131.py +2 -0
  1321. package/python3.4.2/lib/python3.4/test/badsyntax_future10.py +3 -0
  1322. package/python3.4.2/lib/python3.4/test/badsyntax_future3.py +10 -0
  1323. package/python3.4.2/lib/python3.4/test/badsyntax_future4.py +10 -0
  1324. package/python3.4.2/lib/python3.4/test/badsyntax_future5.py +12 -0
  1325. package/python3.4.2/lib/python3.4/test/badsyntax_future6.py +10 -0
  1326. package/python3.4.2/lib/python3.4/test/badsyntax_future7.py +11 -0
  1327. package/python3.4.2/lib/python3.4/test/badsyntax_future8.py +10 -0
  1328. package/python3.4.2/lib/python3.4/test/badsyntax_future9.py +10 -0
  1329. package/python3.4.2/lib/python3.4/test/badsyntax_pep3120.py +1 -0
  1330. package/python3.4.2/lib/python3.4/test/buffer_tests.py +218 -0
  1331. package/python3.4.2/lib/python3.4/test/bytecode_helper.py +41 -0
  1332. package/python3.4.2/lib/python3.4/test/capath/4e1295a3.0 +14 -0
  1333. package/python3.4.2/lib/python3.4/test/capath/5ed36f99.0 +41 -0
  1334. package/python3.4.2/lib/python3.4/test/capath/6e88d7b8.0 +14 -0
  1335. package/python3.4.2/lib/python3.4/test/capath/99d0fa06.0 +41 -0
  1336. package/python3.4.2/lib/python3.4/test/cfgparser.1 +2 -0
  1337. package/python3.4.2/lib/python3.4/test/cfgparser.2 +537 -0
  1338. package/python3.4.2/lib/python3.4/test/cfgparser.3 +69 -0
  1339. package/python3.4.2/lib/python3.4/test/check_soundcard.vbs +13 -0
  1340. package/python3.4.2/lib/python3.4/test/cjkencodings/big5-utf8.txt +9 -0
  1341. package/python3.4.2/lib/python3.4/test/cjkencodings/big5.txt +9 -0
  1342. package/python3.4.2/lib/python3.4/test/cjkencodings/big5hkscs-utf8.txt +2 -0
  1343. package/python3.4.2/lib/python3.4/test/cjkencodings/big5hkscs.txt +2 -0
  1344. package/python3.4.2/lib/python3.4/test/cjkencodings/cp949-utf8.txt +9 -0
  1345. package/python3.4.2/lib/python3.4/test/cjkencodings/cp949.txt +9 -0
  1346. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jisx0213-utf8.txt +8 -0
  1347. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jisx0213.txt +8 -0
  1348. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jp-utf8.txt +7 -0
  1349. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jp.txt +7 -0
  1350. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_kr-utf8.txt +7 -0
  1351. package/python3.4.2/lib/python3.4/test/cjkencodings/euc_kr.txt +7 -0
  1352. package/python3.4.2/lib/python3.4/test/cjkencodings/gb18030-utf8.txt +15 -0
  1353. package/python3.4.2/lib/python3.4/test/cjkencodings/gb18030.txt +15 -0
  1354. package/python3.4.2/lib/python3.4/test/cjkencodings/gb2312-utf8.txt +6 -0
  1355. package/python3.4.2/lib/python3.4/test/cjkencodings/gb2312.txt +6 -0
  1356. package/python3.4.2/lib/python3.4/test/cjkencodings/gbk-utf8.txt +14 -0
  1357. package/python3.4.2/lib/python3.4/test/cjkencodings/gbk.txt +14 -0
  1358. package/python3.4.2/lib/python3.4/test/cjkencodings/hz-utf8.txt +2 -0
  1359. package/python3.4.2/lib/python3.4/test/cjkencodings/hz.txt +2 -0
  1360. package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_jp-utf8.txt +7 -0
  1361. package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_jp.txt +7 -0
  1362. package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_kr-utf8.txt +7 -0
  1363. package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_kr.txt +7 -0
  1364. package/python3.4.2/lib/python3.4/test/cjkencodings/johab-utf8.txt +9 -0
  1365. package/python3.4.2/lib/python3.4/test/cjkencodings/johab.txt +9 -0
  1366. package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jis-utf8.txt +7 -0
  1367. package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jis.txt +7 -0
  1368. package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jisx0213-utf8.txt +8 -0
  1369. package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jisx0213.txt +8 -0
  1370. package/python3.4.2/lib/python3.4/test/cmath_testcases.txt +2370 -0
  1371. package/python3.4.2/lib/python3.4/test/coding20731.py +4 -0
  1372. package/python3.4.2/lib/python3.4/test/curses_tests.py +46 -0
  1373. package/python3.4.2/lib/python3.4/test/data/README +2 -0
  1374. package/python3.4.2/lib/python3.4/test/datetimetester.py +3786 -0
  1375. package/python3.4.2/lib/python3.4/test/decimaltestdata/abs.decTest +161 -0
  1376. package/python3.4.2/lib/python3.4/test/decimaltestdata/add.decTest +2716 -0
  1377. package/python3.4.2/lib/python3.4/test/decimaltestdata/and.decTest +338 -0
  1378. package/python3.4.2/lib/python3.4/test/decimaltestdata/base.decTest +1411 -0
  1379. package/python3.4.2/lib/python3.4/test/decimaltestdata/clamp.decTest +211 -0
  1380. package/python3.4.2/lib/python3.4/test/decimaltestdata/class.decTest +131 -0
  1381. package/python3.4.2/lib/python3.4/test/decimaltestdata/compare.decTest +758 -0
  1382. package/python3.4.2/lib/python3.4/test/decimaltestdata/comparetotal.decTest +798 -0
  1383. package/python3.4.2/lib/python3.4/test/decimaltestdata/comparetotmag.decTest +790 -0
  1384. package/python3.4.2/lib/python3.4/test/decimaltestdata/copy.decTest +86 -0
  1385. package/python3.4.2/lib/python3.4/test/decimaltestdata/copyabs.decTest +86 -0
  1386. package/python3.4.2/lib/python3.4/test/decimaltestdata/copynegate.decTest +86 -0
  1387. package/python3.4.2/lib/python3.4/test/decimaltestdata/copysign.decTest +177 -0
  1388. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAbs.decTest +126 -0
  1389. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAdd.decTest +1328 -0
  1390. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAnd.decTest +347 -0
  1391. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddBase.decTest +1104 -0
  1392. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCanonical.decTest +357 -0
  1393. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddClass.decTest +76 -0
  1394. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompare.decTest +744 -0
  1395. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareSig.decTest +647 -0
  1396. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareTotal.decTest +706 -0
  1397. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareTotalMag.decTest +706 -0
  1398. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopy.decTest +88 -0
  1399. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopyAbs.decTest +88 -0
  1400. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopyNegate.decTest +88 -0
  1401. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopySign.decTest +175 -0
  1402. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddDivide.decTest +863 -0
  1403. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddDivideInt.decTest +449 -0
  1404. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddEncode.decTest +495 -0
  1405. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddFMA.decTest +1698 -0
  1406. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddInvert.decTest +202 -0
  1407. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddLogB.decTest +159 -0
  1408. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMax.decTest +322 -0
  1409. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMaxMag.decTest +304 -0
  1410. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMin.decTest +309 -0
  1411. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMinMag.decTest +293 -0
  1412. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMinus.decTest +88 -0
  1413. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMultiply.decTest +553 -0
  1414. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextMinus.decTest +126 -0
  1415. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextPlus.decTest +124 -0
  1416. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextToward.decTest +374 -0
  1417. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddOr.decTest +292 -0
  1418. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddPlus.decTest +88 -0
  1419. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddQuantize.decTest +833 -0
  1420. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddReduce.decTest +182 -0
  1421. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRemainder.decTest +600 -0
  1422. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRemainderNear.decTest +629 -0
  1423. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRotate.decTest +262 -0
  1424. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddSameQuantum.decTest +389 -0
  1425. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddScaleB.decTest +243 -0
  1426. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddShift.decTest +262 -0
  1427. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddSubtract.decTest +629 -0
  1428. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddToIntegral.decTest +257 -0
  1429. package/python3.4.2/lib/python3.4/test/decimaltestdata/ddXor.decTest +337 -0
  1430. package/python3.4.2/lib/python3.4/test/decimaltestdata/decDouble.decTest +65 -0
  1431. package/python3.4.2/lib/python3.4/test/decimaltestdata/decQuad.decTest +65 -0
  1432. package/python3.4.2/lib/python3.4/test/decimaltestdata/decSingle.decTest +25 -0
  1433. package/python3.4.2/lib/python3.4/test/decimaltestdata/divide.decTest +854 -0
  1434. package/python3.4.2/lib/python3.4/test/decimaltestdata/divideint.decTest +486 -0
  1435. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAbs.decTest +126 -0
  1436. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAdd.decTest +1215 -0
  1437. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAnd.decTest +420 -0
  1438. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqBase.decTest +1081 -0
  1439. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCanonical.decTest +372 -0
  1440. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqClass.decTest +77 -0
  1441. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompare.decTest +753 -0
  1442. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareSig.decTest +647 -0
  1443. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareTotal.decTest +706 -0
  1444. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareTotalMag.decTest +706 -0
  1445. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopy.decTest +88 -0
  1446. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopyAbs.decTest +88 -0
  1447. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopyNegate.decTest +88 -0
  1448. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopySign.decTest +175 -0
  1449. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqDivide.decTest +808 -0
  1450. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqDivideInt.decTest +453 -0
  1451. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqEncode.decTest +477 -0
  1452. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqFMA.decTest +1786 -0
  1453. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqInvert.decTest +245 -0
  1454. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqLogB.decTest +160 -0
  1455. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMax.decTest +322 -0
  1456. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMaxMag.decTest +304 -0
  1457. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMin.decTest +309 -0
  1458. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMinMag.decTest +293 -0
  1459. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMinus.decTest +88 -0
  1460. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMultiply.decTest +589 -0
  1461. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextMinus.decTest +126 -0
  1462. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextPlus.decTest +124 -0
  1463. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextToward.decTest +375 -0
  1464. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqOr.decTest +401 -0
  1465. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqPlus.decTest +88 -0
  1466. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqQuantize.decTest +836 -0
  1467. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqReduce.decTest +183 -0
  1468. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRemainder.decTest +597 -0
  1469. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRemainderNear.decTest +631 -0
  1470. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRotate.decTest +298 -0
  1471. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqSameQuantum.decTest +389 -0
  1472. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqScaleB.decTest +260 -0
  1473. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqShift.decTest +298 -0
  1474. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqSubtract.decTest +635 -0
  1475. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqToIntegral.decTest +257 -0
  1476. package/python3.4.2/lib/python3.4/test/decimaltestdata/dqXor.decTest +410 -0
  1477. package/python3.4.2/lib/python3.4/test/decimaltestdata/dsBase.decTest +1062 -0
  1478. package/python3.4.2/lib/python3.4/test/decimaltestdata/dsEncode.decTest +372 -0
  1479. package/python3.4.2/lib/python3.4/test/decimaltestdata/exp.decTest +674 -0
  1480. package/python3.4.2/lib/python3.4/test/decimaltestdata/extra.decTest +2830 -0
  1481. package/python3.4.2/lib/python3.4/test/decimaltestdata/fma.decTest +3426 -0
  1482. package/python3.4.2/lib/python3.4/test/decimaltestdata/inexact.decTest +215 -0
  1483. package/python3.4.2/lib/python3.4/test/decimaltestdata/invert.decTest +176 -0
  1484. package/python3.4.2/lib/python3.4/test/decimaltestdata/ln.decTest +611 -0
  1485. package/python3.4.2/lib/python3.4/test/decimaltestdata/log10.decTest +551 -0
  1486. package/python3.4.2/lib/python3.4/test/decimaltestdata/logb.decTest +188 -0
  1487. package/python3.4.2/lib/python3.4/test/decimaltestdata/max.decTest +424 -0
  1488. package/python3.4.2/lib/python3.4/test/decimaltestdata/maxmag.decTest +404 -0
  1489. package/python3.4.2/lib/python3.4/test/decimaltestdata/min.decTest +407 -0
  1490. package/python3.4.2/lib/python3.4/test/decimaltestdata/minmag.decTest +390 -0
  1491. package/python3.4.2/lib/python3.4/test/decimaltestdata/minus.decTest +182 -0
  1492. package/python3.4.2/lib/python3.4/test/decimaltestdata/multiply.decTest +731 -0
  1493. package/python3.4.2/lib/python3.4/test/decimaltestdata/nextminus.decTest +148 -0
  1494. package/python3.4.2/lib/python3.4/test/decimaltestdata/nextplus.decTest +150 -0
  1495. package/python3.4.2/lib/python3.4/test/decimaltestdata/nexttoward.decTest +426 -0
  1496. package/python3.4.2/lib/python3.4/test/decimaltestdata/or.decTest +334 -0
  1497. package/python3.4.2/lib/python3.4/test/decimaltestdata/plus.decTest +195 -0
  1498. package/python3.4.2/lib/python3.4/test/decimaltestdata/power.decTest +1624 -0
  1499. package/python3.4.2/lib/python3.4/test/decimaltestdata/powersqrt.decTest +2970 -0
  1500. package/python3.4.2/lib/python3.4/test/decimaltestdata/quantize.decTest +948 -0
  1501. package/python3.4.2/lib/python3.4/test/decimaltestdata/randomBound32.decTest +2443 -0
  1502. package/python3.4.2/lib/python3.4/test/decimaltestdata/randoms.decTest +4030 -0
  1503. package/python3.4.2/lib/python3.4/test/decimaltestdata/reduce.decTest +234 -0
  1504. package/python3.4.2/lib/python3.4/test/decimaltestdata/remainder.decTest +640 -0
  1505. package/python3.4.2/lib/python3.4/test/decimaltestdata/remainderNear.decTest +572 -0
  1506. package/python3.4.2/lib/python3.4/test/decimaltestdata/rescale.decTest +764 -0
  1507. package/python3.4.2/lib/python3.4/test/decimaltestdata/rotate.decTest +247 -0
  1508. package/python3.4.2/lib/python3.4/test/decimaltestdata/rounding.decTest +1303 -0
  1509. package/python3.4.2/lib/python3.4/test/decimaltestdata/samequantum.decTest +389 -0
  1510. package/python3.4.2/lib/python3.4/test/decimaltestdata/scaleb.decTest +209 -0
  1511. package/python3.4.2/lib/python3.4/test/decimaltestdata/shift.decTest +250 -0
  1512. package/python3.4.2/lib/python3.4/test/decimaltestdata/squareroot.decTest +3834 -0
  1513. package/python3.4.2/lib/python3.4/test/decimaltestdata/subtract.decTest +873 -0
  1514. package/python3.4.2/lib/python3.4/test/decimaltestdata/testall.decTest +87 -0
  1515. package/python3.4.2/lib/python3.4/test/decimaltestdata/tointegral.decTest +241 -0
  1516. package/python3.4.2/lib/python3.4/test/decimaltestdata/tointegralx.decTest +255 -0
  1517. package/python3.4.2/lib/python3.4/test/decimaltestdata/xor.decTest +335 -0
  1518. package/python3.4.2/lib/python3.4/test/dh512.pem +9 -0
  1519. package/python3.4.2/lib/python3.4/test/dis_module.py +5 -0
  1520. package/python3.4.2/lib/python3.4/test/doctest_aliases.py +13 -0
  1521. package/python3.4.2/lib/python3.4/test/double_const.py +30 -0
  1522. package/python3.4.2/lib/python3.4/test/empty.vbs +1 -0
  1523. package/python3.4.2/lib/python3.4/test/encoded_modules/__init__.py +23 -0
  1524. package/python3.4.2/lib/python3.4/test/encoded_modules/module_iso_8859_1.py +5 -0
  1525. package/python3.4.2/lib/python3.4/test/encoded_modules/module_koi8_r.py +3 -0
  1526. package/python3.4.2/lib/python3.4/test/exception_hierarchy.txt +61 -0
  1527. package/python3.4.2/lib/python3.4/test/final_a.py +19 -0
  1528. package/python3.4.2/lib/python3.4/test/final_b.py +19 -0
  1529. package/python3.4.2/lib/python3.4/test/floating_points.txt +1028 -0
  1530. package/python3.4.2/lib/python3.4/test/fork_wait.py +77 -0
  1531. package/python3.4.2/lib/python3.4/test/formatfloat_testcases.txt +355 -0
  1532. package/python3.4.2/lib/python3.4/test/future_test1.py +11 -0
  1533. package/python3.4.2/lib/python3.4/test/future_test2.py +10 -0
  1534. package/python3.4.2/lib/python3.4/test/gdb_sample.py +12 -0
  1535. package/python3.4.2/lib/python3.4/test/https_svn_python_org_root.pem +41 -0
  1536. package/python3.4.2/lib/python3.4/test/ieee754.txt +185 -0
  1537. package/python3.4.2/lib/python3.4/test/imghdrdata/python.bmp +0 -0
  1538. package/python3.4.2/lib/python3.4/test/imghdrdata/python.gif +0 -0
  1539. package/python3.4.2/lib/python3.4/test/imghdrdata/python.jpg +0 -0
  1540. package/python3.4.2/lib/python3.4/test/imghdrdata/python.pbm +3 -0
  1541. package/python3.4.2/lib/python3.4/test/imghdrdata/python.pgm +0 -0
  1542. package/python3.4.2/lib/python3.4/test/imghdrdata/python.png +0 -0
  1543. package/python3.4.2/lib/python3.4/test/imghdrdata/python.ppm +0 -0
  1544. package/python3.4.2/lib/python3.4/test/imghdrdata/python.ras +0 -0
  1545. package/python3.4.2/lib/python3.4/test/imghdrdata/python.sgi +0 -0
  1546. package/python3.4.2/lib/python3.4/test/imghdrdata/python.tiff +0 -0
  1547. package/python3.4.2/lib/python3.4/test/imghdrdata/python.xbm +6 -0
  1548. package/python3.4.2/lib/python3.4/test/inspect_fodder.py +58 -0
  1549. package/python3.4.2/lib/python3.4/test/inspect_fodder2.py +111 -0
  1550. package/python3.4.2/lib/python3.4/test/keycert.passwd.pem +33 -0
  1551. package/python3.4.2/lib/python3.4/test/keycert.pem +31 -0
  1552. package/python3.4.2/lib/python3.4/test/keycert2.pem +31 -0
  1553. package/python3.4.2/lib/python3.4/test/keycert3.pem +73 -0
  1554. package/python3.4.2/lib/python3.4/test/keycert4.pem +73 -0
  1555. package/python3.4.2/lib/python3.4/test/list_tests.py +585 -0
  1556. package/python3.4.2/lib/python3.4/test/lock_tests.py +896 -0
  1557. package/python3.4.2/lib/python3.4/test/mailcap.txt +39 -0
  1558. package/python3.4.2/lib/python3.4/test/make_ssl_certs.py +176 -0
  1559. package/python3.4.2/lib/python3.4/test/mapping_tests.py +657 -0
  1560. package/python3.4.2/lib/python3.4/test/math_testcases.txt +633 -0
  1561. package/python3.4.2/lib/python3.4/test/memory_watchdog.py +28 -0
  1562. package/python3.4.2/lib/python3.4/test/mime.types +1445 -0
  1563. package/python3.4.2/lib/python3.4/test/mock_socket.py +156 -0
  1564. package/python3.4.2/lib/python3.4/test/mp_fork_bomb.py +18 -0
  1565. package/python3.4.2/lib/python3.4/test/multibytecodec_support.py +377 -0
  1566. package/python3.4.2/lib/python3.4/test/nokia.pem +31 -0
  1567. package/python3.4.2/lib/python3.4/test/nullbytecert.pem +90 -0
  1568. package/python3.4.2/lib/python3.4/test/nullcert.pem +0 -0
  1569. package/python3.4.2/lib/python3.4/test/outstanding_bugs.py +18 -0
  1570. package/python3.4.2/lib/python3.4/test/pickletester.py +2253 -0
  1571. package/python3.4.2/lib/python3.4/test/profilee.py +115 -0
  1572. package/python3.4.2/lib/python3.4/test/pstats.pck +0 -0
  1573. package/python3.4.2/lib/python3.4/test/pycacert.pem +78 -0
  1574. package/python3.4.2/lib/python3.4/test/pycakey.pem +28 -0
  1575. package/python3.4.2/lib/python3.4/test/pyclbr_input.py +33 -0
  1576. package/python3.4.2/lib/python3.4/test/pydoc_mod.py +37 -0
  1577. package/python3.4.2/lib/python3.4/test/pydocfodder.py +216 -0
  1578. package/python3.4.2/lib/python3.4/test/pystone.py +277 -0
  1579. package/python3.4.2/lib/python3.4/test/randv2_32.pck +633 -0
  1580. package/python3.4.2/lib/python3.4/test/randv2_64.pck +633 -0
  1581. package/python3.4.2/lib/python3.4/test/randv3.pck +633 -0
  1582. package/python3.4.2/lib/python3.4/test/re_tests.py +670 -0
  1583. package/python3.4.2/lib/python3.4/test/regrtest.py +1589 -0
  1584. package/python3.4.2/lib/python3.4/test/relimport.py +1 -0
  1585. package/python3.4.2/lib/python3.4/test/reperf.py +23 -0
  1586. package/python3.4.2/lib/python3.4/test/revocation.crl +11 -0
  1587. package/python3.4.2/lib/python3.4/test/sample_doctest.py +76 -0
  1588. package/python3.4.2/lib/python3.4/test/sample_doctest_no_docstrings.py +12 -0
  1589. package/python3.4.2/lib/python3.4/test/sample_doctest_no_doctests.py +15 -0
  1590. package/python3.4.2/lib/python3.4/test/script_helper.py +178 -0
  1591. package/python3.4.2/lib/python3.4/test/seq_tests.py +397 -0
  1592. package/python3.4.2/lib/python3.4/test/sgml_input.html +212 -0
  1593. package/python3.4.2/lib/python3.4/test/sha256.pem +128 -0
  1594. package/python3.4.2/lib/python3.4/test/sndhdrdata/README +12 -0
  1595. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.8svx +0 -0
  1596. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.aifc +0 -0
  1597. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.aiff +0 -0
  1598. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.au +0 -0
  1599. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.hcom +0 -0
  1600. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.sndt +0 -0
  1601. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.voc +0 -0
  1602. package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.wav +0 -0
  1603. package/python3.4.2/lib/python3.4/test/sortperf.py +169 -0
  1604. package/python3.4.2/lib/python3.4/test/ssl_cert.pem +15 -0
  1605. package/python3.4.2/lib/python3.4/test/ssl_key.passwd.pem +18 -0
  1606. package/python3.4.2/lib/python3.4/test/ssl_key.pem +16 -0
  1607. package/python3.4.2/lib/python3.4/test/ssl_servers.py +205 -0
  1608. package/python3.4.2/lib/python3.4/test/ssltests.py +22 -0
  1609. package/python3.4.2/lib/python3.4/test/string_tests.py +1385 -0
  1610. package/python3.4.2/lib/python3.4/test/subprocessdata/fd_status.py +34 -0
  1611. package/python3.4.2/lib/python3.4/test/subprocessdata/input_reader.py +7 -0
  1612. package/python3.4.2/lib/python3.4/test/subprocessdata/qcat.py +7 -0
  1613. package/python3.4.2/lib/python3.4/test/subprocessdata/qgrep.py +10 -0
  1614. package/python3.4.2/lib/python3.4/test/subprocessdata/sigchild_ignore.py +15 -0
  1615. package/python3.4.2/lib/python3.4/test/support/__init__.py +2241 -0
  1616. package/python3.4.2/lib/python3.4/test/test___all__.py +117 -0
  1617. package/python3.4.2/lib/python3.4/test/test___future__.py +65 -0
  1618. package/python3.4.2/lib/python3.4/test/test__locale.py +170 -0
  1619. package/python3.4.2/lib/python3.4/test/test__opcode.py +23 -0
  1620. package/python3.4.2/lib/python3.4/test/test__osx_support.py +281 -0
  1621. package/python3.4.2/lib/python3.4/test/test_abc.py +408 -0
  1622. package/python3.4.2/lib/python3.4/test/test_abstract_numbers.py +44 -0
  1623. package/python3.4.2/lib/python3.4/test/test_aifc.py +384 -0
  1624. package/python3.4.2/lib/python3.4/test/test_argparse.py +4979 -0
  1625. package/python3.4.2/lib/python3.4/test/test_array.py +1323 -0
  1626. package/python3.4.2/lib/python3.4/test/test_ast.py +1038 -0
  1627. package/python3.4.2/lib/python3.4/test/test_asynchat.py +333 -0
  1628. package/python3.4.2/lib/python3.4/test/test_asyncio/__init__.py +10 -0
  1629. package/python3.4.2/lib/python3.4/test/test_asyncio/__main__.py +4 -0
  1630. package/python3.4.2/lib/python3.4/test/test_asyncio/echo.py +8 -0
  1631. package/python3.4.2/lib/python3.4/test/test_asyncio/echo2.py +6 -0
  1632. package/python3.4.2/lib/python3.4/test/test_asyncio/echo3.py +11 -0
  1633. package/python3.4.2/lib/python3.4/test/test_asyncio/keycert3.pem +73 -0
  1634. package/python3.4.2/lib/python3.4/test/test_asyncio/pycacert.pem +78 -0
  1635. package/python3.4.2/lib/python3.4/test/test_asyncio/ssl_cert.pem +15 -0
  1636. package/python3.4.2/lib/python3.4/test/test_asyncio/ssl_key.pem +16 -0
  1637. package/python3.4.2/lib/python3.4/test/test_asyncio/test_base_events.py +1064 -0
  1638. package/python3.4.2/lib/python3.4/test/test_asyncio/test_events.py +2240 -0
  1639. package/python3.4.2/lib/python3.4/test/test_asyncio/test_futures.py +442 -0
  1640. package/python3.4.2/lib/python3.4/test/test_asyncio/test_locks.py +858 -0
  1641. package/python3.4.2/lib/python3.4/test/test_asyncio/test_proactor_events.py +492 -0
  1642. package/python3.4.2/lib/python3.4/test/test_asyncio/test_queues.py +476 -0
  1643. package/python3.4.2/lib/python3.4/test/test_asyncio/test_selector_events.py +1737 -0
  1644. package/python3.4.2/lib/python3.4/test/test_asyncio/test_streams.py +628 -0
  1645. package/python3.4.2/lib/python3.4/test/test_asyncio/test_subprocess.py +217 -0
  1646. package/python3.4.2/lib/python3.4/test/test_asyncio/test_tasks.py +1977 -0
  1647. package/python3.4.2/lib/python3.4/test/test_asyncio/test_transports.py +90 -0
  1648. package/python3.4.2/lib/python3.4/test/test_asyncio/test_unix_events.py +1582 -0
  1649. package/python3.4.2/lib/python3.4/test/test_asyncio/test_windows_events.py +141 -0
  1650. package/python3.4.2/lib/python3.4/test/test_asyncio/test_windows_utils.py +171 -0
  1651. package/python3.4.2/lib/python3.4/test/test_asyncore.py +859 -0
  1652. package/python3.4.2/lib/python3.4/test/test_atexit.py +185 -0
  1653. package/python3.4.2/lib/python3.4/test/test_audioop.py +534 -0
  1654. package/python3.4.2/lib/python3.4/test/test_augassign.py +315 -0
  1655. package/python3.4.2/lib/python3.4/test/test_base64.py +666 -0
  1656. package/python3.4.2/lib/python3.4/test/test_bigaddrspace.py +101 -0
  1657. package/python3.4.2/lib/python3.4/test/test_bigmem.py +1257 -0
  1658. package/python3.4.2/lib/python3.4/test/test_binascii.py +270 -0
  1659. package/python3.4.2/lib/python3.4/test/test_binhex.py +56 -0
  1660. package/python3.4.2/lib/python3.4/test/test_binop.py +380 -0
  1661. package/python3.4.2/lib/python3.4/test/test_bisect.py +328 -0
  1662. package/python3.4.2/lib/python3.4/test/test_bool.py +347 -0
  1663. package/python3.4.2/lib/python3.4/test/test_buffer.py +4294 -0
  1664. package/python3.4.2/lib/python3.4/test/test_bufio.py +73 -0
  1665. package/python3.4.2/lib/python3.4/test/test_builtin.py +1637 -0
  1666. package/python3.4.2/lib/python3.4/test/test_bytes.py +1433 -0
  1667. package/python3.4.2/lib/python3.4/test/test_bz2.py +880 -0
  1668. package/python3.4.2/lib/python3.4/test/test_calendar.py +714 -0
  1669. package/python3.4.2/lib/python3.4/test/test_call.py +131 -0
  1670. package/python3.4.2/lib/python3.4/test/test_capi.py +469 -0
  1671. package/python3.4.2/lib/python3.4/test/test_cgi.py +489 -0
  1672. package/python3.4.2/lib/python3.4/test/test_cgitb.py +70 -0
  1673. package/python3.4.2/lib/python3.4/test/test_charmapcodec.py +56 -0
  1674. package/python3.4.2/lib/python3.4/test/test_class.py +552 -0
  1675. package/python3.4.2/lib/python3.4/test/test_cmath.py +536 -0
  1676. package/python3.4.2/lib/python3.4/test/test_cmd.py +243 -0
  1677. package/python3.4.2/lib/python3.4/test/test_cmd_line.py +473 -0
  1678. package/python3.4.2/lib/python3.4/test/test_cmd_line_script.py +481 -0
  1679. package/python3.4.2/lib/python3.4/test/test_code.py +170 -0
  1680. package/python3.4.2/lib/python3.4/test/test_code_module.py +86 -0
  1681. package/python3.4.2/lib/python3.4/test/test_codeccallbacks.py +880 -0
  1682. package/python3.4.2/lib/python3.4/test/test_codecencodings_cn.py +90 -0
  1683. package/python3.4.2/lib/python3.4/test/test_codecencodings_hk.py +26 -0
  1684. package/python3.4.2/lib/python3.4/test/test_codecencodings_iso2022.py +45 -0
  1685. package/python3.4.2/lib/python3.4/test/test_codecencodings_jp.py +130 -0
  1686. package/python3.4.2/lib/python3.4/test/test_codecencodings_kr.py +73 -0
  1687. package/python3.4.2/lib/python3.4/test/test_codecencodings_tw.py +26 -0
  1688. package/python3.4.2/lib/python3.4/test/test_codecmaps_cn.py +29 -0
  1689. package/python3.4.2/lib/python3.4/test/test_codecmaps_hk.py +16 -0
  1690. package/python3.4.2/lib/python3.4/test/test_codecmaps_jp.py +63 -0
  1691. package/python3.4.2/lib/python3.4/test/test_codecmaps_kr.py +40 -0
  1692. package/python3.4.2/lib/python3.4/test/test_codecmaps_tw.py +30 -0
  1693. package/python3.4.2/lib/python3.4/test/test_codecs.py +2901 -0
  1694. package/python3.4.2/lib/python3.4/test/test_codeop.py +304 -0
  1695. package/python3.4.2/lib/python3.4/test/test_collections.py +1552 -0
  1696. package/python3.4.2/lib/python3.4/test/test_colorsys.py +100 -0
  1697. package/python3.4.2/lib/python3.4/test/test_compare.py +67 -0
  1698. package/python3.4.2/lib/python3.4/test/test_compile.py +561 -0
  1699. package/python3.4.2/lib/python3.4/test/test_compileall.py +384 -0
  1700. package/python3.4.2/lib/python3.4/test/test_complex.py +638 -0
  1701. package/python3.4.2/lib/python3.4/test/test_concurrent_futures.py +685 -0
  1702. package/python3.4.2/lib/python3.4/test/test_configparser.py +1768 -0
  1703. package/python3.4.2/lib/python3.4/test/test_contains.py +93 -0
  1704. package/python3.4.2/lib/python3.4/test/test_contextlib.py +828 -0
  1705. package/python3.4.2/lib/python3.4/test/test_copy.py +759 -0
  1706. package/python3.4.2/lib/python3.4/test/test_copyreg.py +121 -0
  1707. package/python3.4.2/lib/python3.4/test/test_cprofile.py +98 -0
  1708. package/python3.4.2/lib/python3.4/test/test_crashers.py +38 -0
  1709. package/python3.4.2/lib/python3.4/test/test_crypt.py +33 -0
  1710. package/python3.4.2/lib/python3.4/test/test_csv.py +1074 -0
  1711. package/python3.4.2/lib/python3.4/test/test_ctypes.py +6 -0
  1712. package/python3.4.2/lib/python3.4/test/test_curses.py +395 -0
  1713. package/python3.4.2/lib/python3.4/test/test_datetime.py +48 -0
  1714. package/python3.4.2/lib/python3.4/test/test_dbm.py +193 -0
  1715. package/python3.4.2/lib/python3.4/test/test_dbm_dumb.py +228 -0
  1716. package/python3.4.2/lib/python3.4/test/test_dbm_gnu.py +97 -0
  1717. package/python3.4.2/lib/python3.4/test/test_dbm_ndbm.py +54 -0
  1718. package/python3.4.2/lib/python3.4/test/test_decimal.py +5504 -0
  1719. package/python3.4.2/lib/python3.4/test/test_decorators.py +309 -0
  1720. package/python3.4.2/lib/python3.4/test/test_defaultdict.py +190 -0
  1721. package/python3.4.2/lib/python3.4/test/test_deque.py +817 -0
  1722. package/python3.4.2/lib/python3.4/test/test_descr.py +5006 -0
  1723. package/python3.4.2/lib/python3.4/test/test_descrtut.py +485 -0
  1724. package/python3.4.2/lib/python3.4/test/test_devpoll.py +146 -0
  1725. package/python3.4.2/lib/python3.4/test/test_dict.py +928 -0
  1726. package/python3.4.2/lib/python3.4/test/test_dictcomps.py +88 -0
  1727. package/python3.4.2/lib/python3.4/test/test_dictviews.py +206 -0
  1728. package/python3.4.2/lib/python3.4/test/test_difflib.py +298 -0
  1729. package/python3.4.2/lib/python3.4/test/test_difflib_expect.html +526 -0
  1730. package/python3.4.2/lib/python3.4/test/test_dis.py +832 -0
  1731. package/python3.4.2/lib/python3.4/test/test_distutils.py +18 -0
  1732. package/python3.4.2/lib/python3.4/test/test_doctest.py +2921 -0
  1733. package/python3.4.2/lib/python3.4/test/test_doctest.txt +17 -0
  1734. package/python3.4.2/lib/python3.4/test/test_doctest2.py +123 -0
  1735. package/python3.4.2/lib/python3.4/test/test_doctest2.txt +14 -0
  1736. package/python3.4.2/lib/python3.4/test/test_doctest3.txt +5 -0
  1737. package/python3.4.2/lib/python3.4/test/test_doctest4.txt +11 -0
  1738. package/python3.4.2/lib/python3.4/test/test_docxmlrpc.py +219 -0
  1739. package/python3.4.2/lib/python3.4/test/test_dummy_thread.py +182 -0
  1740. package/python3.4.2/lib/python3.4/test/test_dummy_threading.py +64 -0
  1741. package/python3.4.2/lib/python3.4/test/test_dynamic.py +143 -0
  1742. package/python3.4.2/lib/python3.4/test/test_dynamicclassattribute.py +304 -0
  1743. package/python3.4.2/lib/python3.4/test/test_email/__init__.py +159 -0
  1744. package/python3.4.2/lib/python3.4/test/test_email/__main__.py +4 -0
  1745. package/python3.4.2/lib/python3.4/test/test_email/data/PyBanner048.gif +0 -0
  1746. package/python3.4.2/lib/python3.4/test/test_email/data/audiotest.au +0 -0
  1747. package/python3.4.2/lib/python3.4/test/test_email/data/msg_01.txt +19 -0
  1748. package/python3.4.2/lib/python3.4/test/test_email/data/msg_02.txt +136 -0
  1749. package/python3.4.2/lib/python3.4/test/test_email/data/msg_03.txt +16 -0
  1750. package/python3.4.2/lib/python3.4/test/test_email/data/msg_04.txt +37 -0
  1751. package/python3.4.2/lib/python3.4/test/test_email/data/msg_05.txt +28 -0
  1752. package/python3.4.2/lib/python3.4/test/test_email/data/msg_06.txt +33 -0
  1753. package/python3.4.2/lib/python3.4/test/test_email/data/msg_07.txt +83 -0
  1754. package/python3.4.2/lib/python3.4/test/test_email/data/msg_08.txt +24 -0
  1755. package/python3.4.2/lib/python3.4/test/test_email/data/msg_09.txt +24 -0
  1756. package/python3.4.2/lib/python3.4/test/test_email/data/msg_10.txt +39 -0
  1757. package/python3.4.2/lib/python3.4/test/test_email/data/msg_11.txt +7 -0
  1758. package/python3.4.2/lib/python3.4/test/test_email/data/msg_12.txt +36 -0
  1759. package/python3.4.2/lib/python3.4/test/test_email/data/msg_12a.txt +38 -0
  1760. package/python3.4.2/lib/python3.4/test/test_email/data/msg_13.txt +94 -0
  1761. package/python3.4.2/lib/python3.4/test/test_email/data/msg_14.txt +23 -0
  1762. package/python3.4.2/lib/python3.4/test/test_email/data/msg_15.txt +52 -0
  1763. package/python3.4.2/lib/python3.4/test/test_email/data/msg_16.txt +123 -0
  1764. package/python3.4.2/lib/python3.4/test/test_email/data/msg_17.txt +12 -0
  1765. package/python3.4.2/lib/python3.4/test/test_email/data/msg_18.txt +6 -0
  1766. package/python3.4.2/lib/python3.4/test/test_email/data/msg_19.txt +43 -0
  1767. package/python3.4.2/lib/python3.4/test/test_email/data/msg_20.txt +22 -0
  1768. package/python3.4.2/lib/python3.4/test/test_email/data/msg_21.txt +20 -0
  1769. package/python3.4.2/lib/python3.4/test/test_email/data/msg_22.txt +46 -0
  1770. package/python3.4.2/lib/python3.4/test/test_email/data/msg_23.txt +8 -0
  1771. package/python3.4.2/lib/python3.4/test/test_email/data/msg_24.txt +10 -0
  1772. package/python3.4.2/lib/python3.4/test/test_email/data/msg_25.txt +117 -0
  1773. package/python3.4.2/lib/python3.4/test/test_email/data/msg_26.txt +46 -0
  1774. package/python3.4.2/lib/python3.4/test/test_email/data/msg_27.txt +15 -0
  1775. package/python3.4.2/lib/python3.4/test/test_email/data/msg_28.txt +25 -0
  1776. package/python3.4.2/lib/python3.4/test/test_email/data/msg_29.txt +22 -0
  1777. package/python3.4.2/lib/python3.4/test/test_email/data/msg_30.txt +23 -0
  1778. package/python3.4.2/lib/python3.4/test/test_email/data/msg_31.txt +15 -0
  1779. package/python3.4.2/lib/python3.4/test/test_email/data/msg_32.txt +14 -0
  1780. package/python3.4.2/lib/python3.4/test/test_email/data/msg_33.txt +29 -0
  1781. package/python3.4.2/lib/python3.4/test/test_email/data/msg_34.txt +19 -0
  1782. package/python3.4.2/lib/python3.4/test/test_email/data/msg_35.txt +4 -0
  1783. package/python3.4.2/lib/python3.4/test/test_email/data/msg_36.txt +40 -0
  1784. package/python3.4.2/lib/python3.4/test/test_email/data/msg_37.txt +22 -0
  1785. package/python3.4.2/lib/python3.4/test/test_email/data/msg_38.txt +101 -0
  1786. package/python3.4.2/lib/python3.4/test/test_email/data/msg_39.txt +83 -0
  1787. package/python3.4.2/lib/python3.4/test/test_email/data/msg_40.txt +10 -0
  1788. package/python3.4.2/lib/python3.4/test/test_email/data/msg_41.txt +8 -0
  1789. package/python3.4.2/lib/python3.4/test/test_email/data/msg_42.txt +20 -0
  1790. package/python3.4.2/lib/python3.4/test/test_email/data/msg_43.txt +217 -0
  1791. package/python3.4.2/lib/python3.4/test/test_email/data/msg_44.txt +33 -0
  1792. package/python3.4.2/lib/python3.4/test/test_email/data/msg_45.txt +33 -0
  1793. package/python3.4.2/lib/python3.4/test/test_email/data/msg_46.txt +23 -0
  1794. package/python3.4.2/lib/python3.4/test/test_email/test__encoded_words.py +192 -0
  1795. package/python3.4.2/lib/python3.4/test/test_email/test__header_value_parser.py +2606 -0
  1796. package/python3.4.2/lib/python3.4/test/test_email/test_asian_codecs.py +82 -0
  1797. package/python3.4.2/lib/python3.4/test/test_email/test_contentmanager.py +796 -0
  1798. package/python3.4.2/lib/python3.4/test/test_email/test_defect_handling.py +320 -0
  1799. package/python3.4.2/lib/python3.4/test/test_email/test_email.py +5289 -0
  1800. package/python3.4.2/lib/python3.4/test/test_email/test_generator.py +199 -0
  1801. package/python3.4.2/lib/python3.4/test/test_email/test_headerregistry.py +1594 -0
  1802. package/python3.4.2/lib/python3.4/test/test_email/test_inversion.py +49 -0
  1803. package/python3.4.2/lib/python3.4/test/test_email/test_message.py +783 -0
  1804. package/python3.4.2/lib/python3.4/test/test_email/test_parser.py +36 -0
  1805. package/python3.4.2/lib/python3.4/test/test_email/test_pickleable.py +74 -0
  1806. package/python3.4.2/lib/python3.4/test/test_email/test_policy.py +332 -0
  1807. package/python3.4.2/lib/python3.4/test/test_email/test_utils.py +140 -0
  1808. package/python3.4.2/lib/python3.4/test/test_email/torture_test.py +136 -0
  1809. package/python3.4.2/lib/python3.4/test/test_ensurepip.py +345 -0
  1810. package/python3.4.2/lib/python3.4/test/test_enum.py +1592 -0
  1811. package/python3.4.2/lib/python3.4/test/test_enumerate.py +272 -0
  1812. package/python3.4.2/lib/python3.4/test/test_eof.py +31 -0
  1813. package/python3.4.2/lib/python3.4/test/test_epoll.py +259 -0
  1814. package/python3.4.2/lib/python3.4/test/test_errno.py +40 -0
  1815. package/python3.4.2/lib/python3.4/test/test_exception_variations.py +180 -0
  1816. package/python3.4.2/lib/python3.4/test/test_exceptions.py +978 -0
  1817. package/python3.4.2/lib/python3.4/test/test_extcall.py +349 -0
  1818. package/python3.4.2/lib/python3.4/test/test_faulthandler.py +623 -0
  1819. package/python3.4.2/lib/python3.4/test/test_fcntl.py +152 -0
  1820. package/python3.4.2/lib/python3.4/test/test_file.py +329 -0
  1821. package/python3.4.2/lib/python3.4/test/test_file_eintr.py +236 -0
  1822. package/python3.4.2/lib/python3.4/test/test_filecmp.py +217 -0
  1823. package/python3.4.2/lib/python3.4/test/test_fileinput.py +891 -0
  1824. package/python3.4.2/lib/python3.4/test/test_fileio.py +480 -0
  1825. package/python3.4.2/lib/python3.4/test/test_finalization.py +522 -0
  1826. package/python3.4.2/lib/python3.4/test/test_float.py +1312 -0
  1827. package/python3.4.2/lib/python3.4/test/test_flufl.py +27 -0
  1828. package/python3.4.2/lib/python3.4/test/test_fnmatch.py +89 -0
  1829. package/python3.4.2/lib/python3.4/test/test_fork1.py +111 -0
  1830. package/python3.4.2/lib/python3.4/test/test_format.py +362 -0
  1831. package/python3.4.2/lib/python3.4/test/test_fractions.py +612 -0
  1832. package/python3.4.2/lib/python3.4/test/test_frame.py +168 -0
  1833. package/python3.4.2/lib/python3.4/test/test_ftplib.py +1080 -0
  1834. package/python3.4.2/lib/python3.4/test/test_funcattrs.py +385 -0
  1835. package/python3.4.2/lib/python3.4/test/test_functools.py +1584 -0
  1836. package/python3.4.2/lib/python3.4/test/test_future.py +125 -0
  1837. package/python3.4.2/lib/python3.4/test/test_future3.py +26 -0
  1838. package/python3.4.2/lib/python3.4/test/test_future4.py +6 -0
  1839. package/python3.4.2/lib/python3.4/test/test_future5.py +21 -0
  1840. package/python3.4.2/lib/python3.4/test/test_gc.py +1013 -0
  1841. package/python3.4.2/lib/python3.4/test/test_gdb.py +870 -0
  1842. package/python3.4.2/lib/python3.4/test/test_generators.py +1940 -0
  1843. package/python3.4.2/lib/python3.4/test/test_genericpath.py +439 -0
  1844. package/python3.4.2/lib/python3.4/test/test_genexps.py +285 -0
  1845. package/python3.4.2/lib/python3.4/test/test_getargs2.py +615 -0
  1846. package/python3.4.2/lib/python3.4/test/test_getopt.py +187 -0
  1847. package/python3.4.2/lib/python3.4/test/test_getpass.py +163 -0
  1848. package/python3.4.2/lib/python3.4/test/test_gettext.py +467 -0
  1849. package/python3.4.2/lib/python3.4/test/test_glob.py +200 -0
  1850. package/python3.4.2/lib/python3.4/test/test_global.py +61 -0
  1851. package/python3.4.2/lib/python3.4/test/test_grammar.py +1024 -0
  1852. package/python3.4.2/lib/python3.4/test/test_grp.py +99 -0
  1853. package/python3.4.2/lib/python3.4/test/test_gzip.py +561 -0
  1854. package/python3.4.2/lib/python3.4/test/test_hash.py +346 -0
  1855. package/python3.4.2/lib/python3.4/test/test_hashlib.py +533 -0
  1856. package/python3.4.2/lib/python3.4/test/test_heapq.py +417 -0
  1857. package/python3.4.2/lib/python3.4/test/test_hmac.py +506 -0
  1858. package/python3.4.2/lib/python3.4/test/test_html.py +104 -0
  1859. package/python3.4.2/lib/python3.4/test/test_htmlparser.py +832 -0
  1860. package/python3.4.2/lib/python3.4/test/test_http_cookiejar.py +1714 -0
  1861. package/python3.4.2/lib/python3.4/test/test_http_cookies.py +243 -0
  1862. package/python3.4.2/lib/python3.4/test/test_httplib.py +1025 -0
  1863. package/python3.4.2/lib/python3.4/test/test_httpservers.py +770 -0
  1864. package/python3.4.2/lib/python3.4/test/test_idle.py +16 -0
  1865. package/python3.4.2/lib/python3.4/test/test_imaplib.py +504 -0
  1866. package/python3.4.2/lib/python3.4/test/test_imghdr.py +131 -0
  1867. package/python3.4.2/lib/python3.4/test/test_imp.py +485 -0
  1868. package/python3.4.2/lib/python3.4/test/test_import.py +1072 -0
  1869. package/python3.4.2/lib/python3.4/test/test_importlib/__init__.py +5 -0
  1870. package/python3.4.2/lib/python3.4/test/test_importlib/__main__.py +4 -0
  1871. package/python3.4.2/lib/python3.4/test/test_importlib/abc.py +94 -0
  1872. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/__init__.py +5 -0
  1873. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/__main__.py +4 -0
  1874. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/test_finder.py +85 -0
  1875. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/test_loader.py +106 -0
  1876. package/python3.4.2/lib/python3.4/test/test_importlib/builtin/util.py +7 -0
  1877. package/python3.4.2/lib/python3.4/test/test_importlib/extension/__init__.py +5 -0
  1878. package/python3.4.2/lib/python3.4/test/test_importlib/extension/__main__.py +4 -0
  1879. package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_case_sensitivity.py +51 -0
  1880. package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_finder.py +44 -0
  1881. package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_loader.py +86 -0
  1882. package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_path_hook.py +32 -0
  1883. package/python3.4.2/lib/python3.4/test/test_importlib/extension/util.py +19 -0
  1884. package/python3.4.2/lib/python3.4/test/test_importlib/frozen/__init__.py +5 -0
  1885. package/python3.4.2/lib/python3.4/test/test_importlib/frozen/__main__.py +4 -0
  1886. package/python3.4.2/lib/python3.4/test/test_importlib/frozen/test_finder.py +80 -0
  1887. package/python3.4.2/lib/python3.4/test/test_importlib/frozen/test_loader.py +222 -0
  1888. package/python3.4.2/lib/python3.4/test/test_importlib/import_/__init__.py +5 -0
  1889. package/python3.4.2/lib/python3.4/test/test_importlib/import_/__main__.py +4 -0
  1890. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test___loader__.py +70 -0
  1891. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test___package__.py +133 -0
  1892. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_api.py +94 -0
  1893. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_caching.py +92 -0
  1894. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_fromlist.py +129 -0
  1895. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_meta_path.py +119 -0
  1896. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_packages.py +110 -0
  1897. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_path.py +144 -0
  1898. package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_relative_imports.py +216 -0
  1899. package/python3.4.2/lib/python3.4/test/test_importlib/import_/util.py +20 -0
  1900. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/both_portions/foo/one.py +1 -0
  1901. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/both_portions/foo/two.py +1 -0
  1902. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/missing_directory.zip +0 -0
  1903. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty +0 -0
  1904. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py +1 -0
  1905. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/nested_portion1.zip +0 -0
  1906. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py +0 -0
  1907. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py +1 -0
  1908. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/portion1/foo/one.py +1 -0
  1909. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/portion2/foo/two.py +1 -0
  1910. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project1/parent/child/one.py +1 -0
  1911. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project2/parent/child/two.py +1 -0
  1912. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project3/parent/child/three.py +1 -0
  1913. package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/top_level_portion1.zip +0 -0
  1914. package/python3.4.2/lib/python3.4/test/test_importlib/regrtest.py +17 -0
  1915. package/python3.4.2/lib/python3.4/test/test_importlib/source/__init__.py +5 -0
  1916. package/python3.4.2/lib/python3.4/test/test_importlib/source/__main__.py +4 -0
  1917. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_case_sensitivity.py +83 -0
  1918. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_file_loader.py +588 -0
  1919. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_finder.py +232 -0
  1920. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_path_hook.py +30 -0
  1921. package/python3.4.2/lib/python3.4/test/test_importlib/source/test_source_encoding.py +165 -0
  1922. package/python3.4.2/lib/python3.4/test/test_importlib/source/util.py +96 -0
  1923. package/python3.4.2/lib/python3.4/test/test_importlib/test_abc.py +951 -0
  1924. package/python3.4.2/lib/python3.4/test/test_importlib/test_api.py +437 -0
  1925. package/python3.4.2/lib/python3.4/test/test_importlib/test_locks.py +156 -0
  1926. package/python3.4.2/lib/python3.4/test/test_importlib/test_namespace_pkgs.py +293 -0
  1927. package/python3.4.2/lib/python3.4/test/test_importlib/test_spec.py +957 -0
  1928. package/python3.4.2/lib/python3.4/test/test_importlib/test_util.py +592 -0
  1929. package/python3.4.2/lib/python3.4/test/test_importlib/test_windows.py +29 -0
  1930. package/python3.4.2/lib/python3.4/test/test_importlib/util.py +225 -0
  1931. package/python3.4.2/lib/python3.4/test/test_index.py +275 -0
  1932. package/python3.4.2/lib/python3.4/test/test_inspect.py +3103 -0
  1933. package/python3.4.2/lib/python3.4/test/test_int.py +458 -0
  1934. package/python3.4.2/lib/python3.4/test/test_int_literal.py +147 -0
  1935. package/python3.4.2/lib/python3.4/test/test_io.py +3481 -0
  1936. package/python3.4.2/lib/python3.4/test/test_ioctl.py +91 -0
  1937. package/python3.4.2/lib/python3.4/test/test_ipaddress.py +1693 -0
  1938. package/python3.4.2/lib/python3.4/test/test_isinstance.py +289 -0
  1939. package/python3.4.2/lib/python3.4/test/test_iter.py +927 -0
  1940. package/python3.4.2/lib/python3.4/test/test_iterlen.py +229 -0
  1941. package/python3.4.2/lib/python3.4/test/test_itertools.py +2142 -0
  1942. package/python3.4.2/lib/python3.4/test/test_json/__init__.py +53 -0
  1943. package/python3.4.2/lib/python3.4/test/test_json/__main__.py +4 -0
  1944. package/python3.4.2/lib/python3.4/test/test_json/test_decode.py +99 -0
  1945. package/python3.4.2/lib/python3.4/test/test_json/test_default.py +12 -0
  1946. package/python3.4.2/lib/python3.4/test/test_json/test_dump.py +49 -0
  1947. package/python3.4.2/lib/python3.4/test/test_json/test_encode_basestring_ascii.py +44 -0
  1948. package/python3.4.2/lib/python3.4/test/test_json/test_enum.py +120 -0
  1949. package/python3.4.2/lib/python3.4/test/test_json/test_fail.py +194 -0
  1950. package/python3.4.2/lib/python3.4/test/test_json/test_float.py +33 -0
  1951. package/python3.4.2/lib/python3.4/test/test_json/test_indent.py +67 -0
  1952. package/python3.4.2/lib/python3.4/test/test_json/test_pass1.py +75 -0
  1953. package/python3.4.2/lib/python3.4/test/test_json/test_pass2.py +18 -0
  1954. package/python3.4.2/lib/python3.4/test/test_json/test_pass3.py +24 -0
  1955. package/python3.4.2/lib/python3.4/test/test_json/test_recursion.py +100 -0
  1956. package/python3.4.2/lib/python3.4/test/test_json/test_scanstring.py +141 -0
  1957. package/python3.4.2/lib/python3.4/test/test_json/test_separators.py +44 -0
  1958. package/python3.4.2/lib/python3.4/test/test_json/test_speedups.py +24 -0
  1959. package/python3.4.2/lib/python3.4/test/test_json/test_tool.py +69 -0
  1960. package/python3.4.2/lib/python3.4/test/test_json/test_unicode.py +75 -0
  1961. package/python3.4.2/lib/python3.4/test/test_keyword.py +138 -0
  1962. package/python3.4.2/lib/python3.4/test/test_keywordonlyarg.py +193 -0
  1963. package/python3.4.2/lib/python3.4/test/test_kqueue.py +219 -0
  1964. package/python3.4.2/lib/python3.4/test/test_largefile.py +180 -0
  1965. package/python3.4.2/lib/python3.4/test/test_lib2to3.py +22 -0
  1966. package/python3.4.2/lib/python3.4/test/test_linecache.py +133 -0
  1967. package/python3.4.2/lib/python3.4/test/test_list.py +125 -0
  1968. package/python3.4.2/lib/python3.4/test/test_listcomps.py +148 -0
  1969. package/python3.4.2/lib/python3.4/test/test_locale.py +528 -0
  1970. package/python3.4.2/lib/python3.4/test/test_logging.py +4179 -0
  1971. package/python3.4.2/lib/python3.4/test/test_long.py +1250 -0
  1972. package/python3.4.2/lib/python3.4/test/test_longexp.py +14 -0
  1973. package/python3.4.2/lib/python3.4/test/test_lzma.py +1592 -0
  1974. package/python3.4.2/lib/python3.4/test/test_macpath.py +123 -0
  1975. package/python3.4.2/lib/python3.4/test/test_macurl2path.py +31 -0
  1976. package/python3.4.2/lib/python3.4/test/test_mailbox.py +2287 -0
  1977. package/python3.4.2/lib/python3.4/test/test_mailcap.py +221 -0
  1978. package/python3.4.2/lib/python3.4/test/test_marshal.py +451 -0
  1979. package/python3.4.2/lib/python3.4/test/test_math.py +1107 -0
  1980. package/python3.4.2/lib/python3.4/test/test_memoryio.py +784 -0
  1981. package/python3.4.2/lib/python3.4/test/test_memoryview.py +478 -0
  1982. package/python3.4.2/lib/python3.4/test/test_metaclass.py +265 -0
  1983. package/python3.4.2/lib/python3.4/test/test_mimetypes.py +111 -0
  1984. package/python3.4.2/lib/python3.4/test/test_minidom.py +1545 -0
  1985. package/python3.4.2/lib/python3.4/test/test_mmap.py +774 -0
  1986. package/python3.4.2/lib/python3.4/test/test_module.py +222 -0
  1987. package/python3.4.2/lib/python3.4/test/test_modulefinder.py +324 -0
  1988. package/python3.4.2/lib/python3.4/test/test_msilib.py +46 -0
  1989. package/python3.4.2/lib/python3.4/test/test_multibytecodec.py +263 -0
  1990. package/python3.4.2/lib/python3.4/test/test_multiprocessing_fork.py +7 -0
  1991. package/python3.4.2/lib/python3.4/test/test_multiprocessing_forkserver.py +7 -0
  1992. package/python3.4.2/lib/python3.4/test/test_multiprocessing_main_handling.py +289 -0
  1993. package/python3.4.2/lib/python3.4/test/test_multiprocessing_spawn.py +7 -0
  1994. package/python3.4.2/lib/python3.4/test/test_netrc.py +130 -0
  1995. package/python3.4.2/lib/python3.4/test/test_nis.py +43 -0
  1996. package/python3.4.2/lib/python3.4/test/test_nntplib.py +1429 -0
  1997. package/python3.4.2/lib/python3.4/test/test_normalization.py +104 -0
  1998. package/python3.4.2/lib/python3.4/test/test_ntpath.py +385 -0
  1999. package/python3.4.2/lib/python3.4/test/test_numeric_tower.py +206 -0
  2000. package/python3.4.2/lib/python3.4/test/test_opcodes.py +112 -0
  2001. package/python3.4.2/lib/python3.4/test/test_openpty.py +25 -0
  2002. package/python3.4.2/lib/python3.4/test/test_operator.py +484 -0
  2003. package/python3.4.2/lib/python3.4/test/test_optparse.py +1657 -0
  2004. package/python3.4.2/lib/python3.4/test/test_os.py +2550 -0
  2005. package/python3.4.2/lib/python3.4/test/test_ossaudiodev.py +202 -0
  2006. package/python3.4.2/lib/python3.4/test/test_osx_env.py +34 -0
  2007. package/python3.4.2/lib/python3.4/test/test_parser.py +745 -0
  2008. package/python3.4.2/lib/python3.4/test/test_pathlib.py +1884 -0
  2009. package/python3.4.2/lib/python3.4/test/test_pdb.py +1052 -0
  2010. package/python3.4.2/lib/python3.4/test/test_peepholer.py +339 -0
  2011. package/python3.4.2/lib/python3.4/test/test_pep247.py +70 -0
  2012. package/python3.4.2/lib/python3.4/test/test_pep277.py +201 -0
  2013. package/python3.4.2/lib/python3.4/test/test_pep292.py +247 -0
  2014. package/python3.4.2/lib/python3.4/test/test_pep3120.py +47 -0
  2015. package/python3.4.2/lib/python3.4/test/test_pep3131.py +35 -0
  2016. package/python3.4.2/lib/python3.4/test/test_pep3151.py +209 -0
  2017. package/python3.4.2/lib/python3.4/test/test_pep352.py +184 -0
  2018. package/python3.4.2/lib/python3.4/test/test_pep380.py +1023 -0
  2019. package/python3.4.2/lib/python3.4/test/test_pickle.py +156 -0
  2020. package/python3.4.2/lib/python3.4/test/test_pickletools.py +25 -0
  2021. package/python3.4.2/lib/python3.4/test/test_pipes.py +196 -0
  2022. package/python3.4.2/lib/python3.4/test/test_pkg.py +299 -0
  2023. package/python3.4.2/lib/python3.4/test/test_pkgimport.py +84 -0
  2024. package/python3.4.2/lib/python3.4/test/test_pkgutil.py +410 -0
  2025. package/python3.4.2/lib/python3.4/test/test_platform.py +320 -0
  2026. package/python3.4.2/lib/python3.4/test/test_plistlib.py +526 -0
  2027. package/python3.4.2/lib/python3.4/test/test_poll.py +215 -0
  2028. package/python3.4.2/lib/python3.4/test/test_popen.py +64 -0
  2029. package/python3.4.2/lib/python3.4/test/test_poplib.py +507 -0
  2030. package/python3.4.2/lib/python3.4/test/test_posix.py +1183 -0
  2031. package/python3.4.2/lib/python3.4/test/test_posixpath.py +544 -0
  2032. package/python3.4.2/lib/python3.4/test/test_pow.py +129 -0
  2033. package/python3.4.2/lib/python3.4/test/test_pprint.py +602 -0
  2034. package/python3.4.2/lib/python3.4/test/test_print.py +132 -0
  2035. package/python3.4.2/lib/python3.4/test/test_profile.py +187 -0
  2036. package/python3.4.2/lib/python3.4/test/test_property.py +254 -0
  2037. package/python3.4.2/lib/python3.4/test/test_pstats.py +45 -0
  2038. package/python3.4.2/lib/python3.4/test/test_pty.py +302 -0
  2039. package/python3.4.2/lib/python3.4/test/test_pulldom.py +347 -0
  2040. package/python3.4.2/lib/python3.4/test/test_pwd.py +114 -0
  2041. package/python3.4.2/lib/python3.4/test/test_py_compile.py +103 -0
  2042. package/python3.4.2/lib/python3.4/test/test_pyclbr.py +181 -0
  2043. package/python3.4.2/lib/python3.4/test/test_pydoc.py +1003 -0
  2044. package/python3.4.2/lib/python3.4/test/test_pyexpat.py +708 -0
  2045. package/python3.4.2/lib/python3.4/test/test_queue.py +363 -0
  2046. package/python3.4.2/lib/python3.4/test/test_quopri.py +208 -0
  2047. package/python3.4.2/lib/python3.4/test/test_raise.py +422 -0
  2048. package/python3.4.2/lib/python3.4/test/test_random.py +759 -0
  2049. package/python3.4.2/lib/python3.4/test/test_range.py +652 -0
  2050. package/python3.4.2/lib/python3.4/test/test_re.py +1451 -0
  2051. package/python3.4.2/lib/python3.4/test/test_readline.py +60 -0
  2052. package/python3.4.2/lib/python3.4/test/test_regrtest.py +275 -0
  2053. package/python3.4.2/lib/python3.4/test/test_reprlib.py +383 -0
  2054. package/python3.4.2/lib/python3.4/test/test_resource.py +166 -0
  2055. package/python3.4.2/lib/python3.4/test/test_richcmp.py +333 -0
  2056. package/python3.4.2/lib/python3.4/test/test_rlcompleter.py +73 -0
  2057. package/python3.4.2/lib/python3.4/test/test_robotparser.py +320 -0
  2058. package/python3.4.2/lib/python3.4/test/test_runpy.py +691 -0
  2059. package/python3.4.2/lib/python3.4/test/test_sax.py +1007 -0
  2060. package/python3.4.2/lib/python3.4/test/test_sched.py +199 -0
  2061. package/python3.4.2/lib/python3.4/test/test_scope.py +764 -0
  2062. package/python3.4.2/lib/python3.4/test/test_select.py +83 -0
  2063. package/python3.4.2/lib/python3.4/test/test_selectors.py +453 -0
  2064. package/python3.4.2/lib/python3.4/test/test_set.py +1839 -0
  2065. package/python3.4.2/lib/python3.4/test/test_setcomps.py +151 -0
  2066. package/python3.4.2/lib/python3.4/test/test_shelve.py +224 -0
  2067. package/python3.4.2/lib/python3.4/test/test_shlex.py +202 -0
  2068. package/python3.4.2/lib/python3.4/test/test_shutil.py +1766 -0
  2069. package/python3.4.2/lib/python3.4/test/test_signal.py +940 -0
  2070. package/python3.4.2/lib/python3.4/test/test_site.py +468 -0
  2071. package/python3.4.2/lib/python3.4/test/test_slice.py +247 -0
  2072. package/python3.4.2/lib/python3.4/test/test_smtpd.py +557 -0
  2073. package/python3.4.2/lib/python3.4/test/test_smtplib.py +950 -0
  2074. package/python3.4.2/lib/python3.4/test/test_smtpnet.py +86 -0
  2075. package/python3.4.2/lib/python3.4/test/test_sndhdr.py +23 -0
  2076. package/python3.4.2/lib/python3.4/test/test_socket.py +5163 -0
  2077. package/python3.4.2/lib/python3.4/test/test_socketserver.py +314 -0
  2078. package/python3.4.2/lib/python3.4/test/test_sort.py +285 -0
  2079. package/python3.4.2/lib/python3.4/test/test_source_encoding.py +145 -0
  2080. package/python3.4.2/lib/python3.4/test/test_spwd.py +60 -0
  2081. package/python3.4.2/lib/python3.4/test/test_sqlite.py +24 -0
  2082. package/python3.4.2/lib/python3.4/test/test_ssl.py +2908 -0
  2083. package/python3.4.2/lib/python3.4/test/test_startfile.py +37 -0
  2084. package/python3.4.2/lib/python3.4/test/test_stat.py +202 -0
  2085. package/python3.4.2/lib/python3.4/test/test_statistics.py +1574 -0
  2086. package/python3.4.2/lib/python3.4/test/test_strftime.py +204 -0
  2087. package/python3.4.2/lib/python3.4/test/test_string.py +174 -0
  2088. package/python3.4.2/lib/python3.4/test/test_stringprep.py +96 -0
  2089. package/python3.4.2/lib/python3.4/test/test_strlit.py +206 -0
  2090. package/python3.4.2/lib/python3.4/test/test_strptime.py +577 -0
  2091. package/python3.4.2/lib/python3.4/test/test_strtod.py +436 -0
  2092. package/python3.4.2/lib/python3.4/test/test_struct.py +667 -0
  2093. package/python3.4.2/lib/python3.4/test/test_structmembers.py +147 -0
  2094. package/python3.4.2/lib/python3.4/test/test_structseq.py +130 -0
  2095. package/python3.4.2/lib/python3.4/test/test_subprocess.py +2474 -0
  2096. package/python3.4.2/lib/python3.4/test/test_sunau.py +122 -0
  2097. package/python3.4.2/lib/python3.4/test/test_sundry.py +59 -0
  2098. package/python3.4.2/lib/python3.4/test/test_super.py +181 -0
  2099. package/python3.4.2/lib/python3.4/test/test_support.py +315 -0
  2100. package/python3.4.2/lib/python3.4/test/test_symtable.py +176 -0
  2101. package/python3.4.2/lib/python3.4/test/test_syntax.py +593 -0
  2102. package/python3.4.2/lib/python3.4/test/test_sys.py +1000 -0
  2103. package/python3.4.2/lib/python3.4/test/test_sys_setprofile.py +386 -0
  2104. package/python3.4.2/lib/python3.4/test/test_sys_settrace.py +834 -0
  2105. package/python3.4.2/lib/python3.4/test/test_sysconfig.py +423 -0
  2106. package/python3.4.2/lib/python3.4/test/test_syslog.py +43 -0
  2107. package/python3.4.2/lib/python3.4/test/test_tarfile.py +2180 -0
  2108. package/python3.4.2/lib/python3.4/test/test_tcl.py +642 -0
  2109. package/python3.4.2/lib/python3.4/test/test_telnetlib.py +401 -0
  2110. package/python3.4.2/lib/python3.4/test/test_tempfile.py +1248 -0
  2111. package/python3.4.2/lib/python3.4/test/test_textwrap.py +929 -0
  2112. package/python3.4.2/lib/python3.4/test/test_thread.py +260 -0
  2113. package/python3.4.2/lib/python3.4/test/test_threaded_import.py +244 -0
  2114. package/python3.4.2/lib/python3.4/test/test_threadedtempfile.py +78 -0
  2115. package/python3.4.2/lib/python3.4/test/test_threading.py +1021 -0
  2116. package/python3.4.2/lib/python3.4/test/test_threading_local.py +225 -0
  2117. package/python3.4.2/lib/python3.4/test/test_threadsignals.py +227 -0
  2118. package/python3.4.2/lib/python3.4/test/test_time.py +763 -0
  2119. package/python3.4.2/lib/python3.4/test/test_timeit.py +306 -0
  2120. package/python3.4.2/lib/python3.4/test/test_timeout.py +303 -0
  2121. package/python3.4.2/lib/python3.4/test/test_tk.py +18 -0
  2122. package/python3.4.2/lib/python3.4/test/test_tokenize.py +1233 -0
  2123. package/python3.4.2/lib/python3.4/test/test_trace.py +415 -0
  2124. package/python3.4.2/lib/python3.4/test/test_traceback.py +451 -0
  2125. package/python3.4.2/lib/python3.4/test/test_tracemalloc.py +826 -0
  2126. package/python3.4.2/lib/python3.4/test/test_ttk_guionly.py +37 -0
  2127. package/python3.4.2/lib/python3.4/test/test_ttk_textonly.py +17 -0
  2128. package/python3.4.2/lib/python3.4/test/test_tuple.py +208 -0
  2129. package/python3.4.2/lib/python3.4/test/test_typechecks.py +76 -0
  2130. package/python3.4.2/lib/python3.4/test/test_types.py +1178 -0
  2131. package/python3.4.2/lib/python3.4/test/test_ucn.py +240 -0
  2132. package/python3.4.2/lib/python3.4/test/test_unary.py +58 -0
  2133. package/python3.4.2/lib/python3.4/test/test_unicode.py +2596 -0
  2134. package/python3.4.2/lib/python3.4/test/test_unicode_file.py +144 -0
  2135. package/python3.4.2/lib/python3.4/test/test_unicodedata.py +323 -0
  2136. package/python3.4.2/lib/python3.4/test/test_unittest.py +16 -0
  2137. package/python3.4.2/lib/python3.4/test/test_univnewlines.py +123 -0
  2138. package/python3.4.2/lib/python3.4/test/test_unpack.py +130 -0
  2139. package/python3.4.2/lib/python3.4/test/test_unpack_ex.py +174 -0
  2140. package/python3.4.2/lib/python3.4/test/test_urllib.py +1486 -0
  2141. package/python3.4.2/lib/python3.4/test/test_urllib2.py +1646 -0
  2142. package/python3.4.2/lib/python3.4/test/test_urllib2_localnet.py +690 -0
  2143. package/python3.4.2/lib/python3.4/test/test_urllib2net.py +342 -0
  2144. package/python3.4.2/lib/python3.4/test/test_urllib_response.py +59 -0
  2145. package/python3.4.2/lib/python3.4/test/test_urllibnet.py +212 -0
  2146. package/python3.4.2/lib/python3.4/test/test_urlparse.py +879 -0
  2147. package/python3.4.2/lib/python3.4/test/test_userdict.py +199 -0
  2148. package/python3.4.2/lib/python3.4/test/test_userlist.py +65 -0
  2149. package/python3.4.2/lib/python3.4/test/test_userstring.py +47 -0
  2150. package/python3.4.2/lib/python3.4/test/test_uu.py +239 -0
  2151. package/python3.4.2/lib/python3.4/test/test_uuid.py +498 -0
  2152. package/python3.4.2/lib/python3.4/test/test_venv.py +406 -0
  2153. package/python3.4.2/lib/python3.4/test/test_wait3.py +38 -0
  2154. package/python3.4.2/lib/python3.4/test/test_wait4.py +38 -0
  2155. package/python3.4.2/lib/python3.4/test/test_warnings.py +873 -0
  2156. package/python3.4.2/lib/python3.4/test/test_wave.py +107 -0
  2157. package/python3.4.2/lib/python3.4/test/test_weakref.py +1801 -0
  2158. package/python3.4.2/lib/python3.4/test/test_weakset.py +450 -0
  2159. package/python3.4.2/lib/python3.4/test/test_webbrowser.py +192 -0
  2160. package/python3.4.2/lib/python3.4/test/test_winreg.py +485 -0
  2161. package/python3.4.2/lib/python3.4/test/test_winsound.py +253 -0
  2162. package/python3.4.2/lib/python3.4/test/test_with.py +750 -0
  2163. package/python3.4.2/lib/python3.4/test/test_wsgiref.py +640 -0
  2164. package/python3.4.2/lib/python3.4/test/test_xdrlib.py +58 -0
  2165. package/python3.4.2/lib/python3.4/test/test_xml_dom_minicompat.py +101 -0
  2166. package/python3.4.2/lib/python3.4/test/test_xml_etree.py +2587 -0
  2167. package/python3.4.2/lib/python3.4/test/test_xml_etree_c.py +94 -0
  2168. package/python3.4.2/lib/python3.4/test/test_xmlrpc.py +1114 -0
  2169. package/python3.4.2/lib/python3.4/test/test_xmlrpc_net.py +33 -0
  2170. package/python3.4.2/lib/python3.4/test/test_zipfile.py +1783 -0
  2171. package/python3.4.2/lib/python3.4/test/test_zipfile64.py +118 -0
  2172. package/python3.4.2/lib/python3.4/test/test_zipimport.py +507 -0
  2173. package/python3.4.2/lib/python3.4/test/test_zipimport_support.py +246 -0
  2174. package/python3.4.2/lib/python3.4/test/test_zlib.py +725 -0
  2175. package/python3.4.2/lib/python3.4/test/testcodec.py +48 -0
  2176. package/python3.4.2/lib/python3.4/test/testtar.tar +0 -0
  2177. package/python3.4.2/lib/python3.4/test/tf_inherit_check.py +25 -0
  2178. package/python3.4.2/lib/python3.4/test/threaded_import_hangers.py +45 -0
  2179. package/python3.4.2/lib/python3.4/test/time_hashlib.py +87 -0
  2180. package/python3.4.2/lib/python3.4/test/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt +13 -0
  2181. package/python3.4.2/lib/python3.4/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt +11 -0
  2182. package/python3.4.2/lib/python3.4/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt +13 -0
  2183. package/python3.4.2/lib/python3.4/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt +12 -0
  2184. package/python3.4.2/lib/python3.4/test/tokenize_tests.txt +189 -0
  2185. package/python3.4.2/lib/python3.4/test/tracedmodules/__init__.py +4 -0
  2186. package/python3.4.2/lib/python3.4/test/tracedmodules/testmod.py +9 -0
  2187. package/python3.4.2/lib/python3.4/test/warning_tests.py +9 -0
  2188. package/python3.4.2/lib/python3.4/test/win_console_handler.py +49 -0
  2189. package/python3.4.2/lib/python3.4/test/xmltestdata/simple-ns.xml +7 -0
  2190. package/python3.4.2/lib/python3.4/test/xmltestdata/simple.xml +6 -0
  2191. package/python3.4.2/lib/python3.4/test/xmltestdata/test.xml +115 -0
  2192. package/python3.4.2/lib/python3.4/test/xmltestdata/test.xml.out +115 -0
  2193. package/python3.4.2/lib/python3.4/test/xmltests.py +21 -0
  2194. package/python3.4.2/lib/python3.4/test/zip_cp437_header.zip +0 -0
  2195. package/python3.4.2/lib/python3.4/test/zipdir.zip +0 -0
  2196. package/python3.4.2/lib/python3.4/textwrap.py +470 -0
  2197. package/python3.4.2/lib/python3.4/this.py +28 -0
  2198. package/python3.4.2/lib/python3.4/threading.py +1359 -0
  2199. package/python3.4.2/lib/python3.4/timeit.py +322 -0
  2200. package/python3.4.2/lib/python3.4/tkinter/__init__.py +3898 -0
  2201. package/python3.4.2/lib/python3.4/tkinter/__main__.py +7 -0
  2202. package/python3.4.2/lib/python3.4/tkinter/_fix.py +78 -0
  2203. package/python3.4.2/lib/python3.4/tkinter/colorchooser.py +72 -0
  2204. package/python3.4.2/lib/python3.4/tkinter/commondialog.py +60 -0
  2205. package/python3.4.2/lib/python3.4/tkinter/constants.py +110 -0
  2206. package/python3.4.2/lib/python3.4/tkinter/dialog.py +49 -0
  2207. package/python3.4.2/lib/python3.4/tkinter/dnd.py +321 -0
  2208. package/python3.4.2/lib/python3.4/tkinter/filedialog.py +479 -0
  2209. package/python3.4.2/lib/python3.4/tkinter/font.py +234 -0
  2210. package/python3.4.2/lib/python3.4/tkinter/messagebox.py +134 -0
  2211. package/python3.4.2/lib/python3.4/tkinter/scrolledtext.py +54 -0
  2212. package/python3.4.2/lib/python3.4/tkinter/simpledialog.py +423 -0
  2213. package/python3.4.2/lib/python3.4/tkinter/test/README +14 -0
  2214. package/python3.4.2/lib/python3.4/tkinter/test/__init__.py +0 -0
  2215. package/python3.4.2/lib/python3.4/tkinter/test/runtktests.py +71 -0
  2216. package/python3.4.2/lib/python3.4/tkinter/test/support.py +104 -0
  2217. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/__init__.py +0 -0
  2218. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_font.py +27 -0
  2219. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_geometry_managers.py +900 -0
  2220. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_images.py +327 -0
  2221. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_loadtk.py +46 -0
  2222. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_misc.py +42 -0
  2223. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_text.py +47 -0
  2224. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_variables.py +186 -0
  2225. package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_widgets.py +1193 -0
  2226. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/__init__.py +0 -0
  2227. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_extensions.py +291 -0
  2228. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_functions.py +462 -0
  2229. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_style.py +92 -0
  2230. package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_widgets.py +1598 -0
  2231. package/python3.4.2/lib/python3.4/tkinter/test/widget_tests.py +521 -0
  2232. package/python3.4.2/lib/python3.4/tkinter/tix.py +1944 -0
  2233. package/python3.4.2/lib/python3.4/tkinter/ttk.py +1616 -0
  2234. package/python3.4.2/lib/python3.4/token.py +140 -0
  2235. package/python3.4.2/lib/python3.4/tokenize.py +691 -0
  2236. package/python3.4.2/lib/python3.4/trace.py +858 -0
  2237. package/python3.4.2/lib/python3.4/traceback.py +313 -0
  2238. package/python3.4.2/lib/python3.4/tracemalloc.py +487 -0
  2239. package/python3.4.2/lib/python3.4/tty.py +36 -0
  2240. package/python3.4.2/lib/python3.4/turtle.py +4140 -0
  2241. package/python3.4.2/lib/python3.4/turtledemo/__init__.py +14 -0
  2242. package/python3.4.2/lib/python3.4/turtledemo/__main__.py +380 -0
  2243. package/python3.4.2/lib/python3.4/turtledemo/bytedesign.py +162 -0
  2244. package/python3.4.2/lib/python3.4/turtledemo/chaos.py +59 -0
  2245. package/python3.4.2/lib/python3.4/turtledemo/clock.py +132 -0
  2246. package/python3.4.2/lib/python3.4/turtledemo/colormixer.py +58 -0
  2247. package/python3.4.2/lib/python3.4/turtledemo/forest.py +108 -0
  2248. package/python3.4.2/lib/python3.4/turtledemo/fractalcurves.py +138 -0
  2249. package/python3.4.2/lib/python3.4/turtledemo/lindenmayer.py +119 -0
  2250. package/python3.4.2/lib/python3.4/turtledemo/minimal_hanoi.py +79 -0
  2251. package/python3.4.2/lib/python3.4/turtledemo/nim.py +226 -0
  2252. package/python3.4.2/lib/python3.4/turtledemo/paint.py +54 -0
  2253. package/python3.4.2/lib/python3.4/turtledemo/peace.py +61 -0
  2254. package/python3.4.2/lib/python3.4/turtledemo/penrose.py +181 -0
  2255. package/python3.4.2/lib/python3.4/turtledemo/planet_and_moon.py +112 -0
  2256. package/python3.4.2/lib/python3.4/turtledemo/round_dance.py +86 -0
  2257. package/python3.4.2/lib/python3.4/turtledemo/tree.py +63 -0
  2258. package/python3.4.2/lib/python3.4/turtledemo/turtle.cfg +10 -0
  2259. package/python3.4.2/lib/python3.4/turtledemo/two_canvases.py +54 -0
  2260. package/python3.4.2/lib/python3.4/turtledemo/wikipedia.py +65 -0
  2261. package/python3.4.2/lib/python3.4/turtledemo/yinyang.py +49 -0
  2262. package/python3.4.2/lib/python3.4/types.py +158 -0
  2263. package/python3.4.2/lib/python3.4/unittest/__init__.py +69 -0
  2264. package/python3.4.2/lib/python3.4/unittest/__main__.py +18 -0
  2265. package/python3.4.2/lib/python3.4/unittest/case.py +1400 -0
  2266. package/python3.4.2/lib/python3.4/unittest/loader.py +379 -0
  2267. package/python3.4.2/lib/python3.4/unittest/main.py +248 -0
  2268. package/python3.4.2/lib/python3.4/unittest/mock.py +2330 -0
  2269. package/python3.4.2/lib/python3.4/unittest/result.py +212 -0
  2270. package/python3.4.2/lib/python3.4/unittest/runner.py +213 -0
  2271. package/python3.4.2/lib/python3.4/unittest/signals.py +71 -0
  2272. package/python3.4.2/lib/python3.4/unittest/suite.py +324 -0
  2273. package/python3.4.2/lib/python3.4/unittest/test/__init__.py +22 -0
  2274. package/python3.4.2/lib/python3.4/unittest/test/__main__.py +18 -0
  2275. package/python3.4.2/lib/python3.4/unittest/test/_test_warnings.py +73 -0
  2276. package/python3.4.2/lib/python3.4/unittest/test/dummy.py +1 -0
  2277. package/python3.4.2/lib/python3.4/unittest/test/support.py +142 -0
  2278. package/python3.4.2/lib/python3.4/unittest/test/test_assertions.py +398 -0
  2279. package/python3.4.2/lib/python3.4/unittest/test/test_break.py +288 -0
  2280. package/python3.4.2/lib/python3.4/unittest/test/test_case.py +1574 -0
  2281. package/python3.4.2/lib/python3.4/unittest/test/test_discovery.py +527 -0
  2282. package/python3.4.2/lib/python3.4/unittest/test/test_functiontestcase.py +148 -0
  2283. package/python3.4.2/lib/python3.4/unittest/test/test_loader.py +1312 -0
  2284. package/python3.4.2/lib/python3.4/unittest/test/test_program.py +396 -0
  2285. package/python3.4.2/lib/python3.4/unittest/test/test_result.py +660 -0
  2286. package/python3.4.2/lib/python3.4/unittest/test/test_runner.py +346 -0
  2287. package/python3.4.2/lib/python3.4/unittest/test/test_setups.py +506 -0
  2288. package/python3.4.2/lib/python3.4/unittest/test/test_skipping.py +227 -0
  2289. package/python3.4.2/lib/python3.4/unittest/test/test_suite.py +447 -0
  2290. package/python3.4.2/lib/python3.4/unittest/test/testmock/__init__.py +17 -0
  2291. package/python3.4.2/lib/python3.4/unittest/test/testmock/__main__.py +18 -0
  2292. package/python3.4.2/lib/python3.4/unittest/test/testmock/support.py +23 -0
  2293. package/python3.4.2/lib/python3.4/unittest/test/testmock/testcallable.py +151 -0
  2294. package/python3.4.2/lib/python3.4/unittest/test/testmock/testhelpers.py +908 -0
  2295. package/python3.4.2/lib/python3.4/unittest/test/testmock/testmagicmethods.py +428 -0
  2296. package/python3.4.2/lib/python3.4/unittest/test/testmock/testmock.py +1412 -0
  2297. package/python3.4.2/lib/python3.4/unittest/test/testmock/testpatch.py +1801 -0
  2298. package/python3.4.2/lib/python3.4/unittest/test/testmock/testsentinel.py +28 -0
  2299. package/python3.4.2/lib/python3.4/unittest/test/testmock/testwith.py +259 -0
  2300. package/python3.4.2/lib/python3.4/unittest/util.py +177 -0
  2301. package/python3.4.2/lib/python3.4/urllib/__init__.py +0 -0
  2302. package/python3.4.2/lib/python3.4/urllib/error.py +76 -0
  2303. package/python3.4.2/lib/python3.4/urllib/parse.py +973 -0
  2304. package/python3.4.2/lib/python3.4/urllib/request.py +2559 -0
  2305. package/python3.4.2/lib/python3.4/urllib/response.py +76 -0
  2306. package/python3.4.2/lib/python3.4/urllib/robotparser.py +212 -0
  2307. package/python3.4.2/lib/python3.4/uu.py +199 -0
  2308. package/python3.4.2/lib/python3.4/uuid.py +591 -0
  2309. package/python3.4.2/lib/python3.4/venv/__init__.py +449 -0
  2310. package/python3.4.2/lib/python3.4/venv/__main__.py +10 -0
  2311. package/python3.4.2/lib/python3.4/venv/scripts/posix/activate +76 -0
  2312. package/python3.4.2/lib/python3.4/venv/scripts/posix/activate.csh +37 -0
  2313. package/python3.4.2/lib/python3.4/venv/scripts/posix/activate.fish +74 -0
  2314. package/python3.4.2/lib/python3.4/warnings.py +407 -0
  2315. package/python3.4.2/lib/python3.4/wave.py +503 -0
  2316. package/python3.4.2/lib/python3.4/weakref.py +577 -0
  2317. package/python3.4.2/lib/python3.4/webbrowser.py +651 -0
  2318. package/python3.4.2/lib/python3.4/wsgiref/__init__.py +23 -0
  2319. package/python3.4.2/lib/python3.4/wsgiref/handlers.py +547 -0
  2320. package/python3.4.2/lib/python3.4/wsgiref/headers.py +184 -0
  2321. package/python3.4.2/lib/python3.4/wsgiref/simple_server.py +165 -0
  2322. package/python3.4.2/lib/python3.4/wsgiref/util.py +165 -0
  2323. package/python3.4.2/lib/python3.4/wsgiref/validate.py +443 -0
  2324. package/python3.4.2/lib/python3.4/xdrlib.py +224 -0
  2325. package/python3.4.2/lib/python3.4/xml/__init__.py +20 -0
  2326. package/python3.4.2/lib/python3.4/xml/dom/NodeFilter.py +27 -0
  2327. package/python3.4.2/lib/python3.4/xml/dom/__init__.py +140 -0
  2328. package/python3.4.2/lib/python3.4/xml/dom/domreg.py +97 -0
  2329. package/python3.4.2/lib/python3.4/xml/dom/expatbuilder.py +965 -0
  2330. package/python3.4.2/lib/python3.4/xml/dom/minicompat.py +109 -0
  2331. package/python3.4.2/lib/python3.4/xml/dom/minidom.py +1983 -0
  2332. package/python3.4.2/lib/python3.4/xml/dom/pulldom.py +342 -0
  2333. package/python3.4.2/lib/python3.4/xml/dom/xmlbuilder.py +386 -0
  2334. package/python3.4.2/lib/python3.4/xml/etree/ElementInclude.py +143 -0
  2335. package/python3.4.2/lib/python3.4/xml/etree/ElementPath.py +308 -0
  2336. package/python3.4.2/lib/python3.4/xml/etree/ElementTree.py +1667 -0
  2337. package/python3.4.2/lib/python3.4/xml/etree/__init__.py +33 -0
  2338. package/python3.4.2/lib/python3.4/xml/etree/cElementTree.py +3 -0
  2339. package/python3.4.2/lib/python3.4/xml/parsers/__init__.py +8 -0
  2340. package/python3.4.2/lib/python3.4/xml/parsers/expat.py +8 -0
  2341. package/python3.4.2/lib/python3.4/xml/sax/__init__.py +105 -0
  2342. package/python3.4.2/lib/python3.4/xml/sax/_exceptions.py +131 -0
  2343. package/python3.4.2/lib/python3.4/xml/sax/expatreader.py +417 -0
  2344. package/python3.4.2/lib/python3.4/xml/sax/handler.py +342 -0
  2345. package/python3.4.2/lib/python3.4/xml/sax/saxutils.py +365 -0
  2346. package/python3.4.2/lib/python3.4/xml/sax/xmlreader.py +378 -0
  2347. package/python3.4.2/lib/python3.4/xmlrpc/__init__.py +1 -0
  2348. package/python3.4.2/lib/python3.4/xmlrpc/client.py +1479 -0
  2349. package/python3.4.2/lib/python3.4/xmlrpc/server.py +986 -0
  2350. package/python3.4.2/lib/python3.4/zipfile.py +1788 -0
  2351. package/python3.4.2/share/man/man1/python3.1 +460 -0
  2352. package/python3.4.2/share/man/man1/python3.4.1 +460 -0
@@ -0,0 +1,3898 @@
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 sys
34
+ if sys.platform == "win32":
35
+ # Attempt to configure Tcl/Tk without requiring PATH
36
+ from tkinter import _fix
37
+
38
+ import _tkinter # If this fails your Python may not be configured for Tk
39
+ TclError = _tkinter.TclError
40
+ from tkinter.constants import *
41
+ import re
42
+
43
+
44
+ wantobjects = 1
45
+
46
+ TkVersion = float(_tkinter.TK_VERSION)
47
+ TclVersion = float(_tkinter.TCL_VERSION)
48
+
49
+ READABLE = _tkinter.READABLE
50
+ WRITABLE = _tkinter.WRITABLE
51
+ EXCEPTION = _tkinter.EXCEPTION
52
+
53
+
54
+ _magic_re = re.compile(r'([\\{}])')
55
+ _space_re = re.compile(r'([\s])', re.ASCII)
56
+
57
+ def _join(value):
58
+ """Internal function."""
59
+ return ' '.join(map(_stringify, value))
60
+
61
+ def _stringify(value):
62
+ """Internal function."""
63
+ if isinstance(value, (list, tuple)):
64
+ if len(value) == 1:
65
+ value = _stringify(value[0])
66
+ if value[0] == '{':
67
+ value = '{%s}' % value
68
+ else:
69
+ value = '{%s}' % _join(value)
70
+ else:
71
+ value = str(value)
72
+ if not value:
73
+ value = '{}'
74
+ elif _magic_re.search(value):
75
+ # add '\' before special characters and spaces
76
+ value = _magic_re.sub(r'\\\1', value)
77
+ value = _space_re.sub(r'\\\1', value)
78
+ elif value[0] == '"' or _space_re.search(value):
79
+ value = '{%s}' % value
80
+ return value
81
+
82
+ def _flatten(seq):
83
+ """Internal function."""
84
+ res = ()
85
+ for item in seq:
86
+ if isinstance(item, (tuple, list)):
87
+ res = res + _flatten(item)
88
+ elif item is not None:
89
+ res = res + (item,)
90
+ return res
91
+
92
+ try: _flatten = _tkinter._flatten
93
+ except AttributeError: pass
94
+
95
+ def _cnfmerge(cnfs):
96
+ """Internal function."""
97
+ if isinstance(cnfs, dict):
98
+ return cnfs
99
+ elif isinstance(cnfs, (type(None), str)):
100
+ return cnfs
101
+ else:
102
+ cnf = {}
103
+ for c in _flatten(cnfs):
104
+ try:
105
+ cnf.update(c)
106
+ except (AttributeError, TypeError) as msg:
107
+ print("_cnfmerge: fallback due to:", msg)
108
+ for k, v in c.items():
109
+ cnf[k] = v
110
+ return cnf
111
+
112
+ try: _cnfmerge = _tkinter._cnfmerge
113
+ except AttributeError: pass
114
+
115
+ def _splitdict(tk, v, cut_minus=True, conv=None):
116
+ """Return a properly formatted dict built from Tcl list pairs.
117
+
118
+ If cut_minus is True, the supposed '-' prefix will be removed from
119
+ keys. If conv is specified, it is used to convert values.
120
+
121
+ Tcl list is expected to contain an even number of elements.
122
+ """
123
+ t = tk.splitlist(v)
124
+ if len(t) % 2:
125
+ raise RuntimeError('Tcl list representing a dict is expected '
126
+ 'to contain an even number of elements')
127
+ it = iter(t)
128
+ dict = {}
129
+ for key, value in zip(it, it):
130
+ key = str(key)
131
+ if cut_minus and key[0] == '-':
132
+ key = key[1:]
133
+ if conv:
134
+ value = conv(value)
135
+ dict[key] = value
136
+ return dict
137
+
138
+ class Event:
139
+ """Container for the properties of an event.
140
+
141
+ Instances of this type are generated if one of the following events occurs:
142
+
143
+ KeyPress, KeyRelease - for keyboard events
144
+ ButtonPress, ButtonRelease, Motion, Enter, Leave, MouseWheel - for mouse events
145
+ Visibility, Unmap, Map, Expose, FocusIn, FocusOut, Circulate,
146
+ Colormap, Gravity, Reparent, Property, Destroy, Activate,
147
+ Deactivate - for window events.
148
+
149
+ If a callback function for one of these events is registered
150
+ using bind, bind_all, bind_class, or tag_bind, the callback is
151
+ called with an Event as first argument. It will have the
152
+ following attributes (in braces are the event types for which
153
+ the attribute is valid):
154
+
155
+ serial - serial number of event
156
+ num - mouse button pressed (ButtonPress, ButtonRelease)
157
+ focus - whether the window has the focus (Enter, Leave)
158
+ height - height of the exposed window (Configure, Expose)
159
+ width - width of the exposed window (Configure, Expose)
160
+ keycode - keycode of the pressed key (KeyPress, KeyRelease)
161
+ state - state of the event as a number (ButtonPress, ButtonRelease,
162
+ Enter, KeyPress, KeyRelease,
163
+ Leave, Motion)
164
+ state - state as a string (Visibility)
165
+ time - when the event occurred
166
+ x - x-position of the mouse
167
+ y - y-position of the mouse
168
+ x_root - x-position of the mouse on the screen
169
+ (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
170
+ y_root - y-position of the mouse on the screen
171
+ (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
172
+ char - pressed character (KeyPress, KeyRelease)
173
+ send_event - see X/Windows documentation
174
+ keysym - keysym of the event as a string (KeyPress, KeyRelease)
175
+ keysym_num - keysym of the event as a number (KeyPress, KeyRelease)
176
+ type - type of the event as a number
177
+ widget - widget in which the event occurred
178
+ delta - delta of wheel movement (MouseWheel)
179
+ """
180
+ pass
181
+
182
+ _support_default_root = 1
183
+ _default_root = None
184
+
185
+ def NoDefaultRoot():
186
+ """Inhibit setting of default root window.
187
+
188
+ Call this function to inhibit that the first instance of
189
+ Tk is used for windows without an explicit parent window.
190
+ """
191
+ global _support_default_root
192
+ _support_default_root = 0
193
+ global _default_root
194
+ _default_root = None
195
+ del _default_root
196
+
197
+ def _tkerror(err):
198
+ """Internal function."""
199
+ pass
200
+
201
+ def _exit(code=0):
202
+ """Internal function. Calling it will raise the exception SystemExit."""
203
+ try:
204
+ code = int(code)
205
+ except ValueError:
206
+ pass
207
+ raise SystemExit(code)
208
+
209
+ _varnum = 0
210
+ class Variable:
211
+ """Class to define value holders for e.g. buttons.
212
+
213
+ Subclasses StringVar, IntVar, DoubleVar, BooleanVar are specializations
214
+ that constrain the type of the value returned from get()."""
215
+ _default = ""
216
+ _tk = None
217
+ _tclCommands = None
218
+ def __init__(self, master=None, value=None, name=None):
219
+ """Construct a variable
220
+
221
+ MASTER can be given as master widget.
222
+ VALUE is an optional value (defaults to "")
223
+ NAME is an optional Tcl name (defaults to PY_VARnum).
224
+
225
+ If NAME matches an existing variable and VALUE is omitted
226
+ then the existing value is retained.
227
+ """
228
+ # check for type of NAME parameter to override weird error message
229
+ # raised from Modules/_tkinter.c:SetVar like:
230
+ # TypeError: setvar() takes exactly 3 arguments (2 given)
231
+ if name is not None and not isinstance(name, str):
232
+ raise TypeError("name must be a string")
233
+ global _varnum
234
+ if not master:
235
+ master = _default_root
236
+ self._root = master._root()
237
+ self._tk = master.tk
238
+ if name:
239
+ self._name = name
240
+ else:
241
+ self._name = 'PY_VAR' + repr(_varnum)
242
+ _varnum += 1
243
+ if value is not None:
244
+ self.initialize(value)
245
+ elif not self._tk.getboolean(self._tk.call("info", "exists", self._name)):
246
+ self.initialize(self._default)
247
+ def __del__(self):
248
+ """Unset the variable in Tcl."""
249
+ if self._tk is None:
250
+ return
251
+ if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
252
+ self._tk.globalunsetvar(self._name)
253
+ if self._tclCommands is not None:
254
+ for name in self._tclCommands:
255
+ #print '- Tkinter: deleted command', name
256
+ self._tk.deletecommand(name)
257
+ self._tclCommands = None
258
+ def __str__(self):
259
+ """Return the name of the variable in Tcl."""
260
+ return self._name
261
+ def set(self, value):
262
+ """Set the variable to VALUE."""
263
+ return self._tk.globalsetvar(self._name, value)
264
+ initialize = set
265
+ def get(self):
266
+ """Return value of variable."""
267
+ return self._tk.globalgetvar(self._name)
268
+ def trace_variable(self, mode, callback):
269
+ """Define a trace callback for the variable.
270
+
271
+ MODE is one of "r", "w", "u" for read, write, undefine.
272
+ CALLBACK must be a function which is called when
273
+ the variable is read, written or undefined.
274
+
275
+ Return the name of the callback.
276
+ """
277
+ f = CallWrapper(callback, None, self).__call__
278
+ cbname = repr(id(f))
279
+ try:
280
+ callback = callback.__func__
281
+ except AttributeError:
282
+ pass
283
+ try:
284
+ cbname = cbname + callback.__name__
285
+ except AttributeError:
286
+ pass
287
+ self._tk.createcommand(cbname, f)
288
+ if self._tclCommands is None:
289
+ self._tclCommands = []
290
+ self._tclCommands.append(cbname)
291
+ self._tk.call("trace", "variable", self._name, mode, cbname)
292
+ return cbname
293
+ trace = trace_variable
294
+ def trace_vdelete(self, mode, cbname):
295
+ """Delete the trace callback for a variable.
296
+
297
+ MODE is one of "r", "w", "u" for read, write, undefine.
298
+ CBNAME is the name of the callback returned from trace_variable or trace.
299
+ """
300
+ self._tk.call("trace", "vdelete", self._name, mode, cbname)
301
+ self._tk.deletecommand(cbname)
302
+ try:
303
+ self._tclCommands.remove(cbname)
304
+ except ValueError:
305
+ pass
306
+ def trace_vinfo(self):
307
+ """Return all trace callback information."""
308
+ return [self._tk.split(x) for x in self._tk.splitlist(
309
+ self._tk.call("trace", "vinfo", self._name))]
310
+ def __eq__(self, other):
311
+ """Comparison for equality (==).
312
+
313
+ Note: if the Variable's master matters to behavior
314
+ also compare self._master == other._master
315
+ """
316
+ return self.__class__.__name__ == other.__class__.__name__ \
317
+ and self._name == other._name
318
+
319
+ class StringVar(Variable):
320
+ """Value holder for strings variables."""
321
+ _default = ""
322
+ def __init__(self, master=None, value=None, name=None):
323
+ """Construct a string variable.
324
+
325
+ MASTER can be given as master widget.
326
+ VALUE is an optional value (defaults to "")
327
+ NAME is an optional Tcl name (defaults to PY_VARnum).
328
+
329
+ If NAME matches an existing variable and VALUE is omitted
330
+ then the existing value is retained.
331
+ """
332
+ Variable.__init__(self, master, value, name)
333
+
334
+ def get(self):
335
+ """Return value of variable as string."""
336
+ value = self._tk.globalgetvar(self._name)
337
+ if isinstance(value, str):
338
+ return value
339
+ return str(value)
340
+
341
+ class IntVar(Variable):
342
+ """Value holder for integer variables."""
343
+ _default = 0
344
+ def __init__(self, master=None, value=None, name=None):
345
+ """Construct an integer variable.
346
+
347
+ MASTER can be given as master widget.
348
+ VALUE is an optional value (defaults to 0)
349
+ NAME is an optional Tcl name (defaults to PY_VARnum).
350
+
351
+ If NAME matches an existing variable and VALUE is omitted
352
+ then the existing value is retained.
353
+ """
354
+ Variable.__init__(self, master, value, name)
355
+
356
+ def get(self):
357
+ """Return the value of the variable as an integer."""
358
+ return getint(self._tk.globalgetvar(self._name))
359
+
360
+ class DoubleVar(Variable):
361
+ """Value holder for float variables."""
362
+ _default = 0.0
363
+ def __init__(self, master=None, value=None, name=None):
364
+ """Construct a float variable.
365
+
366
+ MASTER can be given as master widget.
367
+ VALUE is an optional value (defaults to 0.0)
368
+ NAME is an optional Tcl name (defaults to PY_VARnum).
369
+
370
+ If NAME matches an existing variable and VALUE is omitted
371
+ then the existing value is retained.
372
+ """
373
+ Variable.__init__(self, master, value, name)
374
+
375
+ def get(self):
376
+ """Return the value of the variable as a float."""
377
+ return getdouble(self._tk.globalgetvar(self._name))
378
+
379
+ class BooleanVar(Variable):
380
+ """Value holder for boolean variables."""
381
+ _default = False
382
+ def __init__(self, master=None, value=None, name=None):
383
+ """Construct a boolean variable.
384
+
385
+ MASTER can be given as master widget.
386
+ VALUE is an optional value (defaults to False)
387
+ NAME is an optional Tcl name (defaults to PY_VARnum).
388
+
389
+ If NAME matches an existing variable and VALUE is omitted
390
+ then the existing value is retained.
391
+ """
392
+ Variable.__init__(self, master, value, name)
393
+
394
+ def get(self):
395
+ """Return the value of the variable as a bool."""
396
+ try:
397
+ return self._tk.getboolean(self._tk.globalgetvar(self._name))
398
+ except TclError:
399
+ raise ValueError("invalid literal for getboolean()")
400
+
401
+ def mainloop(n=0):
402
+ """Run the main loop of Tcl."""
403
+ _default_root.tk.mainloop(n)
404
+
405
+ getint = int
406
+
407
+ getdouble = float
408
+
409
+ def getboolean(s):
410
+ """Convert true and false to integer values 1 and 0."""
411
+ try:
412
+ return _default_root.tk.getboolean(s)
413
+ except TclError:
414
+ raise ValueError("invalid literal for getboolean()")
415
+
416
+ # Methods defined on both toplevel and interior widgets
417
+ class Misc:
418
+ """Internal class.
419
+
420
+ Base class which defines methods common for interior widgets."""
421
+
422
+ # XXX font command?
423
+ _tclCommands = None
424
+ def destroy(self):
425
+ """Internal function.
426
+
427
+ Delete all Tcl commands created for
428
+ this widget in the Tcl interpreter."""
429
+ if self._tclCommands is not None:
430
+ for name in self._tclCommands:
431
+ #print '- Tkinter: deleted command', name
432
+ self.tk.deletecommand(name)
433
+ self._tclCommands = None
434
+ def deletecommand(self, name):
435
+ """Internal function.
436
+
437
+ Delete the Tcl command provided in NAME."""
438
+ #print '- Tkinter: deleted command', name
439
+ self.tk.deletecommand(name)
440
+ try:
441
+ self._tclCommands.remove(name)
442
+ except ValueError:
443
+ pass
444
+ def tk_strictMotif(self, boolean=None):
445
+ """Set Tcl internal variable, whether the look and feel
446
+ should adhere to Motif.
447
+
448
+ A parameter of 1 means adhere to Motif (e.g. no color
449
+ change if mouse passes over slider).
450
+ Returns the set value."""
451
+ return self.tk.getboolean(self.tk.call(
452
+ 'set', 'tk_strictMotif', boolean))
453
+ def tk_bisque(self):
454
+ """Change the color scheme to light brown as used in Tk 3.6 and before."""
455
+ self.tk.call('tk_bisque')
456
+ def tk_setPalette(self, *args, **kw):
457
+ """Set a new color scheme for all widget elements.
458
+
459
+ A single color as argument will cause that all colors of Tk
460
+ widget elements are derived from this.
461
+ Alternatively several keyword parameters and its associated
462
+ colors can be given. The following keywords are valid:
463
+ activeBackground, foreground, selectColor,
464
+ activeForeground, highlightBackground, selectBackground,
465
+ background, highlightColor, selectForeground,
466
+ disabledForeground, insertBackground, troughColor."""
467
+ self.tk.call(('tk_setPalette',)
468
+ + _flatten(args) + _flatten(list(kw.items())))
469
+ def tk_menuBar(self, *args):
470
+ """Do not use. Needed in Tk 3.6 and earlier."""
471
+ # obsolete since Tk 4.0
472
+ import warnings
473
+ warnings.warn('tk_menuBar() does nothing and will be removed in 3.6',
474
+ DeprecationWarning, stacklevel=2)
475
+ def wait_variable(self, name='PY_VAR'):
476
+ """Wait until the variable is modified.
477
+
478
+ A parameter of type IntVar, StringVar, DoubleVar or
479
+ BooleanVar must be given."""
480
+ self.tk.call('tkwait', 'variable', name)
481
+ waitvar = wait_variable # XXX b/w compat
482
+ def wait_window(self, window=None):
483
+ """Wait until a WIDGET is destroyed.
484
+
485
+ If no parameter is given self is used."""
486
+ if window is None:
487
+ window = self
488
+ self.tk.call('tkwait', 'window', window._w)
489
+ def wait_visibility(self, window=None):
490
+ """Wait until the visibility of a WIDGET changes
491
+ (e.g. it appears).
492
+
493
+ If no parameter is given self is used."""
494
+ if window is None:
495
+ window = self
496
+ self.tk.call('tkwait', 'visibility', window._w)
497
+ def setvar(self, name='PY_VAR', value='1'):
498
+ """Set Tcl variable NAME to VALUE."""
499
+ self.tk.setvar(name, value)
500
+ def getvar(self, name='PY_VAR'):
501
+ """Return value of Tcl variable NAME."""
502
+ return self.tk.getvar(name)
503
+ getint = int
504
+ getdouble = float
505
+ def getboolean(self, s):
506
+ """Return a boolean value for Tcl boolean values true and false given as parameter."""
507
+ try:
508
+ return self.tk.getboolean(s)
509
+ except TclError:
510
+ raise ValueError("invalid literal for getboolean()")
511
+ def focus_set(self):
512
+ """Direct input focus to this widget.
513
+
514
+ If the application currently does not have the focus
515
+ this widget will get the focus if the application gets
516
+ the focus through the window manager."""
517
+ self.tk.call('focus', self._w)
518
+ focus = focus_set # XXX b/w compat?
519
+ def focus_force(self):
520
+ """Direct input focus to this widget even if the
521
+ application does not have the focus. Use with
522
+ caution!"""
523
+ self.tk.call('focus', '-force', self._w)
524
+ def focus_get(self):
525
+ """Return the widget which has currently the focus in the
526
+ application.
527
+
528
+ Use focus_displayof to allow working with several
529
+ displays. Return None if application does not have
530
+ the focus."""
531
+ name = self.tk.call('focus')
532
+ if name == 'none' or not name: return None
533
+ return self._nametowidget(name)
534
+ def focus_displayof(self):
535
+ """Return the widget which has currently the focus on the
536
+ display where this widget is located.
537
+
538
+ Return None if the application does not have the focus."""
539
+ name = self.tk.call('focus', '-displayof', self._w)
540
+ if name == 'none' or not name: return None
541
+ return self._nametowidget(name)
542
+ def focus_lastfor(self):
543
+ """Return the widget which would have the focus if top level
544
+ for this widget gets the focus from the window manager."""
545
+ name = self.tk.call('focus', '-lastfor', self._w)
546
+ if name == 'none' or not name: return None
547
+ return self._nametowidget(name)
548
+ def tk_focusFollowsMouse(self):
549
+ """The widget under mouse will get automatically focus. Can not
550
+ be disabled easily."""
551
+ self.tk.call('tk_focusFollowsMouse')
552
+ def tk_focusNext(self):
553
+ """Return the next widget in the focus order which follows
554
+ widget which has currently the focus.
555
+
556
+ The focus order first goes to the next child, then to
557
+ the children of the child recursively and then to the
558
+ next sibling which is higher in the stacking order. A
559
+ widget is omitted if it has the takefocus resource set
560
+ to 0."""
561
+ name = self.tk.call('tk_focusNext', self._w)
562
+ if not name: return None
563
+ return self._nametowidget(name)
564
+ def tk_focusPrev(self):
565
+ """Return previous widget in the focus order. See tk_focusNext for details."""
566
+ name = self.tk.call('tk_focusPrev', self._w)
567
+ if not name: return None
568
+ return self._nametowidget(name)
569
+ def after(self, ms, func=None, *args):
570
+ """Call function once after given time.
571
+
572
+ MS specifies the time in milliseconds. FUNC gives the
573
+ function which shall be called. Additional parameters
574
+ are given as parameters to the function call. Return
575
+ identifier to cancel scheduling with after_cancel."""
576
+ if not func:
577
+ # I'd rather use time.sleep(ms*0.001)
578
+ self.tk.call('after', ms)
579
+ else:
580
+ def callit():
581
+ try:
582
+ func(*args)
583
+ finally:
584
+ try:
585
+ self.deletecommand(name)
586
+ except TclError:
587
+ pass
588
+ callit.__name__ = func.__name__
589
+ name = self._register(callit)
590
+ return self.tk.call('after', ms, name)
591
+ def after_idle(self, func, *args):
592
+ """Call FUNC once if the Tcl main loop has no event to
593
+ process.
594
+
595
+ Return an identifier to cancel the scheduling with
596
+ after_cancel."""
597
+ return self.after('idle', func, *args)
598
+ def after_cancel(self, id):
599
+ """Cancel scheduling of function identified with ID.
600
+
601
+ Identifier returned by after or after_idle must be
602
+ given as first parameter."""
603
+ try:
604
+ data = self.tk.call('after', 'info', id)
605
+ # In Tk 8.3, splitlist returns: (script, type)
606
+ # In Tk 8.4, splitlist may return (script, type) or (script,)
607
+ script = self.tk.splitlist(data)[0]
608
+ self.deletecommand(script)
609
+ except TclError:
610
+ pass
611
+ self.tk.call('after', 'cancel', id)
612
+ def bell(self, displayof=0):
613
+ """Ring a display's bell."""
614
+ self.tk.call(('bell',) + self._displayof(displayof))
615
+
616
+ # Clipboard handling:
617
+ def clipboard_get(self, **kw):
618
+ """Retrieve data from the clipboard on window's display.
619
+
620
+ The window keyword defaults to the root window of the Tkinter
621
+ application.
622
+
623
+ The type keyword specifies the form in which the data is
624
+ to be returned and should be an atom name such as STRING
625
+ or FILE_NAME. Type defaults to STRING, except on X11, where the default
626
+ is to try UTF8_STRING and fall back to STRING.
627
+
628
+ This command is equivalent to:
629
+
630
+ selection_get(CLIPBOARD)
631
+ """
632
+ if 'type' not in kw and self._windowingsystem == 'x11':
633
+ try:
634
+ kw['type'] = 'UTF8_STRING'
635
+ return self.tk.call(('clipboard', 'get') + self._options(kw))
636
+ except TclError:
637
+ del kw['type']
638
+ return self.tk.call(('clipboard', 'get') + self._options(kw))
639
+
640
+ def clipboard_clear(self, **kw):
641
+ """Clear the data in the Tk clipboard.
642
+
643
+ A widget specified for the optional displayof keyword
644
+ argument specifies the target display."""
645
+ if 'displayof' not in kw: kw['displayof'] = self._w
646
+ self.tk.call(('clipboard', 'clear') + self._options(kw))
647
+ def clipboard_append(self, string, **kw):
648
+ """Append STRING to the Tk clipboard.
649
+
650
+ A widget specified at the optional displayof keyword
651
+ argument specifies the target display. The clipboard
652
+ can be retrieved with selection_get."""
653
+ if 'displayof' not in kw: kw['displayof'] = self._w
654
+ self.tk.call(('clipboard', 'append') + self._options(kw)
655
+ + ('--', string))
656
+ # XXX grab current w/o window argument
657
+ def grab_current(self):
658
+ """Return widget which has currently the grab in this application
659
+ or None."""
660
+ name = self.tk.call('grab', 'current', self._w)
661
+ if not name: return None
662
+ return self._nametowidget(name)
663
+ def grab_release(self):
664
+ """Release grab for this widget if currently set."""
665
+ self.tk.call('grab', 'release', self._w)
666
+ def grab_set(self):
667
+ """Set grab for this widget.
668
+
669
+ A grab directs all events to this and descendant
670
+ widgets in the application."""
671
+ self.tk.call('grab', 'set', self._w)
672
+ def grab_set_global(self):
673
+ """Set global grab for this widget.
674
+
675
+ A global grab directs all events to this and
676
+ descendant widgets on the display. Use with caution -
677
+ other applications do not get events anymore."""
678
+ self.tk.call('grab', 'set', '-global', self._w)
679
+ def grab_status(self):
680
+ """Return None, "local" or "global" if this widget has
681
+ no, a local or a global grab."""
682
+ status = self.tk.call('grab', 'status', self._w)
683
+ if status == 'none': status = None
684
+ return status
685
+ def option_add(self, pattern, value, priority = None):
686
+ """Set a VALUE (second parameter) for an option
687
+ PATTERN (first parameter).
688
+
689
+ An optional third parameter gives the numeric priority
690
+ (defaults to 80)."""
691
+ self.tk.call('option', 'add', pattern, value, priority)
692
+ def option_clear(self):
693
+ """Clear the option database.
694
+
695
+ It will be reloaded if option_add is called."""
696
+ self.tk.call('option', 'clear')
697
+ def option_get(self, name, className):
698
+ """Return the value for an option NAME for this widget
699
+ with CLASSNAME.
700
+
701
+ Values with higher priority override lower values."""
702
+ return self.tk.call('option', 'get', self._w, name, className)
703
+ def option_readfile(self, fileName, priority = None):
704
+ """Read file FILENAME into the option database.
705
+
706
+ An optional second parameter gives the numeric
707
+ priority."""
708
+ self.tk.call('option', 'readfile', fileName, priority)
709
+ def selection_clear(self, **kw):
710
+ """Clear the current X selection."""
711
+ if 'displayof' not in kw: kw['displayof'] = self._w
712
+ self.tk.call(('selection', 'clear') + self._options(kw))
713
+ def selection_get(self, **kw):
714
+ """Return the contents of the current X selection.
715
+
716
+ A keyword parameter selection specifies the name of
717
+ the selection and defaults to PRIMARY. A keyword
718
+ parameter displayof specifies a widget on the display
719
+ to use. A keyword parameter type specifies the form of data to be
720
+ fetched, defaulting to STRING except on X11, where UTF8_STRING is tried
721
+ before STRING."""
722
+ if 'displayof' not in kw: kw['displayof'] = self._w
723
+ if 'type' not in kw and self._windowingsystem == 'x11':
724
+ try:
725
+ kw['type'] = 'UTF8_STRING'
726
+ return self.tk.call(('selection', 'get') + self._options(kw))
727
+ except TclError:
728
+ del kw['type']
729
+ return self.tk.call(('selection', 'get') + self._options(kw))
730
+ def selection_handle(self, command, **kw):
731
+ """Specify a function COMMAND to call if the X
732
+ selection owned by this widget is queried by another
733
+ application.
734
+
735
+ This function must return the contents of the
736
+ selection. The function will be called with the
737
+ arguments OFFSET and LENGTH which allows the chunking
738
+ of very long selections. The following keyword
739
+ parameters can be provided:
740
+ selection - name of the selection (default PRIMARY),
741
+ type - type of the selection (e.g. STRING, FILE_NAME)."""
742
+ name = self._register(command)
743
+ self.tk.call(('selection', 'handle') + self._options(kw)
744
+ + (self._w, name))
745
+ def selection_own(self, **kw):
746
+ """Become owner of X selection.
747
+
748
+ A keyword parameter selection specifies the name of
749
+ the selection (default PRIMARY)."""
750
+ self.tk.call(('selection', 'own') +
751
+ self._options(kw) + (self._w,))
752
+ def selection_own_get(self, **kw):
753
+ """Return owner of X selection.
754
+
755
+ The following keyword parameter can
756
+ be provided:
757
+ selection - name of the selection (default PRIMARY),
758
+ type - type of the selection (e.g. STRING, FILE_NAME)."""
759
+ if 'displayof' not in kw: kw['displayof'] = self._w
760
+ name = self.tk.call(('selection', 'own') + self._options(kw))
761
+ if not name: return None
762
+ return self._nametowidget(name)
763
+ def send(self, interp, cmd, *args):
764
+ """Send Tcl command CMD to different interpreter INTERP to be executed."""
765
+ return self.tk.call(('send', interp, cmd) + args)
766
+ def lower(self, belowThis=None):
767
+ """Lower this widget in the stacking order."""
768
+ self.tk.call('lower', self._w, belowThis)
769
+ def tkraise(self, aboveThis=None):
770
+ """Raise this widget in the stacking order."""
771
+ self.tk.call('raise', self._w, aboveThis)
772
+ lift = tkraise
773
+ def colormodel(self, value=None):
774
+ """Useless. Not implemented in Tk."""
775
+ return self.tk.call('tk', 'colormodel', self._w, value)
776
+ def winfo_atom(self, name, displayof=0):
777
+ """Return integer which represents atom NAME."""
778
+ args = ('winfo', 'atom') + self._displayof(displayof) + (name,)
779
+ return getint(self.tk.call(args))
780
+ def winfo_atomname(self, id, displayof=0):
781
+ """Return name of atom with identifier ID."""
782
+ args = ('winfo', 'atomname') \
783
+ + self._displayof(displayof) + (id,)
784
+ return self.tk.call(args)
785
+ def winfo_cells(self):
786
+ """Return number of cells in the colormap for this widget."""
787
+ return getint(
788
+ self.tk.call('winfo', 'cells', self._w))
789
+ def winfo_children(self):
790
+ """Return a list of all widgets which are children of this widget."""
791
+ result = []
792
+ for child in self.tk.splitlist(
793
+ self.tk.call('winfo', 'children', self._w)):
794
+ try:
795
+ # Tcl sometimes returns extra windows, e.g. for
796
+ # menus; those need to be skipped
797
+ result.append(self._nametowidget(child))
798
+ except KeyError:
799
+ pass
800
+ return result
801
+
802
+ def winfo_class(self):
803
+ """Return window class name of this widget."""
804
+ return self.tk.call('winfo', 'class', self._w)
805
+ def winfo_colormapfull(self):
806
+ """Return true if at the last color request the colormap was full."""
807
+ return self.tk.getboolean(
808
+ self.tk.call('winfo', 'colormapfull', self._w))
809
+ def winfo_containing(self, rootX, rootY, displayof=0):
810
+ """Return the widget which is at the root coordinates ROOTX, ROOTY."""
811
+ args = ('winfo', 'containing') \
812
+ + self._displayof(displayof) + (rootX, rootY)
813
+ name = self.tk.call(args)
814
+ if not name: return None
815
+ return self._nametowidget(name)
816
+ def winfo_depth(self):
817
+ """Return the number of bits per pixel."""
818
+ return getint(self.tk.call('winfo', 'depth', self._w))
819
+ def winfo_exists(self):
820
+ """Return true if this widget exists."""
821
+ return getint(
822
+ self.tk.call('winfo', 'exists', self._w))
823
+ def winfo_fpixels(self, number):
824
+ """Return the number of pixels for the given distance NUMBER
825
+ (e.g. "3c") as float."""
826
+ return getdouble(self.tk.call(
827
+ 'winfo', 'fpixels', self._w, number))
828
+ def winfo_geometry(self):
829
+ """Return geometry string for this widget in the form "widthxheight+X+Y"."""
830
+ return self.tk.call('winfo', 'geometry', self._w)
831
+ def winfo_height(self):
832
+ """Return height of this widget."""
833
+ return getint(
834
+ self.tk.call('winfo', 'height', self._w))
835
+ def winfo_id(self):
836
+ """Return identifier ID for this widget."""
837
+ return self.tk.getint(
838
+ self.tk.call('winfo', 'id', self._w))
839
+ def winfo_interps(self, displayof=0):
840
+ """Return the name of all Tcl interpreters for this display."""
841
+ args = ('winfo', 'interps') + self._displayof(displayof)
842
+ return self.tk.splitlist(self.tk.call(args))
843
+ def winfo_ismapped(self):
844
+ """Return true if this widget is mapped."""
845
+ return getint(
846
+ self.tk.call('winfo', 'ismapped', self._w))
847
+ def winfo_manager(self):
848
+ """Return the window mananger name for this widget."""
849
+ return self.tk.call('winfo', 'manager', self._w)
850
+ def winfo_name(self):
851
+ """Return the name of this widget."""
852
+ return self.tk.call('winfo', 'name', self._w)
853
+ def winfo_parent(self):
854
+ """Return the name of the parent of this widget."""
855
+ return self.tk.call('winfo', 'parent', self._w)
856
+ def winfo_pathname(self, id, displayof=0):
857
+ """Return the pathname of the widget given by ID."""
858
+ args = ('winfo', 'pathname') \
859
+ + self._displayof(displayof) + (id,)
860
+ return self.tk.call(args)
861
+ def winfo_pixels(self, number):
862
+ """Rounded integer value of winfo_fpixels."""
863
+ return getint(
864
+ self.tk.call('winfo', 'pixels', self._w, number))
865
+ def winfo_pointerx(self):
866
+ """Return the x coordinate of the pointer on the root window."""
867
+ return getint(
868
+ self.tk.call('winfo', 'pointerx', self._w))
869
+ def winfo_pointerxy(self):
870
+ """Return a tuple of x and y coordinates of the pointer on the root window."""
871
+ return self._getints(
872
+ self.tk.call('winfo', 'pointerxy', self._w))
873
+ def winfo_pointery(self):
874
+ """Return the y coordinate of the pointer on the root window."""
875
+ return getint(
876
+ self.tk.call('winfo', 'pointery', self._w))
877
+ def winfo_reqheight(self):
878
+ """Return requested height of this widget."""
879
+ return getint(
880
+ self.tk.call('winfo', 'reqheight', self._w))
881
+ def winfo_reqwidth(self):
882
+ """Return requested width of this widget."""
883
+ return getint(
884
+ self.tk.call('winfo', 'reqwidth', self._w))
885
+ def winfo_rgb(self, color):
886
+ """Return tuple of decimal values for red, green, blue for
887
+ COLOR in this widget."""
888
+ return self._getints(
889
+ self.tk.call('winfo', 'rgb', self._w, color))
890
+ def winfo_rootx(self):
891
+ """Return x coordinate of upper left corner of this widget on the
892
+ root window."""
893
+ return getint(
894
+ self.tk.call('winfo', 'rootx', self._w))
895
+ def winfo_rooty(self):
896
+ """Return y coordinate of upper left corner of this widget on the
897
+ root window."""
898
+ return getint(
899
+ self.tk.call('winfo', 'rooty', self._w))
900
+ def winfo_screen(self):
901
+ """Return the screen name of this widget."""
902
+ return self.tk.call('winfo', 'screen', self._w)
903
+ def winfo_screencells(self):
904
+ """Return the number of the cells in the colormap of the screen
905
+ of this widget."""
906
+ return getint(
907
+ self.tk.call('winfo', 'screencells', self._w))
908
+ def winfo_screendepth(self):
909
+ """Return the number of bits per pixel of the root window of the
910
+ screen of this widget."""
911
+ return getint(
912
+ self.tk.call('winfo', 'screendepth', self._w))
913
+ def winfo_screenheight(self):
914
+ """Return the number of pixels of the height of the screen of this widget
915
+ in pixel."""
916
+ return getint(
917
+ self.tk.call('winfo', 'screenheight', self._w))
918
+ def winfo_screenmmheight(self):
919
+ """Return the number of pixels of the height of the screen of
920
+ this widget in mm."""
921
+ return getint(
922
+ self.tk.call('winfo', 'screenmmheight', self._w))
923
+ def winfo_screenmmwidth(self):
924
+ """Return the number of pixels of the width of the screen of
925
+ this widget in mm."""
926
+ return getint(
927
+ self.tk.call('winfo', 'screenmmwidth', self._w))
928
+ def winfo_screenvisual(self):
929
+ """Return one of the strings directcolor, grayscale, pseudocolor,
930
+ staticcolor, staticgray, or truecolor for the default
931
+ colormodel of this screen."""
932
+ return self.tk.call('winfo', 'screenvisual', self._w)
933
+ def winfo_screenwidth(self):
934
+ """Return the number of pixels of the width of the screen of
935
+ this widget in pixel."""
936
+ return getint(
937
+ self.tk.call('winfo', 'screenwidth', self._w))
938
+ def winfo_server(self):
939
+ """Return information of the X-Server of the screen of this widget in
940
+ the form "XmajorRminor vendor vendorVersion"."""
941
+ return self.tk.call('winfo', 'server', self._w)
942
+ def winfo_toplevel(self):
943
+ """Return the toplevel widget of this widget."""
944
+ return self._nametowidget(self.tk.call(
945
+ 'winfo', 'toplevel', self._w))
946
+ def winfo_viewable(self):
947
+ """Return true if the widget and all its higher ancestors are mapped."""
948
+ return getint(
949
+ self.tk.call('winfo', 'viewable', self._w))
950
+ def winfo_visual(self):
951
+ """Return one of the strings directcolor, grayscale, pseudocolor,
952
+ staticcolor, staticgray, or truecolor for the
953
+ colormodel of this widget."""
954
+ return self.tk.call('winfo', 'visual', self._w)
955
+ def winfo_visualid(self):
956
+ """Return the X identifier for the visual for this widget."""
957
+ return self.tk.call('winfo', 'visualid', self._w)
958
+ def winfo_visualsavailable(self, includeids=0):
959
+ """Return a list of all visuals available for the screen
960
+ of this widget.
961
+
962
+ Each item in the list consists of a visual name (see winfo_visual), a
963
+ depth and if INCLUDEIDS=1 is given also the X identifier."""
964
+ data = self.tk.split(
965
+ self.tk.call('winfo', 'visualsavailable', self._w,
966
+ includeids and 'includeids' or None))
967
+ if isinstance(data, str):
968
+ data = [self.tk.split(data)]
969
+ return [self.__winfo_parseitem(x) for x in data]
970
+ def __winfo_parseitem(self, t):
971
+ """Internal function."""
972
+ return t[:1] + tuple(map(self.__winfo_getint, t[1:]))
973
+ def __winfo_getint(self, x):
974
+ """Internal function."""
975
+ return int(x, 0)
976
+ def winfo_vrootheight(self):
977
+ """Return the height of the virtual root window associated with this
978
+ widget in pixels. If there is no virtual root window return the
979
+ height of the screen."""
980
+ return getint(
981
+ self.tk.call('winfo', 'vrootheight', self._w))
982
+ def winfo_vrootwidth(self):
983
+ """Return the width of the virtual root window associated with this
984
+ widget in pixel. If there is no virtual root window return the
985
+ width of the screen."""
986
+ return getint(
987
+ self.tk.call('winfo', 'vrootwidth', self._w))
988
+ def winfo_vrootx(self):
989
+ """Return the x offset of the virtual root relative to the root
990
+ window of the screen of this widget."""
991
+ return getint(
992
+ self.tk.call('winfo', 'vrootx', self._w))
993
+ def winfo_vrooty(self):
994
+ """Return the y offset of the virtual root relative to the root
995
+ window of the screen of this widget."""
996
+ return getint(
997
+ self.tk.call('winfo', 'vrooty', self._w))
998
+ def winfo_width(self):
999
+ """Return the width of this widget."""
1000
+ return getint(
1001
+ self.tk.call('winfo', 'width', self._w))
1002
+ def winfo_x(self):
1003
+ """Return the x coordinate of the upper left corner of this widget
1004
+ in the parent."""
1005
+ return getint(
1006
+ self.tk.call('winfo', 'x', self._w))
1007
+ def winfo_y(self):
1008
+ """Return the y coordinate of the upper left corner of this widget
1009
+ in the parent."""
1010
+ return getint(
1011
+ self.tk.call('winfo', 'y', self._w))
1012
+ def update(self):
1013
+ """Enter event loop until all pending events have been processed by Tcl."""
1014
+ self.tk.call('update')
1015
+ def update_idletasks(self):
1016
+ """Enter event loop until all idle callbacks have been called. This
1017
+ will update the display of windows but not process events caused by
1018
+ the user."""
1019
+ self.tk.call('update', 'idletasks')
1020
+ def bindtags(self, tagList=None):
1021
+ """Set or get the list of bindtags for this widget.
1022
+
1023
+ With no argument return the list of all bindtags associated with
1024
+ this widget. With a list of strings as argument the bindtags are
1025
+ set to this list. The bindtags determine in which order events are
1026
+ processed (see bind)."""
1027
+ if tagList is None:
1028
+ return self.tk.splitlist(
1029
+ self.tk.call('bindtags', self._w))
1030
+ else:
1031
+ self.tk.call('bindtags', self._w, tagList)
1032
+ def _bind(self, what, sequence, func, add, needcleanup=1):
1033
+ """Internal function."""
1034
+ if isinstance(func, str):
1035
+ self.tk.call(what + (sequence, func))
1036
+ elif func:
1037
+ funcid = self._register(func, self._substitute,
1038
+ needcleanup)
1039
+ cmd = ('%sif {"[%s %s]" == "break"} break\n'
1040
+ %
1041
+ (add and '+' or '',
1042
+ funcid, self._subst_format_str))
1043
+ self.tk.call(what + (sequence, cmd))
1044
+ return funcid
1045
+ elif sequence:
1046
+ return self.tk.call(what + (sequence,))
1047
+ else:
1048
+ return self.tk.splitlist(self.tk.call(what))
1049
+ def bind(self, sequence=None, func=None, add=None):
1050
+ """Bind to this widget at event SEQUENCE a call to function FUNC.
1051
+
1052
+ SEQUENCE is a string of concatenated event
1053
+ patterns. An event pattern is of the form
1054
+ <MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is one
1055
+ of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4,
1056
+ Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3,
1057
+ B3, Alt, Button4, B4, Double, Button5, B5 Triple,
1058
+ Mod1, M1. TYPE is one of Activate, Enter, Map,
1059
+ ButtonPress, Button, Expose, Motion, ButtonRelease
1060
+ FocusIn, MouseWheel, Circulate, FocusOut, Property,
1061
+ Colormap, Gravity Reparent, Configure, KeyPress, Key,
1062
+ Unmap, Deactivate, KeyRelease Visibility, Destroy,
1063
+ Leave and DETAIL is the button number for ButtonPress,
1064
+ ButtonRelease and DETAIL is the Keysym for KeyPress and
1065
+ KeyRelease. Examples are
1066
+ <Control-Button-1> for pressing Control and mouse button 1 or
1067
+ <Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
1068
+ An event pattern can also be a virtual event of the form
1069
+ <<AString>> where AString can be arbitrary. This
1070
+ event can be generated by event_generate.
1071
+ If events are concatenated they must appear shortly
1072
+ after each other.
1073
+
1074
+ FUNC will be called if the event sequence occurs with an
1075
+ instance of Event as argument. If the return value of FUNC is
1076
+ "break" no further bound function is invoked.
1077
+
1078
+ An additional boolean parameter ADD specifies whether FUNC will
1079
+ be called additionally to the other bound function or whether
1080
+ it will replace the previous function.
1081
+
1082
+ Bind will return an identifier to allow deletion of the bound function with
1083
+ unbind without memory leak.
1084
+
1085
+ If FUNC or SEQUENCE is omitted the bound function or list
1086
+ of bound events are returned."""
1087
+
1088
+ return self._bind(('bind', self._w), sequence, func, add)
1089
+ def unbind(self, sequence, funcid=None):
1090
+ """Unbind for this widget for event SEQUENCE the
1091
+ function identified with FUNCID."""
1092
+ self.tk.call('bind', self._w, sequence, '')
1093
+ if funcid:
1094
+ self.deletecommand(funcid)
1095
+ def bind_all(self, sequence=None, func=None, add=None):
1096
+ """Bind to all widgets at an event SEQUENCE a call to function FUNC.
1097
+ An additional boolean parameter ADD specifies whether FUNC will
1098
+ be called additionally to the other bound function or whether
1099
+ it will replace the previous function. See bind for the return value."""
1100
+ return self._bind(('bind', 'all'), sequence, func, add, 0)
1101
+ def unbind_all(self, sequence):
1102
+ """Unbind for all widgets for event SEQUENCE all functions."""
1103
+ self.tk.call('bind', 'all' , sequence, '')
1104
+ def bind_class(self, className, sequence=None, func=None, add=None):
1105
+
1106
+ """Bind to widgets with bindtag CLASSNAME at event
1107
+ SEQUENCE a call of function FUNC. An additional
1108
+ boolean parameter ADD specifies whether FUNC will be
1109
+ called additionally to the other bound function or
1110
+ whether it will replace the previous function. See bind for
1111
+ the return value."""
1112
+
1113
+ return self._bind(('bind', className), sequence, func, add, 0)
1114
+ def unbind_class(self, className, sequence):
1115
+ """Unbind for a all widgets with bindtag CLASSNAME for event SEQUENCE
1116
+ all functions."""
1117
+ self.tk.call('bind', className , sequence, '')
1118
+ def mainloop(self, n=0):
1119
+ """Call the mainloop of Tk."""
1120
+ self.tk.mainloop(n)
1121
+ def quit(self):
1122
+ """Quit the Tcl interpreter. All widgets will be destroyed."""
1123
+ self.tk.quit()
1124
+ def _getints(self, string):
1125
+ """Internal function."""
1126
+ if string:
1127
+ return tuple(map(getint, self.tk.splitlist(string)))
1128
+ def _getdoubles(self, string):
1129
+ """Internal function."""
1130
+ if string:
1131
+ return tuple(map(getdouble, self.tk.splitlist(string)))
1132
+ def _getboolean(self, string):
1133
+ """Internal function."""
1134
+ if string:
1135
+ return self.tk.getboolean(string)
1136
+ def _displayof(self, displayof):
1137
+ """Internal function."""
1138
+ if displayof:
1139
+ return ('-displayof', displayof)
1140
+ if displayof is None:
1141
+ return ('-displayof', self._w)
1142
+ return ()
1143
+ @property
1144
+ def _windowingsystem(self):
1145
+ """Internal function."""
1146
+ try:
1147
+ return self._root()._windowingsystem_cached
1148
+ except AttributeError:
1149
+ ws = self._root()._windowingsystem_cached = \
1150
+ self.tk.call('tk', 'windowingsystem')
1151
+ return ws
1152
+ def _options(self, cnf, kw = None):
1153
+ """Internal function."""
1154
+ if kw:
1155
+ cnf = _cnfmerge((cnf, kw))
1156
+ else:
1157
+ cnf = _cnfmerge(cnf)
1158
+ res = ()
1159
+ for k, v in cnf.items():
1160
+ if v is not None:
1161
+ if k[-1] == '_': k = k[:-1]
1162
+ if callable(v):
1163
+ v = self._register(v)
1164
+ elif isinstance(v, (tuple, list)):
1165
+ nv = []
1166
+ for item in v:
1167
+ if isinstance(item, int):
1168
+ nv.append(str(item))
1169
+ elif isinstance(item, str):
1170
+ nv.append(_stringify(item))
1171
+ else:
1172
+ break
1173
+ else:
1174
+ v = ' '.join(nv)
1175
+ res = res + ('-'+k, v)
1176
+ return res
1177
+ def nametowidget(self, name):
1178
+ """Return the Tkinter instance of a widget identified by
1179
+ its Tcl name NAME."""
1180
+ name = str(name).split('.')
1181
+ w = self
1182
+
1183
+ if not name[0]:
1184
+ w = w._root()
1185
+ name = name[1:]
1186
+
1187
+ for n in name:
1188
+ if not n:
1189
+ break
1190
+ w = w.children[n]
1191
+
1192
+ return w
1193
+ _nametowidget = nametowidget
1194
+ def _register(self, func, subst=None, needcleanup=1):
1195
+ """Return a newly created Tcl function. If this
1196
+ function is called, the Python function FUNC will
1197
+ be executed. An optional function SUBST can
1198
+ be given which will be executed before FUNC."""
1199
+ f = CallWrapper(func, subst, self).__call__
1200
+ name = repr(id(f))
1201
+ try:
1202
+ func = func.__func__
1203
+ except AttributeError:
1204
+ pass
1205
+ try:
1206
+ name = name + func.__name__
1207
+ except AttributeError:
1208
+ pass
1209
+ self.tk.createcommand(name, f)
1210
+ if needcleanup:
1211
+ if self._tclCommands is None:
1212
+ self._tclCommands = []
1213
+ self._tclCommands.append(name)
1214
+ return name
1215
+ register = _register
1216
+ def _root(self):
1217
+ """Internal function."""
1218
+ w = self
1219
+ while w.master: w = w.master
1220
+ return w
1221
+ _subst_format = ('%#', '%b', '%f', '%h', '%k',
1222
+ '%s', '%t', '%w', '%x', '%y',
1223
+ '%A', '%E', '%K', '%N', '%W', '%T', '%X', '%Y', '%D')
1224
+ _subst_format_str = " ".join(_subst_format)
1225
+ def _substitute(self, *args):
1226
+ """Internal function."""
1227
+ if len(args) != len(self._subst_format): return args
1228
+ getboolean = self.tk.getboolean
1229
+
1230
+ getint = int
1231
+ def getint_event(s):
1232
+ """Tk changed behavior in 8.4.2, returning "??" rather more often."""
1233
+ try:
1234
+ return int(s)
1235
+ except ValueError:
1236
+ return s
1237
+
1238
+ nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args
1239
+ # Missing: (a, c, d, m, o, v, B, R)
1240
+ e = Event()
1241
+ # serial field: valid vor all events
1242
+ # number of button: ButtonPress and ButtonRelease events only
1243
+ # height field: Configure, ConfigureRequest, Create,
1244
+ # ResizeRequest, and Expose events only
1245
+ # keycode field: KeyPress and KeyRelease events only
1246
+ # time field: "valid for events that contain a time field"
1247
+ # width field: Configure, ConfigureRequest, Create, ResizeRequest,
1248
+ # and Expose events only
1249
+ # x field: "valid for events that contain a x field"
1250
+ # y field: "valid for events that contain a y field"
1251
+ # keysym as decimal: KeyPress and KeyRelease events only
1252
+ # x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,
1253
+ # KeyRelease,and Motion events
1254
+ e.serial = getint(nsign)
1255
+ e.num = getint_event(b)
1256
+ try: e.focus = getboolean(f)
1257
+ except TclError: pass
1258
+ e.height = getint_event(h)
1259
+ e.keycode = getint_event(k)
1260
+ e.state = getint_event(s)
1261
+ e.time = getint_event(t)
1262
+ e.width = getint_event(w)
1263
+ e.x = getint_event(x)
1264
+ e.y = getint_event(y)
1265
+ e.char = A
1266
+ try: e.send_event = getboolean(E)
1267
+ except TclError: pass
1268
+ e.keysym = K
1269
+ e.keysym_num = getint_event(N)
1270
+ e.type = T
1271
+ try:
1272
+ e.widget = self._nametowidget(W)
1273
+ except KeyError:
1274
+ e.widget = W
1275
+ e.x_root = getint_event(X)
1276
+ e.y_root = getint_event(Y)
1277
+ try:
1278
+ e.delta = getint(D)
1279
+ except ValueError:
1280
+ e.delta = 0
1281
+ return (e,)
1282
+ def _report_exception(self):
1283
+ """Internal function."""
1284
+ exc, val, tb = sys.exc_info()
1285
+ root = self._root()
1286
+ root.report_callback_exception(exc, val, tb)
1287
+
1288
+ def _getconfigure(self, *args):
1289
+ """Call Tcl configure command and return the result as a dict."""
1290
+ cnf = {}
1291
+ for x in self.tk.splitlist(self.tk.call(*args)):
1292
+ x = self.tk.splitlist(x)
1293
+ cnf[x[0][1:]] = (x[0][1:],) + x[1:]
1294
+ return cnf
1295
+
1296
+ def _getconfigure1(self, *args):
1297
+ x = self.tk.splitlist(self.tk.call(*args))
1298
+ return (x[0][1:],) + x[1:]
1299
+
1300
+ def _configure(self, cmd, cnf, kw):
1301
+ """Internal function."""
1302
+ if kw:
1303
+ cnf = _cnfmerge((cnf, kw))
1304
+ elif cnf:
1305
+ cnf = _cnfmerge(cnf)
1306
+ if cnf is None:
1307
+ return self._getconfigure(_flatten((self._w, cmd)))
1308
+ if isinstance(cnf, str):
1309
+ return self._getconfigure1(_flatten((self._w, cmd, '-'+cnf)))
1310
+ self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
1311
+ # These used to be defined in Widget:
1312
+ def configure(self, cnf=None, **kw):
1313
+ """Configure resources of a widget.
1314
+
1315
+ The values for resources are specified as keyword
1316
+ arguments. To get an overview about
1317
+ the allowed keyword arguments call the method keys.
1318
+ """
1319
+ return self._configure('configure', cnf, kw)
1320
+ config = configure
1321
+ def cget(self, key):
1322
+ """Return the resource value for a KEY given as string."""
1323
+ return self.tk.call(self._w, 'cget', '-' + key)
1324
+ __getitem__ = cget
1325
+ def __setitem__(self, key, value):
1326
+ self.configure({key: value})
1327
+ def keys(self):
1328
+ """Return a list of all resource names of this widget."""
1329
+ return [x[0][1:] for x in
1330
+ self.tk.splitlist(self.tk.call(self._w, 'configure'))]
1331
+ def __str__(self):
1332
+ """Return the window path name of this widget."""
1333
+ return self._w
1334
+ # Pack methods that apply to the master
1335
+ _noarg_ = ['_noarg_']
1336
+ def pack_propagate(self, flag=_noarg_):
1337
+ """Set or get the status for propagation of geometry information.
1338
+
1339
+ A boolean argument specifies whether the geometry information
1340
+ of the slaves will determine the size of this widget. If no argument
1341
+ is given the current setting will be returned.
1342
+ """
1343
+ if flag is Misc._noarg_:
1344
+ return self._getboolean(self.tk.call(
1345
+ 'pack', 'propagate', self._w))
1346
+ else:
1347
+ self.tk.call('pack', 'propagate', self._w, flag)
1348
+ propagate = pack_propagate
1349
+ def pack_slaves(self):
1350
+ """Return a list of all slaves of this widget
1351
+ in its packing order."""
1352
+ return [self._nametowidget(x) for x in
1353
+ self.tk.splitlist(
1354
+ self.tk.call('pack', 'slaves', self._w))]
1355
+ slaves = pack_slaves
1356
+ # Place method that applies to the master
1357
+ def place_slaves(self):
1358
+ """Return a list of all slaves of this widget
1359
+ in its packing order."""
1360
+ return [self._nametowidget(x) for x in
1361
+ self.tk.splitlist(
1362
+ self.tk.call(
1363
+ 'place', 'slaves', self._w))]
1364
+ # Grid methods that apply to the master
1365
+ def grid_anchor(self, anchor=None): # new in Tk 8.5
1366
+ """The anchor value controls how to place the grid within the
1367
+ master when no row/column has any weight.
1368
+
1369
+ The default anchor is nw."""
1370
+ self.tk.call('grid', 'anchor', self._w, anchor)
1371
+ anchor = grid_anchor
1372
+ def grid_bbox(self, column=None, row=None, col2=None, row2=None):
1373
+ """Return a tuple of integer coordinates for the bounding
1374
+ box of this widget controlled by the geometry manager grid.
1375
+
1376
+ If COLUMN, ROW is given the bounding box applies from
1377
+ the cell with row and column 0 to the specified
1378
+ cell. If COL2 and ROW2 are given the bounding box
1379
+ starts at that cell.
1380
+
1381
+ The returned integers specify the offset of the upper left
1382
+ corner in the master widget and the width and height.
1383
+ """
1384
+ args = ('grid', 'bbox', self._w)
1385
+ if column is not None and row is not None:
1386
+ args = args + (column, row)
1387
+ if col2 is not None and row2 is not None:
1388
+ args = args + (col2, row2)
1389
+ return self._getints(self.tk.call(*args)) or None
1390
+ bbox = grid_bbox
1391
+
1392
+ def _gridconvvalue(self, value):
1393
+ if isinstance(value, (str, _tkinter.Tcl_Obj)):
1394
+ try:
1395
+ svalue = str(value)
1396
+ if not svalue:
1397
+ return None
1398
+ elif '.' in svalue:
1399
+ return getdouble(svalue)
1400
+ else:
1401
+ return getint(svalue)
1402
+ except ValueError:
1403
+ pass
1404
+ return value
1405
+
1406
+ def _grid_configure(self, command, index, cnf, kw):
1407
+ """Internal function."""
1408
+ if isinstance(cnf, str) and not kw:
1409
+ if cnf[-1:] == '_':
1410
+ cnf = cnf[:-1]
1411
+ if cnf[:1] != '-':
1412
+ cnf = '-'+cnf
1413
+ options = (cnf,)
1414
+ else:
1415
+ options = self._options(cnf, kw)
1416
+ if not options:
1417
+ return _splitdict(
1418
+ self.tk,
1419
+ self.tk.call('grid', command, self._w, index),
1420
+ conv=self._gridconvvalue)
1421
+ res = self.tk.call(
1422
+ ('grid', command, self._w, index)
1423
+ + options)
1424
+ if len(options) == 1:
1425
+ return self._gridconvvalue(res)
1426
+
1427
+ def grid_columnconfigure(self, index, cnf={}, **kw):
1428
+ """Configure column INDEX of a grid.
1429
+
1430
+ Valid resources are minsize (minimum size of the column),
1431
+ weight (how much does additional space propagate to this column)
1432
+ and pad (how much space to let additionally)."""
1433
+ return self._grid_configure('columnconfigure', index, cnf, kw)
1434
+ columnconfigure = grid_columnconfigure
1435
+ def grid_location(self, x, y):
1436
+ """Return a tuple of column and row which identify the cell
1437
+ at which the pixel at position X and Y inside the master
1438
+ widget is located."""
1439
+ return self._getints(
1440
+ self.tk.call(
1441
+ 'grid', 'location', self._w, x, y)) or None
1442
+ def grid_propagate(self, flag=_noarg_):
1443
+ """Set or get the status for propagation of geometry information.
1444
+
1445
+ A boolean argument specifies whether the geometry information
1446
+ of the slaves will determine the size of this widget. If no argument
1447
+ is given, the current setting will be returned.
1448
+ """
1449
+ if flag is Misc._noarg_:
1450
+ return self._getboolean(self.tk.call(
1451
+ 'grid', 'propagate', self._w))
1452
+ else:
1453
+ self.tk.call('grid', 'propagate', self._w, flag)
1454
+ def grid_rowconfigure(self, index, cnf={}, **kw):
1455
+ """Configure row INDEX of a grid.
1456
+
1457
+ Valid resources are minsize (minimum size of the row),
1458
+ weight (how much does additional space propagate to this row)
1459
+ and pad (how much space to let additionally)."""
1460
+ return self._grid_configure('rowconfigure', index, cnf, kw)
1461
+ rowconfigure = grid_rowconfigure
1462
+ def grid_size(self):
1463
+ """Return a tuple of the number of column and rows in the grid."""
1464
+ return self._getints(
1465
+ self.tk.call('grid', 'size', self._w)) or None
1466
+ size = grid_size
1467
+ def grid_slaves(self, row=None, column=None):
1468
+ """Return a list of all slaves of this widget
1469
+ in its packing order."""
1470
+ args = ()
1471
+ if row is not None:
1472
+ args = args + ('-row', row)
1473
+ if column is not None:
1474
+ args = args + ('-column', column)
1475
+ return [self._nametowidget(x) for x in
1476
+ self.tk.splitlist(self.tk.call(
1477
+ ('grid', 'slaves', self._w) + args))]
1478
+
1479
+ # Support for the "event" command, new in Tk 4.2.
1480
+ # By Case Roole.
1481
+
1482
+ def event_add(self, virtual, *sequences):
1483
+ """Bind a virtual event VIRTUAL (of the form <<Name>>)
1484
+ to an event SEQUENCE such that the virtual event is triggered
1485
+ whenever SEQUENCE occurs."""
1486
+ args = ('event', 'add', virtual) + sequences
1487
+ self.tk.call(args)
1488
+
1489
+ def event_delete(self, virtual, *sequences):
1490
+ """Unbind a virtual event VIRTUAL from SEQUENCE."""
1491
+ args = ('event', 'delete', virtual) + sequences
1492
+ self.tk.call(args)
1493
+
1494
+ def event_generate(self, sequence, **kw):
1495
+ """Generate an event SEQUENCE. Additional
1496
+ keyword arguments specify parameter of the event
1497
+ (e.g. x, y, rootx, rooty)."""
1498
+ args = ('event', 'generate', self._w, sequence)
1499
+ for k, v in kw.items():
1500
+ args = args + ('-%s' % k, str(v))
1501
+ self.tk.call(args)
1502
+
1503
+ def event_info(self, virtual=None):
1504
+ """Return a list of all virtual events or the information
1505
+ about the SEQUENCE bound to the virtual event VIRTUAL."""
1506
+ return self.tk.splitlist(
1507
+ self.tk.call('event', 'info', virtual))
1508
+
1509
+ # Image related commands
1510
+
1511
+ def image_names(self):
1512
+ """Return a list of all existing image names."""
1513
+ return self.tk.splitlist(self.tk.call('image', 'names'))
1514
+
1515
+ def image_types(self):
1516
+ """Return a list of all available image types (e.g. phote bitmap)."""
1517
+ return self.tk.splitlist(self.tk.call('image', 'types'))
1518
+
1519
+
1520
+ class CallWrapper:
1521
+ """Internal class. Stores function to call when some user
1522
+ defined Tcl function is called e.g. after an event occurred."""
1523
+ def __init__(self, func, subst, widget):
1524
+ """Store FUNC, SUBST and WIDGET as members."""
1525
+ self.func = func
1526
+ self.subst = subst
1527
+ self.widget = widget
1528
+ def __call__(self, *args):
1529
+ """Apply first function SUBST to arguments, than FUNC."""
1530
+ try:
1531
+ if self.subst:
1532
+ args = self.subst(*args)
1533
+ return self.func(*args)
1534
+ except SystemExit:
1535
+ raise
1536
+ except:
1537
+ self.widget._report_exception()
1538
+
1539
+
1540
+ class XView:
1541
+ """Mix-in class for querying and changing the horizontal position
1542
+ of a widget's window."""
1543
+
1544
+ def xview(self, *args):
1545
+ """Query and change the horizontal position of the view."""
1546
+ res = self.tk.call(self._w, 'xview', *args)
1547
+ if not args:
1548
+ return self._getdoubles(res)
1549
+
1550
+ def xview_moveto(self, fraction):
1551
+ """Adjusts the view in the window so that FRACTION of the
1552
+ total width of the canvas is off-screen to the left."""
1553
+ self.tk.call(self._w, 'xview', 'moveto', fraction)
1554
+
1555
+ def xview_scroll(self, number, what):
1556
+ """Shift the x-view according to NUMBER which is measured in "units"
1557
+ or "pages" (WHAT)."""
1558
+ self.tk.call(self._w, 'xview', 'scroll', number, what)
1559
+
1560
+
1561
+ class YView:
1562
+ """Mix-in class for querying and changing the vertical position
1563
+ of a widget's window."""
1564
+
1565
+ def yview(self, *args):
1566
+ """Query and change the vertical position of the view."""
1567
+ res = self.tk.call(self._w, 'yview', *args)
1568
+ if not args:
1569
+ return self._getdoubles(res)
1570
+
1571
+ def yview_moveto(self, fraction):
1572
+ """Adjusts the view in the window so that FRACTION of the
1573
+ total height of the canvas is off-screen to the top."""
1574
+ self.tk.call(self._w, 'yview', 'moveto', fraction)
1575
+
1576
+ def yview_scroll(self, number, what):
1577
+ """Shift the y-view according to NUMBER which is measured in
1578
+ "units" or "pages" (WHAT)."""
1579
+ self.tk.call(self._w, 'yview', 'scroll', number, what)
1580
+
1581
+
1582
+ class Wm:
1583
+ """Provides functions for the communication with the window manager."""
1584
+
1585
+ def wm_aspect(self,
1586
+ minNumer=None, minDenom=None,
1587
+ maxNumer=None, maxDenom=None):
1588
+ """Instruct the window manager to set the aspect ratio (width/height)
1589
+ of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
1590
+ of the actual values if no argument is given."""
1591
+ return self._getints(
1592
+ self.tk.call('wm', 'aspect', self._w,
1593
+ minNumer, minDenom,
1594
+ maxNumer, maxDenom))
1595
+ aspect = wm_aspect
1596
+
1597
+ def wm_attributes(self, *args):
1598
+ """This subcommand returns or sets platform specific attributes
1599
+
1600
+ The first form returns a list of the platform specific flags and
1601
+ their values. The second form returns the value for the specific
1602
+ option. The third form sets one or more of the values. The values
1603
+ are as follows:
1604
+
1605
+ On Windows, -disabled gets or sets whether the window is in a
1606
+ disabled state. -toolwindow gets or sets the style of the window
1607
+ to toolwindow (as defined in the MSDN). -topmost gets or sets
1608
+ whether this is a topmost window (displays above all other
1609
+ windows).
1610
+
1611
+ On Macintosh, XXXXX
1612
+
1613
+ On Unix, there are currently no special attribute values.
1614
+ """
1615
+ args = ('wm', 'attributes', self._w) + args
1616
+ return self.tk.call(args)
1617
+ attributes=wm_attributes
1618
+
1619
+ def wm_client(self, name=None):
1620
+ """Store NAME in WM_CLIENT_MACHINE property of this widget. Return
1621
+ current value."""
1622
+ return self.tk.call('wm', 'client', self._w, name)
1623
+ client = wm_client
1624
+ def wm_colormapwindows(self, *wlist):
1625
+ """Store list of window names (WLIST) into WM_COLORMAPWINDOWS property
1626
+ of this widget. This list contains windows whose colormaps differ from their
1627
+ parents. Return current list of widgets if WLIST is empty."""
1628
+ if len(wlist) > 1:
1629
+ wlist = (wlist,) # Tk needs a list of windows here
1630
+ args = ('wm', 'colormapwindows', self._w) + wlist
1631
+ if wlist:
1632
+ self.tk.call(args)
1633
+ else:
1634
+ return [self._nametowidget(x)
1635
+ for x in self.tk.splitlist(self.tk.call(args))]
1636
+ colormapwindows = wm_colormapwindows
1637
+ def wm_command(self, value=None):
1638
+ """Store VALUE in WM_COMMAND property. It is the command
1639
+ which shall be used to invoke the application. Return current
1640
+ command if VALUE is None."""
1641
+ return self.tk.call('wm', 'command', self._w, value)
1642
+ command = wm_command
1643
+ def wm_deiconify(self):
1644
+ """Deiconify this widget. If it was never mapped it will not be mapped.
1645
+ On Windows it will raise this widget and give it the focus."""
1646
+ return self.tk.call('wm', 'deiconify', self._w)
1647
+ deiconify = wm_deiconify
1648
+ def wm_focusmodel(self, model=None):
1649
+ """Set focus model to MODEL. "active" means that this widget will claim
1650
+ the focus itself, "passive" means that the window manager shall give
1651
+ the focus. Return current focus model if MODEL is None."""
1652
+ return self.tk.call('wm', 'focusmodel', self._w, model)
1653
+ focusmodel = wm_focusmodel
1654
+ def wm_forget(self, window): # new in Tk 8.5
1655
+ """The window will be unmappend from the screen and will no longer
1656
+ be managed by wm. toplevel windows will be treated like frame
1657
+ windows once they are no longer managed by wm, however, the menu
1658
+ option configuration will be remembered and the menus will return
1659
+ once the widget is managed again."""
1660
+ self.tk.call('wm', 'forget', window)
1661
+ forget = wm_forget
1662
+ def wm_frame(self):
1663
+ """Return identifier for decorative frame of this widget if present."""
1664
+ return self.tk.call('wm', 'frame', self._w)
1665
+ frame = wm_frame
1666
+ def wm_geometry(self, newGeometry=None):
1667
+ """Set geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return
1668
+ current value if None is given."""
1669
+ return self.tk.call('wm', 'geometry', self._w, newGeometry)
1670
+ geometry = wm_geometry
1671
+ def wm_grid(self,
1672
+ baseWidth=None, baseHeight=None,
1673
+ widthInc=None, heightInc=None):
1674
+ """Instruct the window manager that this widget shall only be
1675
+ resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and
1676
+ height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the
1677
+ number of grid units requested in Tk_GeometryRequest."""
1678
+ return self._getints(self.tk.call(
1679
+ 'wm', 'grid', self._w,
1680
+ baseWidth, baseHeight, widthInc, heightInc))
1681
+ grid = wm_grid
1682
+ def wm_group(self, pathName=None):
1683
+ """Set the group leader widgets for related widgets to PATHNAME. Return
1684
+ the group leader of this widget if None is given."""
1685
+ return self.tk.call('wm', 'group', self._w, pathName)
1686
+ group = wm_group
1687
+ def wm_iconbitmap(self, bitmap=None, default=None):
1688
+ """Set bitmap for the iconified widget to BITMAP. Return
1689
+ the bitmap if None is given.
1690
+
1691
+ Under Windows, the DEFAULT parameter can be used to set the icon
1692
+ for the widget and any descendents that don't have an icon set
1693
+ explicitly. DEFAULT can be the relative path to a .ico file
1694
+ (example: root.iconbitmap(default='myicon.ico') ). See Tk
1695
+ documentation for more information."""
1696
+ if default:
1697
+ return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
1698
+ else:
1699
+ return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
1700
+ iconbitmap = wm_iconbitmap
1701
+ def wm_iconify(self):
1702
+ """Display widget as icon."""
1703
+ return self.tk.call('wm', 'iconify', self._w)
1704
+ iconify = wm_iconify
1705
+ def wm_iconmask(self, bitmap=None):
1706
+ """Set mask for the icon bitmap of this widget. Return the
1707
+ mask if None is given."""
1708
+ return self.tk.call('wm', 'iconmask', self._w, bitmap)
1709
+ iconmask = wm_iconmask
1710
+ def wm_iconname(self, newName=None):
1711
+ """Set the name of the icon for this widget. Return the name if
1712
+ None is given."""
1713
+ return self.tk.call('wm', 'iconname', self._w, newName)
1714
+ iconname = wm_iconname
1715
+ def wm_iconphoto(self, default=False, *args): # new in Tk 8.5
1716
+ """Sets the titlebar icon for this window based on the named photo
1717
+ images passed through args. If default is True, this is applied to
1718
+ all future created toplevels as well.
1719
+
1720
+ The data in the images is taken as a snapshot at the time of
1721
+ invocation. If the images are later changed, this is not reflected
1722
+ to the titlebar icons. Multiple images are accepted to allow
1723
+ different images sizes to be provided. The window manager may scale
1724
+ provided icons to an appropriate size.
1725
+
1726
+ On Windows, the images are packed into a Windows icon structure.
1727
+ This will override an icon specified to wm_iconbitmap, and vice
1728
+ versa.
1729
+
1730
+ On X, the images are arranged into the _NET_WM_ICON X property,
1731
+ which most modern window managers support. An icon specified by
1732
+ wm_iconbitmap may exist simuultaneously.
1733
+
1734
+ On Macintosh, this currently does nothing."""
1735
+ if default:
1736
+ self.tk.call('wm', 'iconphoto', self._w, "-default", *args)
1737
+ else:
1738
+ self.tk.call('wm', 'iconphoto', self._w, *args)
1739
+ iconphoto = wm_iconphoto
1740
+ def wm_iconposition(self, x=None, y=None):
1741
+ """Set the position of the icon of this widget to X and Y. Return
1742
+ a tuple of the current values of X and X if None is given."""
1743
+ return self._getints(self.tk.call(
1744
+ 'wm', 'iconposition', self._w, x, y))
1745
+ iconposition = wm_iconposition
1746
+ def wm_iconwindow(self, pathName=None):
1747
+ """Set widget PATHNAME to be displayed instead of icon. Return the current
1748
+ value if None is given."""
1749
+ return self.tk.call('wm', 'iconwindow', self._w, pathName)
1750
+ iconwindow = wm_iconwindow
1751
+ def wm_manage(self, widget): # new in Tk 8.5
1752
+ """The widget specified will become a stand alone top-level window.
1753
+ The window will be decorated with the window managers title bar,
1754
+ etc."""
1755
+ self.tk.call('wm', 'manage', widget)
1756
+ manage = wm_manage
1757
+ def wm_maxsize(self, width=None, height=None):
1758
+ """Set max WIDTH and HEIGHT for this widget. If the window is gridded
1759
+ the values are given in grid units. Return the current values if None
1760
+ is given."""
1761
+ return self._getints(self.tk.call(
1762
+ 'wm', 'maxsize', self._w, width, height))
1763
+ maxsize = wm_maxsize
1764
+ def wm_minsize(self, width=None, height=None):
1765
+ """Set min WIDTH and HEIGHT for this widget. If the window is gridded
1766
+ the values are given in grid units. Return the current values if None
1767
+ is given."""
1768
+ return self._getints(self.tk.call(
1769
+ 'wm', 'minsize', self._w, width, height))
1770
+ minsize = wm_minsize
1771
+ def wm_overrideredirect(self, boolean=None):
1772
+ """Instruct the window manager to ignore this widget
1773
+ if BOOLEAN is given with 1. Return the current value if None
1774
+ is given."""
1775
+ return self._getboolean(self.tk.call(
1776
+ 'wm', 'overrideredirect', self._w, boolean))
1777
+ overrideredirect = wm_overrideredirect
1778
+ def wm_positionfrom(self, who=None):
1779
+ """Instruct the window manager that the position of this widget shall
1780
+ be defined by the user if WHO is "user", and by its own policy if WHO is
1781
+ "program"."""
1782
+ return self.tk.call('wm', 'positionfrom', self._w, who)
1783
+ positionfrom = wm_positionfrom
1784
+ def wm_protocol(self, name=None, func=None):
1785
+ """Bind function FUNC to command NAME for this widget.
1786
+ Return the function bound to NAME if None is given. NAME could be
1787
+ e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
1788
+ if callable(func):
1789
+ command = self._register(func)
1790
+ else:
1791
+ command = func
1792
+ return self.tk.call(
1793
+ 'wm', 'protocol', self._w, name, command)
1794
+ protocol = wm_protocol
1795
+ def wm_resizable(self, width=None, height=None):
1796
+ """Instruct the window manager whether this width can be resized
1797
+ in WIDTH or HEIGHT. Both values are boolean values."""
1798
+ return self.tk.call('wm', 'resizable', self._w, width, height)
1799
+ resizable = wm_resizable
1800
+ def wm_sizefrom(self, who=None):
1801
+ """Instruct the window manager that the size of this widget shall
1802
+ be defined by the user if WHO is "user", and by its own policy if WHO is
1803
+ "program"."""
1804
+ return self.tk.call('wm', 'sizefrom', self._w, who)
1805
+ sizefrom = wm_sizefrom
1806
+ def wm_state(self, newstate=None):
1807
+ """Query or set the state of this widget as one of normal, icon,
1808
+ iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only)."""
1809
+ return self.tk.call('wm', 'state', self._w, newstate)
1810
+ state = wm_state
1811
+ def wm_title(self, string=None):
1812
+ """Set the title of this widget."""
1813
+ return self.tk.call('wm', 'title', self._w, string)
1814
+ title = wm_title
1815
+ def wm_transient(self, master=None):
1816
+ """Instruct the window manager that this widget is transient
1817
+ with regard to widget MASTER."""
1818
+ return self.tk.call('wm', 'transient', self._w, master)
1819
+ transient = wm_transient
1820
+ def wm_withdraw(self):
1821
+ """Withdraw this widget from the screen such that it is unmapped
1822
+ and forgotten by the window manager. Re-draw it with wm_deiconify."""
1823
+ return self.tk.call('wm', 'withdraw', self._w)
1824
+ withdraw = wm_withdraw
1825
+
1826
+
1827
+ class Tk(Misc, Wm):
1828
+ """Toplevel widget of Tk which represents mostly the main window
1829
+ of an application. It has an associated Tcl interpreter."""
1830
+ _w = '.'
1831
+ def __init__(self, screenName=None, baseName=None, className='Tk',
1832
+ useTk=1, sync=0, use=None):
1833
+ """Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will
1834
+ be created. BASENAME will be used for the identification of the profile file (see
1835
+ readprofile).
1836
+ It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME
1837
+ is the name of the widget class."""
1838
+ self.master = None
1839
+ self.children = {}
1840
+ self._tkloaded = 0
1841
+ # to avoid recursions in the getattr code in case of failure, we
1842
+ # ensure that self.tk is always _something_.
1843
+ self.tk = None
1844
+ if baseName is None:
1845
+ import os
1846
+ baseName = os.path.basename(sys.argv[0])
1847
+ baseName, ext = os.path.splitext(baseName)
1848
+ if ext not in ('.py', '.pyc', '.pyo'):
1849
+ baseName = baseName + ext
1850
+ interactive = 0
1851
+ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
1852
+ if useTk:
1853
+ self._loadtk()
1854
+ if not sys.flags.ignore_environment:
1855
+ # Issue #16248: Honor the -E flag to avoid code injection.
1856
+ self.readprofile(baseName, className)
1857
+ def loadtk(self):
1858
+ if not self._tkloaded:
1859
+ self.tk.loadtk()
1860
+ self._loadtk()
1861
+ def _loadtk(self):
1862
+ self._tkloaded = 1
1863
+ global _default_root
1864
+ # Version sanity checks
1865
+ tk_version = self.tk.getvar('tk_version')
1866
+ if tk_version != _tkinter.TK_VERSION:
1867
+ raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
1868
+ % (_tkinter.TK_VERSION, tk_version))
1869
+ # Under unknown circumstances, tcl_version gets coerced to float
1870
+ tcl_version = str(self.tk.getvar('tcl_version'))
1871
+ if tcl_version != _tkinter.TCL_VERSION:
1872
+ raise RuntimeError("tcl.h version (%s) doesn't match libtcl.a version (%s)" \
1873
+ % (_tkinter.TCL_VERSION, tcl_version))
1874
+ if TkVersion < 4.0:
1875
+ raise RuntimeError("Tk 4.0 or higher is required; found Tk %s"
1876
+ % str(TkVersion))
1877
+ # Create and register the tkerror and exit commands
1878
+ # We need to inline parts of _register here, _ register
1879
+ # would register differently-named commands.
1880
+ if self._tclCommands is None:
1881
+ self._tclCommands = []
1882
+ self.tk.createcommand('tkerror', _tkerror)
1883
+ self.tk.createcommand('exit', _exit)
1884
+ self._tclCommands.append('tkerror')
1885
+ self._tclCommands.append('exit')
1886
+ if _support_default_root and not _default_root:
1887
+ _default_root = self
1888
+ self.protocol("WM_DELETE_WINDOW", self.destroy)
1889
+ def destroy(self):
1890
+ """Destroy this and all descendants widgets. This will
1891
+ end the application of this Tcl interpreter."""
1892
+ for c in list(self.children.values()): c.destroy()
1893
+ self.tk.call('destroy', self._w)
1894
+ Misc.destroy(self)
1895
+ global _default_root
1896
+ if _support_default_root and _default_root is self:
1897
+ _default_root = None
1898
+ def readprofile(self, baseName, className):
1899
+ """Internal function. It reads BASENAME.tcl and CLASSNAME.tcl into
1900
+ the Tcl Interpreter and calls exec on the contents of BASENAME.py and
1901
+ CLASSNAME.py if such a file exists in the home directory."""
1902
+ import os
1903
+ if 'HOME' in os.environ: home = os.environ['HOME']
1904
+ else: home = os.curdir
1905
+ class_tcl = os.path.join(home, '.%s.tcl' % className)
1906
+ class_py = os.path.join(home, '.%s.py' % className)
1907
+ base_tcl = os.path.join(home, '.%s.tcl' % baseName)
1908
+ base_py = os.path.join(home, '.%s.py' % baseName)
1909
+ dir = {'self': self}
1910
+ exec('from tkinter import *', dir)
1911
+ if os.path.isfile(class_tcl):
1912
+ self.tk.call('source', class_tcl)
1913
+ if os.path.isfile(class_py):
1914
+ exec(open(class_py).read(), dir)
1915
+ if os.path.isfile(base_tcl):
1916
+ self.tk.call('source', base_tcl)
1917
+ if os.path.isfile(base_py):
1918
+ exec(open(base_py).read(), dir)
1919
+ def report_callback_exception(self, exc, val, tb):
1920
+ """Report callback exception on sys.stderr.
1921
+
1922
+ Applications may want to override this internal function, and
1923
+ should when sys.stderr is None."""
1924
+ import traceback
1925
+ print("Exception in Tkinter callback", file=sys.stderr)
1926
+ sys.last_type = exc
1927
+ sys.last_value = val
1928
+ sys.last_traceback = tb
1929
+ traceback.print_exception(exc, val, tb)
1930
+ def __getattr__(self, attr):
1931
+ "Delegate attribute access to the interpreter object"
1932
+ return getattr(self.tk, attr)
1933
+
1934
+ # Ideally, the classes Pack, Place and Grid disappear, the
1935
+ # pack/place/grid methods are defined on the Widget class, and
1936
+ # everybody uses w.pack_whatever(...) instead of Pack.whatever(w,
1937
+ # ...), with pack(), place() and grid() being short for
1938
+ # pack_configure(), place_configure() and grid_columnconfigure(), and
1939
+ # forget() being short for pack_forget(). As a practical matter, I'm
1940
+ # afraid that there is too much code out there that may be using the
1941
+ # Pack, Place or Grid class, so I leave them intact -- but only as
1942
+ # backwards compatibility features. Also note that those methods that
1943
+ # take a master as argument (e.g. pack_propagate) have been moved to
1944
+ # the Misc class (which now incorporates all methods common between
1945
+ # toplevel and interior widgets). Again, for compatibility, these are
1946
+ # copied into the Pack, Place or Grid class.
1947
+
1948
+
1949
+ def Tcl(screenName=None, baseName=None, className='Tk', useTk=0):
1950
+ return Tk(screenName, baseName, className, useTk)
1951
+
1952
+ class Pack:
1953
+ """Geometry manager Pack.
1954
+
1955
+ Base class to use the methods pack_* in every widget."""
1956
+ def pack_configure(self, cnf={}, **kw):
1957
+ """Pack a widget in the parent widget. Use as options:
1958
+ after=widget - pack it after you have packed widget
1959
+ anchor=NSEW (or subset) - position widget according to
1960
+ given direction
1961
+ before=widget - pack it before you will pack widget
1962
+ expand=bool - expand widget if parent size grows
1963
+ fill=NONE or X or Y or BOTH - fill widget if widget grows
1964
+ in=master - use master to contain this widget
1965
+ in_=master - see 'in' option description
1966
+ ipadx=amount - add internal padding in x direction
1967
+ ipady=amount - add internal padding in y direction
1968
+ padx=amount - add padding in x direction
1969
+ pady=amount - add padding in y direction
1970
+ side=TOP or BOTTOM or LEFT or RIGHT - where to add this widget.
1971
+ """
1972
+ self.tk.call(
1973
+ ('pack', 'configure', self._w)
1974
+ + self._options(cnf, kw))
1975
+ pack = configure = config = pack_configure
1976
+ def pack_forget(self):
1977
+ """Unmap this widget and do not use it for the packing order."""
1978
+ self.tk.call('pack', 'forget', self._w)
1979
+ forget = pack_forget
1980
+ def pack_info(self):
1981
+ """Return information about the packing options
1982
+ for this widget."""
1983
+ d = _splitdict(self.tk, self.tk.call('pack', 'info', self._w))
1984
+ if 'in' in d:
1985
+ d['in'] = self.nametowidget(d['in'])
1986
+ return d
1987
+ info = pack_info
1988
+ propagate = pack_propagate = Misc.pack_propagate
1989
+ slaves = pack_slaves = Misc.pack_slaves
1990
+
1991
+ class Place:
1992
+ """Geometry manager Place.
1993
+
1994
+ Base class to use the methods place_* in every widget."""
1995
+ def place_configure(self, cnf={}, **kw):
1996
+ """Place a widget in the parent widget. Use as options:
1997
+ in=master - master relative to which the widget is placed
1998
+ in_=master - see 'in' option description
1999
+ x=amount - locate anchor of this widget at position x of master
2000
+ y=amount - locate anchor of this widget at position y of master
2001
+ relx=amount - locate anchor of this widget between 0.0 and 1.0
2002
+ relative to width of master (1.0 is right edge)
2003
+ rely=amount - locate anchor of this widget between 0.0 and 1.0
2004
+ relative to height of master (1.0 is bottom edge)
2005
+ anchor=NSEW (or subset) - position anchor according to given direction
2006
+ width=amount - width of this widget in pixel
2007
+ height=amount - height of this widget in pixel
2008
+ relwidth=amount - width of this widget between 0.0 and 1.0
2009
+ relative to width of master (1.0 is the same width
2010
+ as the master)
2011
+ relheight=amount - height of this widget between 0.0 and 1.0
2012
+ relative to height of master (1.0 is the same
2013
+ height as the master)
2014
+ bordermode="inside" or "outside" - whether to take border width of
2015
+ master widget into account
2016
+ """
2017
+ self.tk.call(
2018
+ ('place', 'configure', self._w)
2019
+ + self._options(cnf, kw))
2020
+ place = configure = config = place_configure
2021
+ def place_forget(self):
2022
+ """Unmap this widget."""
2023
+ self.tk.call('place', 'forget', self._w)
2024
+ forget = place_forget
2025
+ def place_info(self):
2026
+ """Return information about the placing options
2027
+ for this widget."""
2028
+ d = _splitdict(self.tk, self.tk.call('place', 'info', self._w))
2029
+ if 'in' in d:
2030
+ d['in'] = self.nametowidget(d['in'])
2031
+ return d
2032
+ info = place_info
2033
+ slaves = place_slaves = Misc.place_slaves
2034
+
2035
+ class Grid:
2036
+ """Geometry manager Grid.
2037
+
2038
+ Base class to use the methods grid_* in every widget."""
2039
+ # Thanks to Masazumi Yoshikawa (yosikawa@isi.edu)
2040
+ def grid_configure(self, cnf={}, **kw):
2041
+ """Position a widget in the parent widget in a grid. Use as options:
2042
+ column=number - use cell identified with given column (starting with 0)
2043
+ columnspan=number - this widget will span several columns
2044
+ in=master - use master to contain this widget
2045
+ in_=master - see 'in' option description
2046
+ ipadx=amount - add internal padding in x direction
2047
+ ipady=amount - add internal padding in y direction
2048
+ padx=amount - add padding in x direction
2049
+ pady=amount - add padding in y direction
2050
+ row=number - use cell identified with given row (starting with 0)
2051
+ rowspan=number - this widget will span several rows
2052
+ sticky=NSEW - if cell is larger on which sides will this
2053
+ widget stick to the cell boundary
2054
+ """
2055
+ self.tk.call(
2056
+ ('grid', 'configure', self._w)
2057
+ + self._options(cnf, kw))
2058
+ grid = configure = config = grid_configure
2059
+ bbox = grid_bbox = Misc.grid_bbox
2060
+ columnconfigure = grid_columnconfigure = Misc.grid_columnconfigure
2061
+ def grid_forget(self):
2062
+ """Unmap this widget."""
2063
+ self.tk.call('grid', 'forget', self._w)
2064
+ forget = grid_forget
2065
+ def grid_remove(self):
2066
+ """Unmap this widget but remember the grid options."""
2067
+ self.tk.call('grid', 'remove', self._w)
2068
+ def grid_info(self):
2069
+ """Return information about the options
2070
+ for positioning this widget in a grid."""
2071
+ d = _splitdict(self.tk, self.tk.call('grid', 'info', self._w))
2072
+ if 'in' in d:
2073
+ d['in'] = self.nametowidget(d['in'])
2074
+ return d
2075
+ info = grid_info
2076
+ location = grid_location = Misc.grid_location
2077
+ propagate = grid_propagate = Misc.grid_propagate
2078
+ rowconfigure = grid_rowconfigure = Misc.grid_rowconfigure
2079
+ size = grid_size = Misc.grid_size
2080
+ slaves = grid_slaves = Misc.grid_slaves
2081
+
2082
+ class BaseWidget(Misc):
2083
+ """Internal class."""
2084
+ def _setup(self, master, cnf):
2085
+ """Internal function. Sets up information about children."""
2086
+ if _support_default_root:
2087
+ global _default_root
2088
+ if not master:
2089
+ if not _default_root:
2090
+ _default_root = Tk()
2091
+ master = _default_root
2092
+ self.master = master
2093
+ self.tk = master.tk
2094
+ name = None
2095
+ if 'name' in cnf:
2096
+ name = cnf['name']
2097
+ del cnf['name']
2098
+ if not name:
2099
+ name = repr(id(self))
2100
+ self._name = name
2101
+ if master._w=='.':
2102
+ self._w = '.' + name
2103
+ else:
2104
+ self._w = master._w + '.' + name
2105
+ self.children = {}
2106
+ if self._name in self.master.children:
2107
+ self.master.children[self._name].destroy()
2108
+ self.master.children[self._name] = self
2109
+ def __init__(self, master, widgetName, cnf={}, kw={}, extra=()):
2110
+ """Construct a widget with the parent widget MASTER, a name WIDGETNAME
2111
+ and appropriate options."""
2112
+ if kw:
2113
+ cnf = _cnfmerge((cnf, kw))
2114
+ self.widgetName = widgetName
2115
+ BaseWidget._setup(self, master, cnf)
2116
+ if self._tclCommands is None:
2117
+ self._tclCommands = []
2118
+ classes = [(k, v) for k, v in cnf.items() if isinstance(k, type)]
2119
+ for k, v in classes:
2120
+ del cnf[k]
2121
+ self.tk.call(
2122
+ (widgetName, self._w) + extra + self._options(cnf))
2123
+ for k, v in classes:
2124
+ k.configure(self, v)
2125
+ def destroy(self):
2126
+ """Destroy this and all descendants widgets."""
2127
+ for c in list(self.children.values()): c.destroy()
2128
+ self.tk.call('destroy', self._w)
2129
+ if self._name in self.master.children:
2130
+ del self.master.children[self._name]
2131
+ Misc.destroy(self)
2132
+ def _do(self, name, args=()):
2133
+ # XXX Obsolete -- better use self.tk.call directly!
2134
+ return self.tk.call((self._w, name) + args)
2135
+
2136
+ class Widget(BaseWidget, Pack, Place, Grid):
2137
+ """Internal class.
2138
+
2139
+ Base class for a widget which can be positioned with the geometry managers
2140
+ Pack, Place or Grid."""
2141
+ pass
2142
+
2143
+ class Toplevel(BaseWidget, Wm):
2144
+ """Toplevel widget, e.g. for dialogs."""
2145
+ def __init__(self, master=None, cnf={}, **kw):
2146
+ """Construct a toplevel widget with the parent MASTER.
2147
+
2148
+ Valid resource names: background, bd, bg, borderwidth, class,
2149
+ colormap, container, cursor, height, highlightbackground,
2150
+ highlightcolor, highlightthickness, menu, relief, screen, takefocus,
2151
+ use, visual, width."""
2152
+ if kw:
2153
+ cnf = _cnfmerge((cnf, kw))
2154
+ extra = ()
2155
+ for wmkey in ['screen', 'class_', 'class', 'visual',
2156
+ 'colormap']:
2157
+ if wmkey in cnf:
2158
+ val = cnf[wmkey]
2159
+ # TBD: a hack needed because some keys
2160
+ # are not valid as keyword arguments
2161
+ if wmkey[-1] == '_': opt = '-'+wmkey[:-1]
2162
+ else: opt = '-'+wmkey
2163
+ extra = extra + (opt, val)
2164
+ del cnf[wmkey]
2165
+ BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
2166
+ root = self._root()
2167
+ self.iconname(root.iconname())
2168
+ self.title(root.title())
2169
+ self.protocol("WM_DELETE_WINDOW", self.destroy)
2170
+
2171
+ class Button(Widget):
2172
+ """Button widget."""
2173
+ def __init__(self, master=None, cnf={}, **kw):
2174
+ """Construct a button widget with the parent MASTER.
2175
+
2176
+ STANDARD OPTIONS
2177
+
2178
+ activebackground, activeforeground, anchor,
2179
+ background, bitmap, borderwidth, cursor,
2180
+ disabledforeground, font, foreground
2181
+ highlightbackground, highlightcolor,
2182
+ highlightthickness, image, justify,
2183
+ padx, pady, relief, repeatdelay,
2184
+ repeatinterval, takefocus, text,
2185
+ textvariable, underline, wraplength
2186
+
2187
+ WIDGET-SPECIFIC OPTIONS
2188
+
2189
+ command, compound, default, height,
2190
+ overrelief, state, width
2191
+ """
2192
+ Widget.__init__(self, master, 'button', cnf, kw)
2193
+
2194
+ def tkButtonEnter(self, *dummy):
2195
+ self.tk.call('tkButtonEnter', self._w)
2196
+
2197
+ def tkButtonLeave(self, *dummy):
2198
+ self.tk.call('tkButtonLeave', self._w)
2199
+
2200
+ def tkButtonDown(self, *dummy):
2201
+ self.tk.call('tkButtonDown', self._w)
2202
+
2203
+ def tkButtonUp(self, *dummy):
2204
+ self.tk.call('tkButtonUp', self._w)
2205
+
2206
+ def tkButtonInvoke(self, *dummy):
2207
+ self.tk.call('tkButtonInvoke', self._w)
2208
+
2209
+ def flash(self):
2210
+ """Flash the button.
2211
+
2212
+ This is accomplished by redisplaying
2213
+ the button several times, alternating between active and
2214
+ normal colors. At the end of the flash the button is left
2215
+ in the same normal/active state as when the command was
2216
+ invoked. This command is ignored if the button's state is
2217
+ disabled.
2218
+ """
2219
+ self.tk.call(self._w, 'flash')
2220
+
2221
+ def invoke(self):
2222
+ """Invoke the command associated with the button.
2223
+
2224
+ The return value is the return value from the command,
2225
+ or an empty string if there is no command associated with
2226
+ the button. This command is ignored if the button's state
2227
+ is disabled.
2228
+ """
2229
+ return self.tk.call(self._w, 'invoke')
2230
+
2231
+ class Canvas(Widget, XView, YView):
2232
+ """Canvas widget to display graphical elements like lines or text."""
2233
+ def __init__(self, master=None, cnf={}, **kw):
2234
+ """Construct a canvas widget with the parent MASTER.
2235
+
2236
+ Valid resource names: background, bd, bg, borderwidth, closeenough,
2237
+ confine, cursor, height, highlightbackground, highlightcolor,
2238
+ highlightthickness, insertbackground, insertborderwidth,
2239
+ insertofftime, insertontime, insertwidth, offset, relief,
2240
+ scrollregion, selectbackground, selectborderwidth, selectforeground,
2241
+ state, takefocus, width, xscrollcommand, xscrollincrement,
2242
+ yscrollcommand, yscrollincrement."""
2243
+ Widget.__init__(self, master, 'canvas', cnf, kw)
2244
+ def addtag(self, *args):
2245
+ """Internal function."""
2246
+ self.tk.call((self._w, 'addtag') + args)
2247
+ def addtag_above(self, newtag, tagOrId):
2248
+ """Add tag NEWTAG to all items above TAGORID."""
2249
+ self.addtag(newtag, 'above', tagOrId)
2250
+ def addtag_all(self, newtag):
2251
+ """Add tag NEWTAG to all items."""
2252
+ self.addtag(newtag, 'all')
2253
+ def addtag_below(self, newtag, tagOrId):
2254
+ """Add tag NEWTAG to all items below TAGORID."""
2255
+ self.addtag(newtag, 'below', tagOrId)
2256
+ def addtag_closest(self, newtag, x, y, halo=None, start=None):
2257
+ """Add tag NEWTAG to item which is closest to pixel at X, Y.
2258
+ If several match take the top-most.
2259
+ All items closer than HALO are considered overlapping (all are
2260
+ closests). If START is specified the next below this tag is taken."""
2261
+ self.addtag(newtag, 'closest', x, y, halo, start)
2262
+ def addtag_enclosed(self, newtag, x1, y1, x2, y2):
2263
+ """Add tag NEWTAG to all items in the rectangle defined
2264
+ by X1,Y1,X2,Y2."""
2265
+ self.addtag(newtag, 'enclosed', x1, y1, x2, y2)
2266
+ def addtag_overlapping(self, newtag, x1, y1, x2, y2):
2267
+ """Add tag NEWTAG to all items which overlap the rectangle
2268
+ defined by X1,Y1,X2,Y2."""
2269
+ self.addtag(newtag, 'overlapping', x1, y1, x2, y2)
2270
+ def addtag_withtag(self, newtag, tagOrId):
2271
+ """Add tag NEWTAG to all items with TAGORID."""
2272
+ self.addtag(newtag, 'withtag', tagOrId)
2273
+ def bbox(self, *args):
2274
+ """Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
2275
+ which encloses all items with tags specified as arguments."""
2276
+ return self._getints(
2277
+ self.tk.call((self._w, 'bbox') + args)) or None
2278
+ def tag_unbind(self, tagOrId, sequence, funcid=None):
2279
+ """Unbind for all items with TAGORID for event SEQUENCE the
2280
+ function identified with FUNCID."""
2281
+ self.tk.call(self._w, 'bind', tagOrId, sequence, '')
2282
+ if funcid:
2283
+ self.deletecommand(funcid)
2284
+ def tag_bind(self, tagOrId, sequence=None, func=None, add=None):
2285
+ """Bind to all items with TAGORID at event SEQUENCE a call to function FUNC.
2286
+
2287
+ An additional boolean parameter ADD specifies whether FUNC will be
2288
+ called additionally to the other bound function or whether it will
2289
+ replace the previous function. See bind for the return value."""
2290
+ return self._bind((self._w, 'bind', tagOrId),
2291
+ sequence, func, add)
2292
+ def canvasx(self, screenx, gridspacing=None):
2293
+ """Return the canvas x coordinate of pixel position SCREENX rounded
2294
+ to nearest multiple of GRIDSPACING units."""
2295
+ return getdouble(self.tk.call(
2296
+ self._w, 'canvasx', screenx, gridspacing))
2297
+ def canvasy(self, screeny, gridspacing=None):
2298
+ """Return the canvas y coordinate of pixel position SCREENY rounded
2299
+ to nearest multiple of GRIDSPACING units."""
2300
+ return getdouble(self.tk.call(
2301
+ self._w, 'canvasy', screeny, gridspacing))
2302
+ def coords(self, *args):
2303
+ """Return a list of coordinates for the item given in ARGS."""
2304
+ # XXX Should use _flatten on args
2305
+ return [getdouble(x) for x in
2306
+ self.tk.splitlist(
2307
+ self.tk.call((self._w, 'coords') + args))]
2308
+ def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={})
2309
+ """Internal function."""
2310
+ args = _flatten(args)
2311
+ cnf = args[-1]
2312
+ if isinstance(cnf, (dict, tuple)):
2313
+ args = args[:-1]
2314
+ else:
2315
+ cnf = {}
2316
+ return getint(self.tk.call(
2317
+ self._w, 'create', itemType,
2318
+ *(args + self._options(cnf, kw))))
2319
+ def create_arc(self, *args, **kw):
2320
+ """Create arc shaped region with coordinates x1,y1,x2,y2."""
2321
+ return self._create('arc', args, kw)
2322
+ def create_bitmap(self, *args, **kw):
2323
+ """Create bitmap with coordinates x1,y1."""
2324
+ return self._create('bitmap', args, kw)
2325
+ def create_image(self, *args, **kw):
2326
+ """Create image item with coordinates x1,y1."""
2327
+ return self._create('image', args, kw)
2328
+ def create_line(self, *args, **kw):
2329
+ """Create line with coordinates x1,y1,...,xn,yn."""
2330
+ return self._create('line', args, kw)
2331
+ def create_oval(self, *args, **kw):
2332
+ """Create oval with coordinates x1,y1,x2,y2."""
2333
+ return self._create('oval', args, kw)
2334
+ def create_polygon(self, *args, **kw):
2335
+ """Create polygon with coordinates x1,y1,...,xn,yn."""
2336
+ return self._create('polygon', args, kw)
2337
+ def create_rectangle(self, *args, **kw):
2338
+ """Create rectangle with coordinates x1,y1,x2,y2."""
2339
+ return self._create('rectangle', args, kw)
2340
+ def create_text(self, *args, **kw):
2341
+ """Create text with coordinates x1,y1."""
2342
+ return self._create('text', args, kw)
2343
+ def create_window(self, *args, **kw):
2344
+ """Create window with coordinates x1,y1,x2,y2."""
2345
+ return self._create('window', args, kw)
2346
+ def dchars(self, *args):
2347
+ """Delete characters of text items identified by tag or id in ARGS (possibly
2348
+ several times) from FIRST to LAST character (including)."""
2349
+ self.tk.call((self._w, 'dchars') + args)
2350
+ def delete(self, *args):
2351
+ """Delete items identified by all tag or ids contained in ARGS."""
2352
+ self.tk.call((self._w, 'delete') + args)
2353
+ def dtag(self, *args):
2354
+ """Delete tag or id given as last arguments in ARGS from items
2355
+ identified by first argument in ARGS."""
2356
+ self.tk.call((self._w, 'dtag') + args)
2357
+ def find(self, *args):
2358
+ """Internal function."""
2359
+ return self._getints(
2360
+ self.tk.call((self._w, 'find') + args)) or ()
2361
+ def find_above(self, tagOrId):
2362
+ """Return items above TAGORID."""
2363
+ return self.find('above', tagOrId)
2364
+ def find_all(self):
2365
+ """Return all items."""
2366
+ return self.find('all')
2367
+ def find_below(self, tagOrId):
2368
+ """Return all items below TAGORID."""
2369
+ return self.find('below', tagOrId)
2370
+ def find_closest(self, x, y, halo=None, start=None):
2371
+ """Return item which is closest to pixel at X, Y.
2372
+ If several match take the top-most.
2373
+ All items closer than HALO are considered overlapping (all are
2374
+ closests). If START is specified the next below this tag is taken."""
2375
+ return self.find('closest', x, y, halo, start)
2376
+ def find_enclosed(self, x1, y1, x2, y2):
2377
+ """Return all items in rectangle defined
2378
+ by X1,Y1,X2,Y2."""
2379
+ return self.find('enclosed', x1, y1, x2, y2)
2380
+ def find_overlapping(self, x1, y1, x2, y2):
2381
+ """Return all items which overlap the rectangle
2382
+ defined by X1,Y1,X2,Y2."""
2383
+ return self.find('overlapping', x1, y1, x2, y2)
2384
+ def find_withtag(self, tagOrId):
2385
+ """Return all items with TAGORID."""
2386
+ return self.find('withtag', tagOrId)
2387
+ def focus(self, *args):
2388
+ """Set focus to the first item specified in ARGS."""
2389
+ return self.tk.call((self._w, 'focus') + args)
2390
+ def gettags(self, *args):
2391
+ """Return tags associated with the first item specified in ARGS."""
2392
+ return self.tk.splitlist(
2393
+ self.tk.call((self._w, 'gettags') + args))
2394
+ def icursor(self, *args):
2395
+ """Set cursor at position POS in the item identified by TAGORID.
2396
+ In ARGS TAGORID must be first."""
2397
+ self.tk.call((self._w, 'icursor') + args)
2398
+ def index(self, *args):
2399
+ """Return position of cursor as integer in item specified in ARGS."""
2400
+ return getint(self.tk.call((self._w, 'index') + args))
2401
+ def insert(self, *args):
2402
+ """Insert TEXT in item TAGORID at position POS. ARGS must
2403
+ be TAGORID POS TEXT."""
2404
+ self.tk.call((self._w, 'insert') + args)
2405
+ def itemcget(self, tagOrId, option):
2406
+ """Return the resource value for an OPTION for item TAGORID."""
2407
+ return self.tk.call(
2408
+ (self._w, 'itemcget') + (tagOrId, '-'+option))
2409
+ def itemconfigure(self, tagOrId, cnf=None, **kw):
2410
+ """Configure resources of an item TAGORID.
2411
+
2412
+ The values for resources are specified as keyword
2413
+ arguments. To get an overview about
2414
+ the allowed keyword arguments call the method without arguments.
2415
+ """
2416
+ return self._configure(('itemconfigure', tagOrId), cnf, kw)
2417
+ itemconfig = itemconfigure
2418
+ # lower, tkraise/lift hide Misc.lower, Misc.tkraise/lift,
2419
+ # so the preferred name for them is tag_lower, tag_raise
2420
+ # (similar to tag_bind, and similar to the Text widget);
2421
+ # unfortunately can't delete the old ones yet (maybe in 1.6)
2422
+ def tag_lower(self, *args):
2423
+ """Lower an item TAGORID given in ARGS
2424
+ (optional below another item)."""
2425
+ self.tk.call((self._w, 'lower') + args)
2426
+ lower = tag_lower
2427
+ def move(self, *args):
2428
+ """Move an item TAGORID given in ARGS."""
2429
+ self.tk.call((self._w, 'move') + args)
2430
+ def postscript(self, cnf={}, **kw):
2431
+ """Print the contents of the canvas to a postscript
2432
+ file. Valid options: colormap, colormode, file, fontmap,
2433
+ height, pageanchor, pageheight, pagewidth, pagex, pagey,
2434
+ rotate, witdh, x, y."""
2435
+ return self.tk.call((self._w, 'postscript') +
2436
+ self._options(cnf, kw))
2437
+ def tag_raise(self, *args):
2438
+ """Raise an item TAGORID given in ARGS
2439
+ (optional above another item)."""
2440
+ self.tk.call((self._w, 'raise') + args)
2441
+ lift = tkraise = tag_raise
2442
+ def scale(self, *args):
2443
+ """Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE."""
2444
+ self.tk.call((self._w, 'scale') + args)
2445
+ def scan_mark(self, x, y):
2446
+ """Remember the current X, Y coordinates."""
2447
+ self.tk.call(self._w, 'scan', 'mark', x, y)
2448
+ def scan_dragto(self, x, y, gain=10):
2449
+ """Adjust the view of the canvas to GAIN times the
2450
+ difference between X and Y and the coordinates given in
2451
+ scan_mark."""
2452
+ self.tk.call(self._w, 'scan', 'dragto', x, y, gain)
2453
+ def select_adjust(self, tagOrId, index):
2454
+ """Adjust the end of the selection near the cursor of an item TAGORID to index."""
2455
+ self.tk.call(self._w, 'select', 'adjust', tagOrId, index)
2456
+ def select_clear(self):
2457
+ """Clear the selection if it is in this widget."""
2458
+ self.tk.call(self._w, 'select', 'clear')
2459
+ def select_from(self, tagOrId, index):
2460
+ """Set the fixed end of a selection in item TAGORID to INDEX."""
2461
+ self.tk.call(self._w, 'select', 'from', tagOrId, index)
2462
+ def select_item(self):
2463
+ """Return the item which has the selection."""
2464
+ return self.tk.call(self._w, 'select', 'item') or None
2465
+ def select_to(self, tagOrId, index):
2466
+ """Set the variable end of a selection in item TAGORID to INDEX."""
2467
+ self.tk.call(self._w, 'select', 'to', tagOrId, index)
2468
+ def type(self, tagOrId):
2469
+ """Return the type of the item TAGORID."""
2470
+ return self.tk.call(self._w, 'type', tagOrId) or None
2471
+
2472
+ class Checkbutton(Widget):
2473
+ """Checkbutton widget which is either in on- or off-state."""
2474
+ def __init__(self, master=None, cnf={}, **kw):
2475
+ """Construct a checkbutton widget with the parent MASTER.
2476
+
2477
+ Valid resource names: activebackground, activeforeground, anchor,
2478
+ background, bd, bg, bitmap, borderwidth, command, cursor,
2479
+ disabledforeground, fg, font, foreground, height,
2480
+ highlightbackground, highlightcolor, highlightthickness, image,
2481
+ indicatoron, justify, offvalue, onvalue, padx, pady, relief,
2482
+ selectcolor, selectimage, state, takefocus, text, textvariable,
2483
+ underline, variable, width, wraplength."""
2484
+ Widget.__init__(self, master, 'checkbutton', cnf, kw)
2485
+ def deselect(self):
2486
+ """Put the button in off-state."""
2487
+ self.tk.call(self._w, 'deselect')
2488
+ def flash(self):
2489
+ """Flash the button."""
2490
+ self.tk.call(self._w, 'flash')
2491
+ def invoke(self):
2492
+ """Toggle the button and invoke a command if given as resource."""
2493
+ return self.tk.call(self._w, 'invoke')
2494
+ def select(self):
2495
+ """Put the button in on-state."""
2496
+ self.tk.call(self._w, 'select')
2497
+ def toggle(self):
2498
+ """Toggle the button."""
2499
+ self.tk.call(self._w, 'toggle')
2500
+
2501
+ class Entry(Widget, XView):
2502
+ """Entry widget which allows to display simple text."""
2503
+ def __init__(self, master=None, cnf={}, **kw):
2504
+ """Construct an entry widget with the parent MASTER.
2505
+
2506
+ Valid resource names: background, bd, bg, borderwidth, cursor,
2507
+ exportselection, fg, font, foreground, highlightbackground,
2508
+ highlightcolor, highlightthickness, insertbackground,
2509
+ insertborderwidth, insertofftime, insertontime, insertwidth,
2510
+ invalidcommand, invcmd, justify, relief, selectbackground,
2511
+ selectborderwidth, selectforeground, show, state, takefocus,
2512
+ textvariable, validate, validatecommand, vcmd, width,
2513
+ xscrollcommand."""
2514
+ Widget.__init__(self, master, 'entry', cnf, kw)
2515
+ def delete(self, first, last=None):
2516
+ """Delete text from FIRST to LAST (not included)."""
2517
+ self.tk.call(self._w, 'delete', first, last)
2518
+ def get(self):
2519
+ """Return the text."""
2520
+ return self.tk.call(self._w, 'get')
2521
+ def icursor(self, index):
2522
+ """Insert cursor at INDEX."""
2523
+ self.tk.call(self._w, 'icursor', index)
2524
+ def index(self, index):
2525
+ """Return position of cursor."""
2526
+ return getint(self.tk.call(
2527
+ self._w, 'index', index))
2528
+ def insert(self, index, string):
2529
+ """Insert STRING at INDEX."""
2530
+ self.tk.call(self._w, 'insert', index, string)
2531
+ def scan_mark(self, x):
2532
+ """Remember the current X, Y coordinates."""
2533
+ self.tk.call(self._w, 'scan', 'mark', x)
2534
+ def scan_dragto(self, x):
2535
+ """Adjust the view of the canvas to 10 times the
2536
+ difference between X and Y and the coordinates given in
2537
+ scan_mark."""
2538
+ self.tk.call(self._w, 'scan', 'dragto', x)
2539
+ def selection_adjust(self, index):
2540
+ """Adjust the end of the selection near the cursor to INDEX."""
2541
+ self.tk.call(self._w, 'selection', 'adjust', index)
2542
+ select_adjust = selection_adjust
2543
+ def selection_clear(self):
2544
+ """Clear the selection if it is in this widget."""
2545
+ self.tk.call(self._w, 'selection', 'clear')
2546
+ select_clear = selection_clear
2547
+ def selection_from(self, index):
2548
+ """Set the fixed end of a selection to INDEX."""
2549
+ self.tk.call(self._w, 'selection', 'from', index)
2550
+ select_from = selection_from
2551
+ def selection_present(self):
2552
+ """Return True if there are characters selected in the entry, False
2553
+ otherwise."""
2554
+ return self.tk.getboolean(
2555
+ self.tk.call(self._w, 'selection', 'present'))
2556
+ select_present = selection_present
2557
+ def selection_range(self, start, end):
2558
+ """Set the selection from START to END (not included)."""
2559
+ self.tk.call(self._w, 'selection', 'range', start, end)
2560
+ select_range = selection_range
2561
+ def selection_to(self, index):
2562
+ """Set the variable end of a selection to INDEX."""
2563
+ self.tk.call(self._w, 'selection', 'to', index)
2564
+ select_to = selection_to
2565
+
2566
+ class Frame(Widget):
2567
+ """Frame widget which may contain other widgets and can have a 3D border."""
2568
+ def __init__(self, master=None, cnf={}, **kw):
2569
+ """Construct a frame widget with the parent MASTER.
2570
+
2571
+ Valid resource names: background, bd, bg, borderwidth, class,
2572
+ colormap, container, cursor, height, highlightbackground,
2573
+ highlightcolor, highlightthickness, relief, takefocus, visual, width."""
2574
+ cnf = _cnfmerge((cnf, kw))
2575
+ extra = ()
2576
+ if 'class_' in cnf:
2577
+ extra = ('-class', cnf['class_'])
2578
+ del cnf['class_']
2579
+ elif 'class' in cnf:
2580
+ extra = ('-class', cnf['class'])
2581
+ del cnf['class']
2582
+ Widget.__init__(self, master, 'frame', cnf, {}, extra)
2583
+
2584
+ class Label(Widget):
2585
+ """Label widget which can display text and bitmaps."""
2586
+ def __init__(self, master=None, cnf={}, **kw):
2587
+ """Construct a label widget with the parent MASTER.
2588
+
2589
+ STANDARD OPTIONS
2590
+
2591
+ activebackground, activeforeground, anchor,
2592
+ background, bitmap, borderwidth, cursor,
2593
+ disabledforeground, font, foreground,
2594
+ highlightbackground, highlightcolor,
2595
+ highlightthickness, image, justify,
2596
+ padx, pady, relief, takefocus, text,
2597
+ textvariable, underline, wraplength
2598
+
2599
+ WIDGET-SPECIFIC OPTIONS
2600
+
2601
+ height, state, width
2602
+
2603
+ """
2604
+ Widget.__init__(self, master, 'label', cnf, kw)
2605
+
2606
+ class Listbox(Widget, XView, YView):
2607
+ """Listbox widget which can display a list of strings."""
2608
+ def __init__(self, master=None, cnf={}, **kw):
2609
+ """Construct a listbox widget with the parent MASTER.
2610
+
2611
+ Valid resource names: background, bd, bg, borderwidth, cursor,
2612
+ exportselection, fg, font, foreground, height, highlightbackground,
2613
+ highlightcolor, highlightthickness, relief, selectbackground,
2614
+ selectborderwidth, selectforeground, selectmode, setgrid, takefocus,
2615
+ width, xscrollcommand, yscrollcommand, listvariable."""
2616
+ Widget.__init__(self, master, 'listbox', cnf, kw)
2617
+ def activate(self, index):
2618
+ """Activate item identified by INDEX."""
2619
+ self.tk.call(self._w, 'activate', index)
2620
+ def bbox(self, index):
2621
+ """Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
2622
+ which encloses the item identified by the given index."""
2623
+ return self._getints(self.tk.call(self._w, 'bbox', index)) or None
2624
+ def curselection(self):
2625
+ """Return the indices of currently selected item."""
2626
+ return self._getints(self.tk.call(self._w, 'curselection')) or ()
2627
+ def delete(self, first, last=None):
2628
+ """Delete items from FIRST to LAST (included)."""
2629
+ self.tk.call(self._w, 'delete', first, last)
2630
+ def get(self, first, last=None):
2631
+ """Get list of items from FIRST to LAST (included)."""
2632
+ if last is not None:
2633
+ return self.tk.splitlist(self.tk.call(
2634
+ self._w, 'get', first, last))
2635
+ else:
2636
+ return self.tk.call(self._w, 'get', first)
2637
+ def index(self, index):
2638
+ """Return index of item identified with INDEX."""
2639
+ i = self.tk.call(self._w, 'index', index)
2640
+ if i == 'none': return None
2641
+ return getint(i)
2642
+ def insert(self, index, *elements):
2643
+ """Insert ELEMENTS at INDEX."""
2644
+ self.tk.call((self._w, 'insert', index) + elements)
2645
+ def nearest(self, y):
2646
+ """Get index of item which is nearest to y coordinate Y."""
2647
+ return getint(self.tk.call(
2648
+ self._w, 'nearest', y))
2649
+ def scan_mark(self, x, y):
2650
+ """Remember the current X, Y coordinates."""
2651
+ self.tk.call(self._w, 'scan', 'mark', x, y)
2652
+ def scan_dragto(self, x, y):
2653
+ """Adjust the view of the listbox to 10 times the
2654
+ difference between X and Y and the coordinates given in
2655
+ scan_mark."""
2656
+ self.tk.call(self._w, 'scan', 'dragto', x, y)
2657
+ def see(self, index):
2658
+ """Scroll such that INDEX is visible."""
2659
+ self.tk.call(self._w, 'see', index)
2660
+ def selection_anchor(self, index):
2661
+ """Set the fixed end oft the selection to INDEX."""
2662
+ self.tk.call(self._w, 'selection', 'anchor', index)
2663
+ select_anchor = selection_anchor
2664
+ def selection_clear(self, first, last=None):
2665
+ """Clear the selection from FIRST to LAST (included)."""
2666
+ self.tk.call(self._w,
2667
+ 'selection', 'clear', first, last)
2668
+ select_clear = selection_clear
2669
+ def selection_includes(self, index):
2670
+ """Return 1 if INDEX is part of the selection."""
2671
+ return self.tk.getboolean(self.tk.call(
2672
+ self._w, 'selection', 'includes', index))
2673
+ select_includes = selection_includes
2674
+ def selection_set(self, first, last=None):
2675
+ """Set the selection from FIRST to LAST (included) without
2676
+ changing the currently selected elements."""
2677
+ self.tk.call(self._w, 'selection', 'set', first, last)
2678
+ select_set = selection_set
2679
+ def size(self):
2680
+ """Return the number of elements in the listbox."""
2681
+ return getint(self.tk.call(self._w, 'size'))
2682
+ def itemcget(self, index, option):
2683
+ """Return the resource value for an ITEM and an OPTION."""
2684
+ return self.tk.call(
2685
+ (self._w, 'itemcget') + (index, '-'+option))
2686
+ def itemconfigure(self, index, cnf=None, **kw):
2687
+ """Configure resources of an ITEM.
2688
+
2689
+ The values for resources are specified as keyword arguments.
2690
+ To get an overview about the allowed keyword arguments
2691
+ call the method without arguments.
2692
+ Valid resource names: background, bg, foreground, fg,
2693
+ selectbackground, selectforeground."""
2694
+ return self._configure(('itemconfigure', index), cnf, kw)
2695
+ itemconfig = itemconfigure
2696
+
2697
+ class Menu(Widget):
2698
+ """Menu widget which allows to display menu bars, pull-down menus and pop-up menus."""
2699
+ def __init__(self, master=None, cnf={}, **kw):
2700
+ """Construct menu widget with the parent MASTER.
2701
+
2702
+ Valid resource names: activebackground, activeborderwidth,
2703
+ activeforeground, background, bd, bg, borderwidth, cursor,
2704
+ disabledforeground, fg, font, foreground, postcommand, relief,
2705
+ selectcolor, takefocus, tearoff, tearoffcommand, title, type."""
2706
+ Widget.__init__(self, master, 'menu', cnf, kw)
2707
+ def tk_bindForTraversal(self):
2708
+ # obsolete since Tk 4.0
2709
+ import warnings
2710
+ warnings.warn('tk_bindForTraversal() does nothing and '
2711
+ 'will be removed in 3.6',
2712
+ DeprecationWarning, stacklevel=2)
2713
+ def tk_mbPost(self):
2714
+ self.tk.call('tk_mbPost', self._w)
2715
+ def tk_mbUnpost(self):
2716
+ self.tk.call('tk_mbUnpost')
2717
+ def tk_traverseToMenu(self, char):
2718
+ self.tk.call('tk_traverseToMenu', self._w, char)
2719
+ def tk_traverseWithinMenu(self, char):
2720
+ self.tk.call('tk_traverseWithinMenu', self._w, char)
2721
+ def tk_getMenuButtons(self):
2722
+ return self.tk.call('tk_getMenuButtons', self._w)
2723
+ def tk_nextMenu(self, count):
2724
+ self.tk.call('tk_nextMenu', count)
2725
+ def tk_nextMenuEntry(self, count):
2726
+ self.tk.call('tk_nextMenuEntry', count)
2727
+ def tk_invokeMenu(self):
2728
+ self.tk.call('tk_invokeMenu', self._w)
2729
+ def tk_firstMenu(self):
2730
+ self.tk.call('tk_firstMenu', self._w)
2731
+ def tk_mbButtonDown(self):
2732
+ self.tk.call('tk_mbButtonDown', self._w)
2733
+ def tk_popup(self, x, y, entry=""):
2734
+ """Post the menu at position X,Y with entry ENTRY."""
2735
+ self.tk.call('tk_popup', self._w, x, y, entry)
2736
+ def activate(self, index):
2737
+ """Activate entry at INDEX."""
2738
+ self.tk.call(self._w, 'activate', index)
2739
+ def add(self, itemType, cnf={}, **kw):
2740
+ """Internal function."""
2741
+ self.tk.call((self._w, 'add', itemType) +
2742
+ self._options(cnf, kw))
2743
+ def add_cascade(self, cnf={}, **kw):
2744
+ """Add hierarchical menu item."""
2745
+ self.add('cascade', cnf or kw)
2746
+ def add_checkbutton(self, cnf={}, **kw):
2747
+ """Add checkbutton menu item."""
2748
+ self.add('checkbutton', cnf or kw)
2749
+ def add_command(self, cnf={}, **kw):
2750
+ """Add command menu item."""
2751
+ self.add('command', cnf or kw)
2752
+ def add_radiobutton(self, cnf={}, **kw):
2753
+ """Addd radio menu item."""
2754
+ self.add('radiobutton', cnf or kw)
2755
+ def add_separator(self, cnf={}, **kw):
2756
+ """Add separator."""
2757
+ self.add('separator', cnf or kw)
2758
+ def insert(self, index, itemType, cnf={}, **kw):
2759
+ """Internal function."""
2760
+ self.tk.call((self._w, 'insert', index, itemType) +
2761
+ self._options(cnf, kw))
2762
+ def insert_cascade(self, index, cnf={}, **kw):
2763
+ """Add hierarchical menu item at INDEX."""
2764
+ self.insert(index, 'cascade', cnf or kw)
2765
+ def insert_checkbutton(self, index, cnf={}, **kw):
2766
+ """Add checkbutton menu item at INDEX."""
2767
+ self.insert(index, 'checkbutton', cnf or kw)
2768
+ def insert_command(self, index, cnf={}, **kw):
2769
+ """Add command menu item at INDEX."""
2770
+ self.insert(index, 'command', cnf or kw)
2771
+ def insert_radiobutton(self, index, cnf={}, **kw):
2772
+ """Addd radio menu item at INDEX."""
2773
+ self.insert(index, 'radiobutton', cnf or kw)
2774
+ def insert_separator(self, index, cnf={}, **kw):
2775
+ """Add separator at INDEX."""
2776
+ self.insert(index, 'separator', cnf or kw)
2777
+ def delete(self, index1, index2=None):
2778
+ """Delete menu items between INDEX1 and INDEX2 (included)."""
2779
+ if index2 is None:
2780
+ index2 = index1
2781
+
2782
+ num_index1, num_index2 = self.index(index1), self.index(index2)
2783
+ if (num_index1 is None) or (num_index2 is None):
2784
+ num_index1, num_index2 = 0, -1
2785
+
2786
+ for i in range(num_index1, num_index2 + 1):
2787
+ if 'command' in self.entryconfig(i):
2788
+ c = str(self.entrycget(i, 'command'))
2789
+ if c:
2790
+ self.deletecommand(c)
2791
+ self.tk.call(self._w, 'delete', index1, index2)
2792
+ def entrycget(self, index, option):
2793
+ """Return the resource value of an menu item for OPTION at INDEX."""
2794
+ return self.tk.call(self._w, 'entrycget', index, '-' + option)
2795
+ def entryconfigure(self, index, cnf=None, **kw):
2796
+ """Configure a menu item at INDEX."""
2797
+ return self._configure(('entryconfigure', index), cnf, kw)
2798
+ entryconfig = entryconfigure
2799
+ def index(self, index):
2800
+ """Return the index of a menu item identified by INDEX."""
2801
+ i = self.tk.call(self._w, 'index', index)
2802
+ if i == 'none': return None
2803
+ return getint(i)
2804
+ def invoke(self, index):
2805
+ """Invoke a menu item identified by INDEX and execute
2806
+ the associated command."""
2807
+ return self.tk.call(self._w, 'invoke', index)
2808
+ def post(self, x, y):
2809
+ """Display a menu at position X,Y."""
2810
+ self.tk.call(self._w, 'post', x, y)
2811
+ def type(self, index):
2812
+ """Return the type of the menu item at INDEX."""
2813
+ return self.tk.call(self._w, 'type', index)
2814
+ def unpost(self):
2815
+ """Unmap a menu."""
2816
+ self.tk.call(self._w, 'unpost')
2817
+ def xposition(self, index): # new in Tk 8.5
2818
+ """Return the x-position of the leftmost pixel of the menu item
2819
+ at INDEX."""
2820
+ return getint(self.tk.call(self._w, 'xposition', index))
2821
+ def yposition(self, index):
2822
+ """Return the y-position of the topmost pixel of the menu item at INDEX."""
2823
+ return getint(self.tk.call(
2824
+ self._w, 'yposition', index))
2825
+
2826
+ class Menubutton(Widget):
2827
+ """Menubutton widget, obsolete since Tk8.0."""
2828
+ def __init__(self, master=None, cnf={}, **kw):
2829
+ Widget.__init__(self, master, 'menubutton', cnf, kw)
2830
+
2831
+ class Message(Widget):
2832
+ """Message widget to display multiline text. Obsolete since Label does it too."""
2833
+ def __init__(self, master=None, cnf={}, **kw):
2834
+ Widget.__init__(self, master, 'message', cnf, kw)
2835
+
2836
+ class Radiobutton(Widget):
2837
+ """Radiobutton widget which shows only one of several buttons in on-state."""
2838
+ def __init__(self, master=None, cnf={}, **kw):
2839
+ """Construct a radiobutton widget with the parent MASTER.
2840
+
2841
+ Valid resource names: activebackground, activeforeground, anchor,
2842
+ background, bd, bg, bitmap, borderwidth, command, cursor,
2843
+ disabledforeground, fg, font, foreground, height,
2844
+ highlightbackground, highlightcolor, highlightthickness, image,
2845
+ indicatoron, justify, padx, pady, relief, selectcolor, selectimage,
2846
+ state, takefocus, text, textvariable, underline, value, variable,
2847
+ width, wraplength."""
2848
+ Widget.__init__(self, master, 'radiobutton', cnf, kw)
2849
+ def deselect(self):
2850
+ """Put the button in off-state."""
2851
+
2852
+ self.tk.call(self._w, 'deselect')
2853
+ def flash(self):
2854
+ """Flash the button."""
2855
+ self.tk.call(self._w, 'flash')
2856
+ def invoke(self):
2857
+ """Toggle the button and invoke a command if given as resource."""
2858
+ return self.tk.call(self._w, 'invoke')
2859
+ def select(self):
2860
+ """Put the button in on-state."""
2861
+ self.tk.call(self._w, 'select')
2862
+
2863
+ class Scale(Widget):
2864
+ """Scale widget which can display a numerical scale."""
2865
+ def __init__(self, master=None, cnf={}, **kw):
2866
+ """Construct a scale widget with the parent MASTER.
2867
+
2868
+ Valid resource names: activebackground, background, bigincrement, bd,
2869
+ bg, borderwidth, command, cursor, digits, fg, font, foreground, from,
2870
+ highlightbackground, highlightcolor, highlightthickness, label,
2871
+ length, orient, relief, repeatdelay, repeatinterval, resolution,
2872
+ showvalue, sliderlength, sliderrelief, state, takefocus,
2873
+ tickinterval, to, troughcolor, variable, width."""
2874
+ Widget.__init__(self, master, 'scale', cnf, kw)
2875
+ def get(self):
2876
+ """Get the current value as integer or float."""
2877
+ value = self.tk.call(self._w, 'get')
2878
+ try:
2879
+ return getint(value)
2880
+ except ValueError:
2881
+ return getdouble(value)
2882
+ def set(self, value):
2883
+ """Set the value to VALUE."""
2884
+ self.tk.call(self._w, 'set', value)
2885
+ def coords(self, value=None):
2886
+ """Return a tuple (X,Y) of the point along the centerline of the
2887
+ trough that corresponds to VALUE or the current value if None is
2888
+ given."""
2889
+
2890
+ return self._getints(self.tk.call(self._w, 'coords', value))
2891
+ def identify(self, x, y):
2892
+ """Return where the point X,Y lies. Valid return values are "slider",
2893
+ "though1" and "though2"."""
2894
+ return self.tk.call(self._w, 'identify', x, y)
2895
+
2896
+ class Scrollbar(Widget):
2897
+ """Scrollbar widget which displays a slider at a certain position."""
2898
+ def __init__(self, master=None, cnf={}, **kw):
2899
+ """Construct a scrollbar widget with the parent MASTER.
2900
+
2901
+ Valid resource names: activebackground, activerelief,
2902
+ background, bd, bg, borderwidth, command, cursor,
2903
+ elementborderwidth, highlightbackground,
2904
+ highlightcolor, highlightthickness, jump, orient,
2905
+ relief, repeatdelay, repeatinterval, takefocus,
2906
+ troughcolor, width."""
2907
+ Widget.__init__(self, master, 'scrollbar', cnf, kw)
2908
+ def activate(self, index):
2909
+ """Display the element at INDEX with activebackground and activerelief.
2910
+ INDEX can be "arrow1","slider" or "arrow2"."""
2911
+ self.tk.call(self._w, 'activate', index)
2912
+ def delta(self, deltax, deltay):
2913
+ """Return the fractional change of the scrollbar setting if it
2914
+ would be moved by DELTAX or DELTAY pixels."""
2915
+ return getdouble(
2916
+ self.tk.call(self._w, 'delta', deltax, deltay))
2917
+ def fraction(self, x, y):
2918
+ """Return the fractional value which corresponds to a slider
2919
+ position of X,Y."""
2920
+ return getdouble(self.tk.call(self._w, 'fraction', x, y))
2921
+ def identify(self, x, y):
2922
+ """Return the element under position X,Y as one of
2923
+ "arrow1","slider","arrow2" or ""."""
2924
+ return self.tk.call(self._w, 'identify', x, y)
2925
+ def get(self):
2926
+ """Return the current fractional values (upper and lower end)
2927
+ of the slider position."""
2928
+ return self._getdoubles(self.tk.call(self._w, 'get'))
2929
+ def set(self, *args):
2930
+ """Set the fractional values of the slider position (upper and
2931
+ lower ends as value between 0 and 1)."""
2932
+ self.tk.call((self._w, 'set') + args)
2933
+
2934
+
2935
+
2936
+ class Text(Widget, XView, YView):
2937
+ """Text widget which can display text in various forms."""
2938
+ def __init__(self, master=None, cnf={}, **kw):
2939
+ """Construct a text widget with the parent MASTER.
2940
+
2941
+ STANDARD OPTIONS
2942
+
2943
+ background, borderwidth, cursor,
2944
+ exportselection, font, foreground,
2945
+ highlightbackground, highlightcolor,
2946
+ highlightthickness, insertbackground,
2947
+ insertborderwidth, insertofftime,
2948
+ insertontime, insertwidth, padx, pady,
2949
+ relief, selectbackground,
2950
+ selectborderwidth, selectforeground,
2951
+ setgrid, takefocus,
2952
+ xscrollcommand, yscrollcommand,
2953
+
2954
+ WIDGET-SPECIFIC OPTIONS
2955
+
2956
+ autoseparators, height, maxundo,
2957
+ spacing1, spacing2, spacing3,
2958
+ state, tabs, undo, width, wrap,
2959
+
2960
+ """
2961
+ Widget.__init__(self, master, 'text', cnf, kw)
2962
+ def bbox(self, index):
2963
+ """Return a tuple of (x,y,width,height) which gives the bounding
2964
+ box of the visible part of the character at the given index."""
2965
+ return self._getints(
2966
+ self.tk.call(self._w, 'bbox', index)) or None
2967
+ def tk_textSelectTo(self, index):
2968
+ self.tk.call('tk_textSelectTo', self._w, index)
2969
+ def tk_textBackspace(self):
2970
+ self.tk.call('tk_textBackspace', self._w)
2971
+ def tk_textIndexCloser(self, a, b, c):
2972
+ self.tk.call('tk_textIndexCloser', self._w, a, b, c)
2973
+ def tk_textResetAnchor(self, index):
2974
+ self.tk.call('tk_textResetAnchor', self._w, index)
2975
+ def compare(self, index1, op, index2):
2976
+ """Return whether between index INDEX1 and index INDEX2 the
2977
+ relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=."""
2978
+ return self.tk.getboolean(self.tk.call(
2979
+ self._w, 'compare', index1, op, index2))
2980
+ def count(self, index1, index2, *args): # new in Tk 8.5
2981
+ """Counts the number of relevant things between the two indices.
2982
+ If index1 is after index2, the result will be a negative number
2983
+ (and this holds for each of the possible options).
2984
+
2985
+ The actual items which are counted depends on the options given by
2986
+ args. The result is a list of integers, one for the result of each
2987
+ counting option given. Valid counting options are "chars",
2988
+ "displaychars", "displayindices", "displaylines", "indices",
2989
+ "lines", "xpixels" and "ypixels". There is an additional possible
2990
+ option "update", which if given then all subsequent options ensure
2991
+ that any possible out of date information is recalculated."""
2992
+ args = ['-%s' % arg for arg in args if not arg.startswith('-')]
2993
+ args += [index1, index2]
2994
+ res = self.tk.call(self._w, 'count', *args) or None
2995
+ if res is not None and len(args) <= 3:
2996
+ return (res, )
2997
+ else:
2998
+ return res
2999
+ def debug(self, boolean=None):
3000
+ """Turn on the internal consistency checks of the B-Tree inside the text
3001
+ widget according to BOOLEAN."""
3002
+ if boolean is None:
3003
+ return self.tk.getboolean(self.tk.call(self._w, 'debug'))
3004
+ self.tk.call(self._w, 'debug', boolean)
3005
+ def delete(self, index1, index2=None):
3006
+ """Delete the characters between INDEX1 and INDEX2 (not included)."""
3007
+ self.tk.call(self._w, 'delete', index1, index2)
3008
+ def dlineinfo(self, index):
3009
+ """Return tuple (x,y,width,height,baseline) giving the bounding box
3010
+ and baseline position of the visible part of the line containing
3011
+ the character at INDEX."""
3012
+ return self._getints(self.tk.call(self._w, 'dlineinfo', index))
3013
+ def dump(self, index1, index2=None, command=None, **kw):
3014
+ """Return the contents of the widget between index1 and index2.
3015
+
3016
+ The type of contents returned in filtered based on the keyword
3017
+ parameters; if 'all', 'image', 'mark', 'tag', 'text', or 'window' are
3018
+ given and true, then the corresponding items are returned. The result
3019
+ is a list of triples of the form (key, value, index). If none of the
3020
+ keywords are true then 'all' is used by default.
3021
+
3022
+ If the 'command' argument is given, it is called once for each element
3023
+ of the list of triples, with the values of each triple serving as the
3024
+ arguments to the function. In this case the list is not returned."""
3025
+ args = []
3026
+ func_name = None
3027
+ result = None
3028
+ if not command:
3029
+ # Never call the dump command without the -command flag, since the
3030
+ # output could involve Tcl quoting and would be a pain to parse
3031
+ # right. Instead just set the command to build a list of triples
3032
+ # as if we had done the parsing.
3033
+ result = []
3034
+ def append_triple(key, value, index, result=result):
3035
+ result.append((key, value, index))
3036
+ command = append_triple
3037
+ try:
3038
+ if not isinstance(command, str):
3039
+ func_name = command = self._register(command)
3040
+ args += ["-command", command]
3041
+ for key in kw:
3042
+ if kw[key]: args.append("-" + key)
3043
+ args.append(index1)
3044
+ if index2:
3045
+ args.append(index2)
3046
+ self.tk.call(self._w, "dump", *args)
3047
+ return result
3048
+ finally:
3049
+ if func_name:
3050
+ self.deletecommand(func_name)
3051
+
3052
+ ## new in tk8.4
3053
+ def edit(self, *args):
3054
+ """Internal method
3055
+
3056
+ This method controls the undo mechanism and
3057
+ the modified flag. The exact behavior of the
3058
+ command depends on the option argument that
3059
+ follows the edit argument. The following forms
3060
+ of the command are currently supported:
3061
+
3062
+ edit_modified, edit_redo, edit_reset, edit_separator
3063
+ and edit_undo
3064
+
3065
+ """
3066
+ return self.tk.call(self._w, 'edit', *args)
3067
+
3068
+ def edit_modified(self, arg=None):
3069
+ """Get or Set the modified flag
3070
+
3071
+ If arg is not specified, returns the modified
3072
+ flag of the widget. The insert, delete, edit undo and
3073
+ edit redo commands or the user can set or clear the
3074
+ modified flag. If boolean is specified, sets the
3075
+ modified flag of the widget to arg.
3076
+ """
3077
+ return self.edit("modified", arg)
3078
+
3079
+ def edit_redo(self):
3080
+ """Redo the last undone edit
3081
+
3082
+ When the undo option is true, reapplies the last
3083
+ undone edits provided no other edits were done since
3084
+ then. Generates an error when the redo stack is empty.
3085
+ Does nothing when the undo option is false.
3086
+ """
3087
+ return self.edit("redo")
3088
+
3089
+ def edit_reset(self):
3090
+ """Clears the undo and redo stacks
3091
+ """
3092
+ return self.edit("reset")
3093
+
3094
+ def edit_separator(self):
3095
+ """Inserts a separator (boundary) on the undo stack.
3096
+
3097
+ Does nothing when the undo option is false
3098
+ """
3099
+ return self.edit("separator")
3100
+
3101
+ def edit_undo(self):
3102
+ """Undoes the last edit action
3103
+
3104
+ If the undo option is true. An edit action is defined
3105
+ as all the insert and delete commands that are recorded
3106
+ on the undo stack in between two separators. Generates
3107
+ an error when the undo stack is empty. Does nothing
3108
+ when the undo option is false
3109
+ """
3110
+ return self.edit("undo")
3111
+
3112
+ def get(self, index1, index2=None):
3113
+ """Return the text from INDEX1 to INDEX2 (not included)."""
3114
+ return self.tk.call(self._w, 'get', index1, index2)
3115
+ # (Image commands are new in 8.0)
3116
+ def image_cget(self, index, option):
3117
+ """Return the value of OPTION of an embedded image at INDEX."""
3118
+ if option[:1] != "-":
3119
+ option = "-" + option
3120
+ if option[-1:] == "_":
3121
+ option = option[:-1]
3122
+ return self.tk.call(self._w, "image", "cget", index, option)
3123
+ def image_configure(self, index, cnf=None, **kw):
3124
+ """Configure an embedded image at INDEX."""
3125
+ return self._configure(('image', 'configure', index), cnf, kw)
3126
+ def image_create(self, index, cnf={}, **kw):
3127
+ """Create an embedded image at INDEX."""
3128
+ return self.tk.call(
3129
+ self._w, "image", "create", index,
3130
+ *self._options(cnf, kw))
3131
+ def image_names(self):
3132
+ """Return all names of embedded images in this widget."""
3133
+ return self.tk.call(self._w, "image", "names")
3134
+ def index(self, index):
3135
+ """Return the index in the form line.char for INDEX."""
3136
+ return str(self.tk.call(self._w, 'index', index))
3137
+ def insert(self, index, chars, *args):
3138
+ """Insert CHARS before the characters at INDEX. An additional
3139
+ tag can be given in ARGS. Additional CHARS and tags can follow in ARGS."""
3140
+ self.tk.call((self._w, 'insert', index, chars) + args)
3141
+ def mark_gravity(self, markName, direction=None):
3142
+ """Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT).
3143
+ Return the current value if None is given for DIRECTION."""
3144
+ return self.tk.call(
3145
+ (self._w, 'mark', 'gravity', markName, direction))
3146
+ def mark_names(self):
3147
+ """Return all mark names."""
3148
+ return self.tk.splitlist(self.tk.call(
3149
+ self._w, 'mark', 'names'))
3150
+ def mark_set(self, markName, index):
3151
+ """Set mark MARKNAME before the character at INDEX."""
3152
+ self.tk.call(self._w, 'mark', 'set', markName, index)
3153
+ def mark_unset(self, *markNames):
3154
+ """Delete all marks in MARKNAMES."""
3155
+ self.tk.call((self._w, 'mark', 'unset') + markNames)
3156
+ def mark_next(self, index):
3157
+ """Return the name of the next mark after INDEX."""
3158
+ return self.tk.call(self._w, 'mark', 'next', index) or None
3159
+ def mark_previous(self, index):
3160
+ """Return the name of the previous mark before INDEX."""
3161
+ return self.tk.call(self._w, 'mark', 'previous', index) or None
3162
+ def peer_create(self, newPathName, cnf={}, **kw): # new in Tk 8.5
3163
+ """Creates a peer text widget with the given newPathName, and any
3164
+ optional standard configuration options. By default the peer will
3165
+ have the same start and end line as the parent widget, but
3166
+ these can be overriden with the standard configuration options."""
3167
+ self.tk.call(self._w, 'peer', 'create', newPathName,
3168
+ *self._options(cnf, kw))
3169
+ def peer_names(self): # new in Tk 8.5
3170
+ """Returns a list of peers of this widget (this does not include
3171
+ the widget itself)."""
3172
+ return self.tk.splitlist(self.tk.call(self._w, 'peer', 'names'))
3173
+ def replace(self, index1, index2, chars, *args): # new in Tk 8.5
3174
+ """Replaces the range of characters between index1 and index2 with
3175
+ the given characters and tags specified by args.
3176
+
3177
+ See the method insert for some more information about args, and the
3178
+ method delete for information about the indices."""
3179
+ self.tk.call(self._w, 'replace', index1, index2, chars, *args)
3180
+ def scan_mark(self, x, y):
3181
+ """Remember the current X, Y coordinates."""
3182
+ self.tk.call(self._w, 'scan', 'mark', x, y)
3183
+ def scan_dragto(self, x, y):
3184
+ """Adjust the view of the text to 10 times the
3185
+ difference between X and Y and the coordinates given in
3186
+ scan_mark."""
3187
+ self.tk.call(self._w, 'scan', 'dragto', x, y)
3188
+ def search(self, pattern, index, stopindex=None,
3189
+ forwards=None, backwards=None, exact=None,
3190
+ regexp=None, nocase=None, count=None, elide=None):
3191
+ """Search PATTERN beginning from INDEX until STOPINDEX.
3192
+ Return the index of the first character of a match or an
3193
+ empty string."""
3194
+ args = [self._w, 'search']
3195
+ if forwards: args.append('-forwards')
3196
+ if backwards: args.append('-backwards')
3197
+ if exact: args.append('-exact')
3198
+ if regexp: args.append('-regexp')
3199
+ if nocase: args.append('-nocase')
3200
+ if elide: args.append('-elide')
3201
+ if count: args.append('-count'); args.append(count)
3202
+ if pattern and pattern[0] == '-': args.append('--')
3203
+ args.append(pattern)
3204
+ args.append(index)
3205
+ if stopindex: args.append(stopindex)
3206
+ return str(self.tk.call(tuple(args)))
3207
+ def see(self, index):
3208
+ """Scroll such that the character at INDEX is visible."""
3209
+ self.tk.call(self._w, 'see', index)
3210
+ def tag_add(self, tagName, index1, *args):
3211
+ """Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS.
3212
+ Additional pairs of indices may follow in ARGS."""
3213
+ self.tk.call(
3214
+ (self._w, 'tag', 'add', tagName, index1) + args)
3215
+ def tag_unbind(self, tagName, sequence, funcid=None):
3216
+ """Unbind for all characters with TAGNAME for event SEQUENCE the
3217
+ function identified with FUNCID."""
3218
+ self.tk.call(self._w, 'tag', 'bind', tagName, sequence, '')
3219
+ if funcid:
3220
+ self.deletecommand(funcid)
3221
+ def tag_bind(self, tagName, sequence, func, add=None):
3222
+ """Bind to all characters with TAGNAME at event SEQUENCE a call to function FUNC.
3223
+
3224
+ An additional boolean parameter ADD specifies whether FUNC will be
3225
+ called additionally to the other bound function or whether it will
3226
+ replace the previous function. See bind for the return value."""
3227
+ return self._bind((self._w, 'tag', 'bind', tagName),
3228
+ sequence, func, add)
3229
+ def tag_cget(self, tagName, option):
3230
+ """Return the value of OPTION for tag TAGNAME."""
3231
+ if option[:1] != '-':
3232
+ option = '-' + option
3233
+ if option[-1:] == '_':
3234
+ option = option[:-1]
3235
+ return self.tk.call(self._w, 'tag', 'cget', tagName, option)
3236
+ def tag_configure(self, tagName, cnf=None, **kw):
3237
+ """Configure a tag TAGNAME."""
3238
+ return self._configure(('tag', 'configure', tagName), cnf, kw)
3239
+ tag_config = tag_configure
3240
+ def tag_delete(self, *tagNames):
3241
+ """Delete all tags in TAGNAMES."""
3242
+ self.tk.call((self._w, 'tag', 'delete') + tagNames)
3243
+ def tag_lower(self, tagName, belowThis=None):
3244
+ """Change the priority of tag TAGNAME such that it is lower
3245
+ than the priority of BELOWTHIS."""
3246
+ self.tk.call(self._w, 'tag', 'lower', tagName, belowThis)
3247
+ def tag_names(self, index=None):
3248
+ """Return a list of all tag names."""
3249
+ return self.tk.splitlist(
3250
+ self.tk.call(self._w, 'tag', 'names', index))
3251
+ def tag_nextrange(self, tagName, index1, index2=None):
3252
+ """Return a list of start and end index for the first sequence of
3253
+ characters between INDEX1 and INDEX2 which all have tag TAGNAME.
3254
+ The text is searched forward from INDEX1."""
3255
+ return self.tk.splitlist(self.tk.call(
3256
+ self._w, 'tag', 'nextrange', tagName, index1, index2))
3257
+ def tag_prevrange(self, tagName, index1, index2=None):
3258
+ """Return a list of start and end index for the first sequence of
3259
+ characters between INDEX1 and INDEX2 which all have tag TAGNAME.
3260
+ The text is searched backwards from INDEX1."""
3261
+ return self.tk.splitlist(self.tk.call(
3262
+ self._w, 'tag', 'prevrange', tagName, index1, index2))
3263
+ def tag_raise(self, tagName, aboveThis=None):
3264
+ """Change the priority of tag TAGNAME such that it is higher
3265
+ than the priority of ABOVETHIS."""
3266
+ self.tk.call(
3267
+ self._w, 'tag', 'raise', tagName, aboveThis)
3268
+ def tag_ranges(self, tagName):
3269
+ """Return a list of ranges of text which have tag TAGNAME."""
3270
+ return self.tk.splitlist(self.tk.call(
3271
+ self._w, 'tag', 'ranges', tagName))
3272
+ def tag_remove(self, tagName, index1, index2=None):
3273
+ """Remove tag TAGNAME from all characters between INDEX1 and INDEX2."""
3274
+ self.tk.call(
3275
+ self._w, 'tag', 'remove', tagName, index1, index2)
3276
+ def window_cget(self, index, option):
3277
+ """Return the value of OPTION of an embedded window at INDEX."""
3278
+ if option[:1] != '-':
3279
+ option = '-' + option
3280
+ if option[-1:] == '_':
3281
+ option = option[:-1]
3282
+ return self.tk.call(self._w, 'window', 'cget', index, option)
3283
+ def window_configure(self, index, cnf=None, **kw):
3284
+ """Configure an embedded window at INDEX."""
3285
+ return self._configure(('window', 'configure', index), cnf, kw)
3286
+ window_config = window_configure
3287
+ def window_create(self, index, cnf={}, **kw):
3288
+ """Create a window at INDEX."""
3289
+ self.tk.call(
3290
+ (self._w, 'window', 'create', index)
3291
+ + self._options(cnf, kw))
3292
+ def window_names(self):
3293
+ """Return all names of embedded windows in this widget."""
3294
+ return self.tk.splitlist(
3295
+ self.tk.call(self._w, 'window', 'names'))
3296
+ def yview_pickplace(self, *what):
3297
+ """Obsolete function, use see."""
3298
+ self.tk.call((self._w, 'yview', '-pickplace') + what)
3299
+
3300
+
3301
+ class _setit:
3302
+ """Internal class. It wraps the command in the widget OptionMenu."""
3303
+ def __init__(self, var, value, callback=None):
3304
+ self.__value = value
3305
+ self.__var = var
3306
+ self.__callback = callback
3307
+ def __call__(self, *args):
3308
+ self.__var.set(self.__value)
3309
+ if self.__callback:
3310
+ self.__callback(self.__value, *args)
3311
+
3312
+ class OptionMenu(Menubutton):
3313
+ """OptionMenu which allows the user to select a value from a menu."""
3314
+ def __init__(self, master, variable, value, *values, **kwargs):
3315
+ """Construct an optionmenu widget with the parent MASTER, with
3316
+ the resource textvariable set to VARIABLE, the initially selected
3317
+ value VALUE, the other menu values VALUES and an additional
3318
+ keyword argument command."""
3319
+ kw = {"borderwidth": 2, "textvariable": variable,
3320
+ "indicatoron": 1, "relief": RAISED, "anchor": "c",
3321
+ "highlightthickness": 2}
3322
+ Widget.__init__(self, master, "menubutton", kw)
3323
+ self.widgetName = 'tk_optionMenu'
3324
+ menu = self.__menu = Menu(self, name="menu", tearoff=0)
3325
+ self.menuname = menu._w
3326
+ # 'command' is the only supported keyword
3327
+ callback = kwargs.get('command')
3328
+ if 'command' in kwargs:
3329
+ del kwargs['command']
3330
+ if kwargs:
3331
+ raise TclError('unknown option -'+kwargs.keys()[0])
3332
+ menu.add_command(label=value,
3333
+ command=_setit(variable, value, callback))
3334
+ for v in values:
3335
+ menu.add_command(label=v,
3336
+ command=_setit(variable, v, callback))
3337
+ self["menu"] = menu
3338
+
3339
+ def __getitem__(self, name):
3340
+ if name == 'menu':
3341
+ return self.__menu
3342
+ return Widget.__getitem__(self, name)
3343
+
3344
+ def destroy(self):
3345
+ """Destroy this widget and the associated menu."""
3346
+ Menubutton.destroy(self)
3347
+ self.__menu = None
3348
+
3349
+ class Image:
3350
+ """Base class for images."""
3351
+ _last_id = 0
3352
+ def __init__(self, imgtype, name=None, cnf={}, master=None, **kw):
3353
+ self.name = None
3354
+ if not master:
3355
+ master = _default_root
3356
+ if not master:
3357
+ raise RuntimeError('Too early to create image')
3358
+ self.tk = getattr(master, 'tk', master)
3359
+ if not name:
3360
+ Image._last_id += 1
3361
+ name = "pyimage%r" % (Image._last_id,) # tk itself would use image<x>
3362
+ # The following is needed for systems where id(x)
3363
+ # can return a negative number, such as Linux/m68k:
3364
+ if name[0] == '-': name = '_' + name[1:]
3365
+ if kw and cnf: cnf = _cnfmerge((cnf, kw))
3366
+ elif kw: cnf = kw
3367
+ options = ()
3368
+ for k, v in cnf.items():
3369
+ if callable(v):
3370
+ v = self._register(v)
3371
+ options = options + ('-'+k, v)
3372
+ self.tk.call(('image', 'create', imgtype, name,) + options)
3373
+ self.name = name
3374
+ def __str__(self): return self.name
3375
+ def __del__(self):
3376
+ if self.name:
3377
+ try:
3378
+ self.tk.call('image', 'delete', self.name)
3379
+ except TclError:
3380
+ # May happen if the root was destroyed
3381
+ pass
3382
+ def __setitem__(self, key, value):
3383
+ self.tk.call(self.name, 'configure', '-'+key, value)
3384
+ def __getitem__(self, key):
3385
+ return self.tk.call(self.name, 'configure', '-'+key)
3386
+ def configure(self, **kw):
3387
+ """Configure the image."""
3388
+ res = ()
3389
+ for k, v in _cnfmerge(kw).items():
3390
+ if v is not None:
3391
+ if k[-1] == '_': k = k[:-1]
3392
+ if callable(v):
3393
+ v = self._register(v)
3394
+ res = res + ('-'+k, v)
3395
+ self.tk.call((self.name, 'config') + res)
3396
+ config = configure
3397
+ def height(self):
3398
+ """Return the height of the image."""
3399
+ return getint(
3400
+ self.tk.call('image', 'height', self.name))
3401
+ def type(self):
3402
+ """Return the type of the imgage, e.g. "photo" or "bitmap"."""
3403
+ return self.tk.call('image', 'type', self.name)
3404
+ def width(self):
3405
+ """Return the width of the image."""
3406
+ return getint(
3407
+ self.tk.call('image', 'width', self.name))
3408
+
3409
+ class PhotoImage(Image):
3410
+ """Widget which can display colored images in GIF, PPM/PGM format."""
3411
+ def __init__(self, name=None, cnf={}, master=None, **kw):
3412
+ """Create an image with NAME.
3413
+
3414
+ Valid resource names: data, format, file, gamma, height, palette,
3415
+ width."""
3416
+ Image.__init__(self, 'photo', name, cnf, master, **kw)
3417
+ def blank(self):
3418
+ """Display a transparent image."""
3419
+ self.tk.call(self.name, 'blank')
3420
+ def cget(self, option):
3421
+ """Return the value of OPTION."""
3422
+ return self.tk.call(self.name, 'cget', '-' + option)
3423
+ # XXX config
3424
+ def __getitem__(self, key):
3425
+ return self.tk.call(self.name, 'cget', '-' + key)
3426
+ # XXX copy -from, -to, ...?
3427
+ def copy(self):
3428
+ """Return a new PhotoImage with the same image as this widget."""
3429
+ destImage = PhotoImage(master=self.tk)
3430
+ self.tk.call(destImage, 'copy', self.name)
3431
+ return destImage
3432
+ def zoom(self,x,y=''):
3433
+ """Return a new PhotoImage with the same image as this widget
3434
+ but zoom it with X and Y."""
3435
+ destImage = PhotoImage(master=self.tk)
3436
+ if y=='': y=x
3437
+ self.tk.call(destImage, 'copy', self.name, '-zoom',x,y)
3438
+ return destImage
3439
+ def subsample(self,x,y=''):
3440
+ """Return a new PhotoImage based on the same image as this widget
3441
+ but use only every Xth or Yth pixel."""
3442
+ destImage = PhotoImage(master=self.tk)
3443
+ if y=='': y=x
3444
+ self.tk.call(destImage, 'copy', self.name, '-subsample',x,y)
3445
+ return destImage
3446
+ def get(self, x, y):
3447
+ """Return the color (red, green, blue) of the pixel at X,Y."""
3448
+ return self.tk.call(self.name, 'get', x, y)
3449
+ def put(self, data, to=None):
3450
+ """Put row formatted colors to image starting from
3451
+ position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))"""
3452
+ args = (self.name, 'put', data)
3453
+ if to:
3454
+ if to[0] == '-to':
3455
+ to = to[1:]
3456
+ args = args + ('-to',) + tuple(to)
3457
+ self.tk.call(args)
3458
+ # XXX read
3459
+ def write(self, filename, format=None, from_coords=None):
3460
+ """Write image to file FILENAME in FORMAT starting from
3461
+ position FROM_COORDS."""
3462
+ args = (self.name, 'write', filename)
3463
+ if format:
3464
+ args = args + ('-format', format)
3465
+ if from_coords:
3466
+ args = args + ('-from',) + tuple(from_coords)
3467
+ self.tk.call(args)
3468
+
3469
+ class BitmapImage(Image):
3470
+ """Widget which can display a bitmap."""
3471
+ def __init__(self, name=None, cnf={}, master=None, **kw):
3472
+ """Create a bitmap with NAME.
3473
+
3474
+ Valid resource names: background, data, file, foreground, maskdata, maskfile."""
3475
+ Image.__init__(self, 'bitmap', name, cnf, master, **kw)
3476
+
3477
+ def image_names():
3478
+ return _default_root.tk.splitlist(_default_root.tk.call('image', 'names'))
3479
+
3480
+ def image_types():
3481
+ return _default_root.tk.splitlist(_default_root.tk.call('image', 'types'))
3482
+
3483
+
3484
+ class Spinbox(Widget, XView):
3485
+ """spinbox widget."""
3486
+ def __init__(self, master=None, cnf={}, **kw):
3487
+ """Construct a spinbox widget with the parent MASTER.
3488
+
3489
+ STANDARD OPTIONS
3490
+
3491
+ activebackground, background, borderwidth,
3492
+ cursor, exportselection, font, foreground,
3493
+ highlightbackground, highlightcolor,
3494
+ highlightthickness, insertbackground,
3495
+ insertborderwidth, insertofftime,
3496
+ insertontime, insertwidth, justify, relief,
3497
+ repeatdelay, repeatinterval,
3498
+ selectbackground, selectborderwidth
3499
+ selectforeground, takefocus, textvariable
3500
+ xscrollcommand.
3501
+
3502
+ WIDGET-SPECIFIC OPTIONS
3503
+
3504
+ buttonbackground, buttoncursor,
3505
+ buttondownrelief, buttonuprelief,
3506
+ command, disabledbackground,
3507
+ disabledforeground, format, from,
3508
+ invalidcommand, increment,
3509
+ readonlybackground, state, to,
3510
+ validate, validatecommand values,
3511
+ width, wrap,
3512
+ """
3513
+ Widget.__init__(self, master, 'spinbox', cnf, kw)
3514
+
3515
+ def bbox(self, index):
3516
+ """Return a tuple of X1,Y1,X2,Y2 coordinates for a
3517
+ rectangle which encloses the character given by index.
3518
+
3519
+ The first two elements of the list give the x and y
3520
+ coordinates of the upper-left corner of the screen
3521
+ area covered by the character (in pixels relative
3522
+ to the widget) and the last two elements give the
3523
+ width and height of the character, in pixels. The
3524
+ bounding box may refer to a region outside the
3525
+ visible area of the window.
3526
+ """
3527
+ return self._getints(self.tk.call(self._w, 'bbox', index)) or None
3528
+
3529
+ def delete(self, first, last=None):
3530
+ """Delete one or more elements of the spinbox.
3531
+
3532
+ First is the index of the first character to delete,
3533
+ and last is the index of the character just after
3534
+ the last one to delete. If last isn't specified it
3535
+ defaults to first+1, i.e. a single character is
3536
+ deleted. This command returns an empty string.
3537
+ """
3538
+ return self.tk.call(self._w, 'delete', first, last)
3539
+
3540
+ def get(self):
3541
+ """Returns the spinbox's string"""
3542
+ return self.tk.call(self._w, 'get')
3543
+
3544
+ def icursor(self, index):
3545
+ """Alter the position of the insertion cursor.
3546
+
3547
+ The insertion cursor will be displayed just before
3548
+ the character given by index. Returns an empty string
3549
+ """
3550
+ return self.tk.call(self._w, 'icursor', index)
3551
+
3552
+ def identify(self, x, y):
3553
+ """Returns the name of the widget at position x, y
3554
+
3555
+ Return value is one of: none, buttondown, buttonup, entry
3556
+ """
3557
+ return self.tk.call(self._w, 'identify', x, y)
3558
+
3559
+ def index(self, index):
3560
+ """Returns the numerical index corresponding to index
3561
+ """
3562
+ return self.tk.call(self._w, 'index', index)
3563
+
3564
+ def insert(self, index, s):
3565
+ """Insert string s at index
3566
+
3567
+ Returns an empty string.
3568
+ """
3569
+ return self.tk.call(self._w, 'insert', index, s)
3570
+
3571
+ def invoke(self, element):
3572
+ """Causes the specified element to be invoked
3573
+
3574
+ The element could be buttondown or buttonup
3575
+ triggering the action associated with it.
3576
+ """
3577
+ return self.tk.call(self._w, 'invoke', element)
3578
+
3579
+ def scan(self, *args):
3580
+ """Internal function."""
3581
+ return self._getints(
3582
+ self.tk.call((self._w, 'scan') + args)) or ()
3583
+
3584
+ def scan_mark(self, x):
3585
+ """Records x and the current view in the spinbox window;
3586
+
3587
+ used in conjunction with later scan dragto commands.
3588
+ Typically this command is associated with a mouse button
3589
+ press in the widget. It returns an empty string.
3590
+ """
3591
+ return self.scan("mark", x)
3592
+
3593
+ def scan_dragto(self, x):
3594
+ """Compute the difference between the given x argument
3595
+ and the x argument to the last scan mark command
3596
+
3597
+ It then adjusts the view left or right by 10 times the
3598
+ difference in x-coordinates. This command is typically
3599
+ associated with mouse motion events in the widget, to
3600
+ produce the effect of dragging the spinbox at high speed
3601
+ through the window. The return value is an empty string.
3602
+ """
3603
+ return self.scan("dragto", x)
3604
+
3605
+ def selection(self, *args):
3606
+ """Internal function."""
3607
+ return self._getints(
3608
+ self.tk.call((self._w, 'selection') + args)) or ()
3609
+
3610
+ def selection_adjust(self, index):
3611
+ """Locate the end of the selection nearest to the character
3612
+ given by index,
3613
+
3614
+ Then adjust that end of the selection to be at index
3615
+ (i.e including but not going beyond index). The other
3616
+ end of the selection is made the anchor point for future
3617
+ select to commands. If the selection isn't currently in
3618
+ the spinbox, then a new selection is created to include
3619
+ the characters between index and the most recent selection
3620
+ anchor point, inclusive. Returns an empty string.
3621
+ """
3622
+ return self.selection("adjust", index)
3623
+
3624
+ def selection_clear(self):
3625
+ """Clear the selection
3626
+
3627
+ If the selection isn't in this widget then the
3628
+ command has no effect. Returns an empty string.
3629
+ """
3630
+ return self.selection("clear")
3631
+
3632
+ def selection_element(self, element=None):
3633
+ """Sets or gets the currently selected element.
3634
+
3635
+ If a spinbutton element is specified, it will be
3636
+ displayed depressed
3637
+ """
3638
+ return self.selection("element", element)
3639
+
3640
+ ###########################################################################
3641
+
3642
+ class LabelFrame(Widget):
3643
+ """labelframe widget."""
3644
+ def __init__(self, master=None, cnf={}, **kw):
3645
+ """Construct a labelframe widget with the parent MASTER.
3646
+
3647
+ STANDARD OPTIONS
3648
+
3649
+ borderwidth, cursor, font, foreground,
3650
+ highlightbackground, highlightcolor,
3651
+ highlightthickness, padx, pady, relief,
3652
+ takefocus, text
3653
+
3654
+ WIDGET-SPECIFIC OPTIONS
3655
+
3656
+ background, class, colormap, container,
3657
+ height, labelanchor, labelwidget,
3658
+ visual, width
3659
+ """
3660
+ Widget.__init__(self, master, 'labelframe', cnf, kw)
3661
+
3662
+ ########################################################################
3663
+
3664
+ class PanedWindow(Widget):
3665
+ """panedwindow widget."""
3666
+ def __init__(self, master=None, cnf={}, **kw):
3667
+ """Construct a panedwindow widget with the parent MASTER.
3668
+
3669
+ STANDARD OPTIONS
3670
+
3671
+ background, borderwidth, cursor, height,
3672
+ orient, relief, width
3673
+
3674
+ WIDGET-SPECIFIC OPTIONS
3675
+
3676
+ handlepad, handlesize, opaqueresize,
3677
+ sashcursor, sashpad, sashrelief,
3678
+ sashwidth, showhandle,
3679
+ """
3680
+ Widget.__init__(self, master, 'panedwindow', cnf, kw)
3681
+
3682
+ def add(self, child, **kw):
3683
+ """Add a child widget to the panedwindow in a new pane.
3684
+
3685
+ The child argument is the name of the child widget
3686
+ followed by pairs of arguments that specify how to
3687
+ manage the windows. The possible options and values
3688
+ are the ones accepted by the paneconfigure method.
3689
+ """
3690
+ self.tk.call((self._w, 'add', child) + self._options(kw))
3691
+
3692
+ def remove(self, child):
3693
+ """Remove the pane containing child from the panedwindow
3694
+
3695
+ All geometry management options for child will be forgotten.
3696
+ """
3697
+ self.tk.call(self._w, 'forget', child)
3698
+ forget=remove
3699
+
3700
+ def identify(self, x, y):
3701
+ """Identify the panedwindow component at point x, y
3702
+
3703
+ If the point is over a sash or a sash handle, the result
3704
+ is a two element list containing the index of the sash or
3705
+ handle, and a word indicating whether it is over a sash
3706
+ or a handle, such as {0 sash} or {2 handle}. If the point
3707
+ is over any other part of the panedwindow, the result is
3708
+ an empty list.
3709
+ """
3710
+ return self.tk.call(self._w, 'identify', x, y)
3711
+
3712
+ def proxy(self, *args):
3713
+ """Internal function."""
3714
+ return self._getints(
3715
+ self.tk.call((self._w, 'proxy') + args)) or ()
3716
+
3717
+ def proxy_coord(self):
3718
+ """Return the x and y pair of the most recent proxy location
3719
+ """
3720
+ return self.proxy("coord")
3721
+
3722
+ def proxy_forget(self):
3723
+ """Remove the proxy from the display.
3724
+ """
3725
+ return self.proxy("forget")
3726
+
3727
+ def proxy_place(self, x, y):
3728
+ """Place the proxy at the given x and y coordinates.
3729
+ """
3730
+ return self.proxy("place", x, y)
3731
+
3732
+ def sash(self, *args):
3733
+ """Internal function."""
3734
+ return self._getints(
3735
+ self.tk.call((self._w, 'sash') + args)) or ()
3736
+
3737
+ def sash_coord(self, index):
3738
+ """Return the current x and y pair for the sash given by index.
3739
+
3740
+ Index must be an integer between 0 and 1 less than the
3741
+ number of panes in the panedwindow. The coordinates given are
3742
+ those of the top left corner of the region containing the sash.
3743
+ pathName sash dragto index x y This command computes the
3744
+ difference between the given coordinates and the coordinates
3745
+ given to the last sash coord command for the given sash. It then
3746
+ moves that sash the computed difference. The return value is the
3747
+ empty string.
3748
+ """
3749
+ return self.sash("coord", index)
3750
+
3751
+ def sash_mark(self, index):
3752
+ """Records x and y for the sash given by index;
3753
+
3754
+ Used in conjunction with later dragto commands to move the sash.
3755
+ """
3756
+ return self.sash("mark", index)
3757
+
3758
+ def sash_place(self, index, x, y):
3759
+ """Place the sash given by index at the given coordinates
3760
+ """
3761
+ return self.sash("place", index, x, y)
3762
+
3763
+ def panecget(self, child, option):
3764
+ """Query a management option for window.
3765
+
3766
+ Option may be any value allowed by the paneconfigure subcommand
3767
+ """
3768
+ return self.tk.call(
3769
+ (self._w, 'panecget') + (child, '-'+option))
3770
+
3771
+ def paneconfigure(self, tagOrId, cnf=None, **kw):
3772
+ """Query or modify the management options for window.
3773
+
3774
+ If no option is specified, returns a list describing all
3775
+ of the available options for pathName. If option is
3776
+ specified with no value, then the command returns a list
3777
+ describing the one named option (this list will be identical
3778
+ to the corresponding sublist of the value returned if no
3779
+ option is specified). If one or more option-value pairs are
3780
+ specified, then the command modifies the given widget
3781
+ option(s) to have the given value(s); in this case the
3782
+ command returns an empty string. The following options
3783
+ are supported:
3784
+
3785
+ after window
3786
+ Insert the window after the window specified. window
3787
+ should be the name of a window already managed by pathName.
3788
+ before window
3789
+ Insert the window before the window specified. window
3790
+ should be the name of a window already managed by pathName.
3791
+ height size
3792
+ Specify a height for the window. The height will be the
3793
+ outer dimension of the window including its border, if
3794
+ any. If size is an empty string, or if -height is not
3795
+ specified, then the height requested internally by the
3796
+ window will be used initially; the height may later be
3797
+ adjusted by the movement of sashes in the panedwindow.
3798
+ Size may be any value accepted by Tk_GetPixels.
3799
+ minsize n
3800
+ Specifies that the size of the window cannot be made
3801
+ less than n. This constraint only affects the size of
3802
+ the widget in the paned dimension -- the x dimension
3803
+ for horizontal panedwindows, the y dimension for
3804
+ vertical panedwindows. May be any value accepted by
3805
+ Tk_GetPixels.
3806
+ padx n
3807
+ Specifies a non-negative value indicating how much
3808
+ extra space to leave on each side of the window in
3809
+ the X-direction. The value may have any of the forms
3810
+ accepted by Tk_GetPixels.
3811
+ pady n
3812
+ Specifies a non-negative value indicating how much
3813
+ extra space to leave on each side of the window in
3814
+ the Y-direction. The value may have any of the forms
3815
+ accepted by Tk_GetPixels.
3816
+ sticky style
3817
+ If a window's pane is larger than the requested
3818
+ dimensions of the window, this option may be used
3819
+ to position (or stretch) the window within its pane.
3820
+ Style is a string that contains zero or more of the
3821
+ characters n, s, e or w. The string can optionally
3822
+ contains spaces or commas, but they are ignored. Each
3823
+ letter refers to a side (north, south, east, or west)
3824
+ that the window will "stick" to. If both n and s
3825
+ (or e and w) are specified, the window will be
3826
+ stretched to fill the entire height (or width) of
3827
+ its cavity.
3828
+ width size
3829
+ Specify a width for the window. The width will be
3830
+ the outer dimension of the window including its
3831
+ border, if any. If size is an empty string, or
3832
+ if -width is not specified, then the width requested
3833
+ internally by the window will be used initially; the
3834
+ width may later be adjusted by the movement of sashes
3835
+ in the panedwindow. Size may be any value accepted by
3836
+ Tk_GetPixels.
3837
+
3838
+ """
3839
+ if cnf is None and not kw:
3840
+ return self._getconfigure(self._w, 'paneconfigure', tagOrId)
3841
+ if isinstance(cnf, str) and not kw:
3842
+ return self._getconfigure1(
3843
+ self._w, 'paneconfigure', tagOrId, '-'+cnf)
3844
+ self.tk.call((self._w, 'paneconfigure', tagOrId) +
3845
+ self._options(cnf, kw))
3846
+ paneconfig = paneconfigure
3847
+
3848
+ def panes(self):
3849
+ """Returns an ordered list of the child panes."""
3850
+ return self.tk.splitlist(self.tk.call(self._w, 'panes'))
3851
+
3852
+ ######################################################################
3853
+ # Extensions:
3854
+
3855
+ class Studbutton(Button):
3856
+ def __init__(self, master=None, cnf={}, **kw):
3857
+ Widget.__init__(self, master, 'studbutton', cnf, kw)
3858
+ self.bind('<Any-Enter>', self.tkButtonEnter)
3859
+ self.bind('<Any-Leave>', self.tkButtonLeave)
3860
+ self.bind('<1>', self.tkButtonDown)
3861
+ self.bind('<ButtonRelease-1>', self.tkButtonUp)
3862
+
3863
+ class Tributton(Button):
3864
+ def __init__(self, master=None, cnf={}, **kw):
3865
+ Widget.__init__(self, master, 'tributton', cnf, kw)
3866
+ self.bind('<Any-Enter>', self.tkButtonEnter)
3867
+ self.bind('<Any-Leave>', self.tkButtonLeave)
3868
+ self.bind('<1>', self.tkButtonDown)
3869
+ self.bind('<ButtonRelease-1>', self.tkButtonUp)
3870
+ self['fg'] = self['bg']
3871
+ self['activebackground'] = self['bg']
3872
+
3873
+ ######################################################################
3874
+ # Test:
3875
+
3876
+ def _test():
3877
+ root = Tk()
3878
+ text = "This is Tcl/Tk version %s" % TclVersion
3879
+ if TclVersion >= 8.1:
3880
+ text += "\nThis should be a cedilla: \xe7"
3881
+ label = Label(root, text=text)
3882
+ label.pack()
3883
+ test = Button(root, text="Click me!",
3884
+ command=lambda root=root: root.test.configure(
3885
+ text="[%s]" % root.test['text']))
3886
+ test.pack()
3887
+ root.test = test
3888
+ quit = Button(root, text="QUIT", command=root.destroy)
3889
+ quit.pack()
3890
+ # The following three commands are needed so the window pops
3891
+ # up on top on Windows...
3892
+ root.iconify()
3893
+ root.update()
3894
+ root.deiconify()
3895
+ root.mainloop()
3896
+
3897
+ if __name__ == '__main__':
3898
+ _test()