zhmiscellany 6.3.0__py3-none-any.whl → 6.3.1__py3-none-any.whl

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.
zhmiscellany/macro.py CHANGED
@@ -400,17 +400,20 @@ def toggle_function(func, key='f8', blocking=True, hold=False):
400
400
  import threading
401
401
  # better_wait_for is in the same module, no import needed
402
402
 
403
- def atom():
403
+ def atom(hold):
404
404
  while True:
405
405
  better_wait_for(key)
406
406
  t = kthread.KThread(target=func)
407
407
  t.start()
408
- better_wait_for(key)
408
+ if not hold:
409
+ better_wait_for(key)
410
+ else:
411
+ better_wait_for(key, wait_for_release=True)
409
412
  t.kill()
410
413
  if blocking:
411
- atom()
414
+ atom(hold)
412
415
  else:
413
- t = threading.Thread(target=atom)
416
+ t = threading.Thread(target=atom, args=(hold,))
414
417
  t.start()
415
418
  return t
416
419
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zhmiscellany
3
- Version: 6.3.0
3
+ Version: 6.3.1
4
4
  Summary: A collection of useful/interesting python libraries made by zh.
5
5
  Home-page: https://discord.gg/ThBBAuueVJ
6
6
  Author: zh
@@ -12,7 +12,7 @@ zhmiscellany/fileio.py,sha256=-W1A_sEymfaqxhiEY-y6h_owBlAyVWNm4PSFn7LVoBI,21991
12
12
  zhmiscellany/gui.py,sha256=OVwuZ_kWHJlgKPeYR7fAAyomNmU-OnxOgXZelVNPm1w,10409
13
13
  zhmiscellany/image.py,sha256=6Hz5sfym_o7FHokGUKeXRsjl89VY_ZMSLnvuSam1icI,8265
14
14
  zhmiscellany/list.py,sha256=BnbYG-lpHmi0C4v8jLfaeXqQdc3opmNgkvY6yz4pasg,1475
15
- zhmiscellany/macro.py,sha256=7qUZ7LFzWl8gD2K-uAxf3l3Qc2Wskezo7XAKKoqdowA,28263
15
+ zhmiscellany/macro.py,sha256=K-pcV8PwOienpLZJlS-AlSj5uc2rCp1JKoXPrCdQVho,28395
16
16
  zhmiscellany/math.py,sha256=nNsrg4le3XIt1y36lQv5xNCjUoIu7Q1lV5BdpmyD_wk,2530
17
17
  zhmiscellany/misc.py,sha256=0vJFa0MRdKXjLLVeFfMx1Q-b-qrKqpdaq6FzWKz6SMY,32489
18
18
  zhmiscellany/netio.py,sha256=rN17uIbsWqDG9ssmouD7VZqOtlgWObaCsvn2Hrq-k6w,2413
@@ -21,7 +21,7 @@ zhmiscellany/pipes.py,sha256=RlHxsW_M_R6UJUIDgYVS_zfqUwO8kXG8j-0YG5qByjo,4637
21
21
  zhmiscellany/processing.py,sha256=S0Rb6ndTC6N23-kz4hLEeRNgAaWjcMAtt8QNDE8x4v4,11350
22
22
  zhmiscellany/rust.py,sha256=cHkSpdtq7QQW3yzBEAYL9lZxLW0h4wal2tsxIOnyTrA,494
23
23
  zhmiscellany/string.py,sha256=A4ilBWSYlrJ0AJ0axvepSSjYCYwYk5X-vRrHNphi_ow,4809
24
- zhmiscellany-6.3.0.dist-info/METADATA,sha256=wfTYRCFcsryY7Lsh7KyLlieRexUdE5d_aAobSlCLmLM,43872
25
- zhmiscellany-6.3.0.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
26
- zhmiscellany-6.3.0.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
27
- zhmiscellany-6.3.0.dist-info/RECORD,,
24
+ zhmiscellany-6.3.1.dist-info/METADATA,sha256=UU57MNG9umslU1eKVM7cClYKwhX3h1btkxGgtRwxv4U,43872
25
+ zhmiscellany-6.3.1.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
26
+ zhmiscellany-6.3.1.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
27
+ zhmiscellany-6.3.1.dist-info/RECORD,,