zhmiscellany 6.1.4__py3-none-any.whl → 6.1.6__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/_misc_supportfuncs.py +3 -2
- zhmiscellany/gui.py +4 -3
- {zhmiscellany-6.1.4.dist-info → zhmiscellany-6.1.6.dist-info}/METADATA +1 -1
- {zhmiscellany-6.1.4.dist-info → zhmiscellany-6.1.6.dist-info}/RECORD +6 -6
- {zhmiscellany-6.1.4.dist-info → zhmiscellany-6.1.6.dist-info}/WHEEL +0 -0
- {zhmiscellany-6.1.4.dist-info → zhmiscellany-6.1.6.dist-info}/top_level.txt +0 -0
|
@@ -52,8 +52,9 @@ def patch_rhg(): # patches random_header_generator library's missing files. thi
|
|
|
52
52
|
from ._py_resources import gen
|
|
53
53
|
gen()
|
|
54
54
|
rem_res = not os.path.exists('resources')
|
|
55
|
-
os.
|
|
56
|
-
|
|
55
|
+
if not os.path.exists('random_header_generator'):
|
|
56
|
+
os.makedirs(r'random_header_generator')
|
|
57
|
+
shutil.move(r'resources\random_header_generator\data', r'random_header_generator')
|
|
57
58
|
if rem_res:
|
|
58
59
|
zhmiscellany.fileio.remove_folder('resources')
|
|
59
60
|
os.chdir(cwd)
|
zhmiscellany/gui.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import tkinter as tk
|
|
2
1
|
import threading
|
|
3
2
|
import sys
|
|
4
3
|
|
|
@@ -26,6 +25,8 @@ class StateIndicator:
|
|
|
26
25
|
WS_EX_TRANSPARENT = 0x20
|
|
27
26
|
|
|
28
27
|
def __init__(self, colour=(255, 0, 0), opacity=0.8, corner='topright', offset=(10, 10), size=_DEFAULT_SIZE):
|
|
28
|
+
import tkinter as tk
|
|
29
|
+
self.tk = tk
|
|
29
30
|
self._colour = colour
|
|
30
31
|
self._opacity = opacity
|
|
31
32
|
self._corner = corner
|
|
@@ -43,7 +44,7 @@ class StateIndicator:
|
|
|
43
44
|
self._tk_ready_event.wait(timeout=5)
|
|
44
45
|
|
|
45
46
|
def _run_gui_thread(self):
|
|
46
|
-
self._root = tk.Tk()
|
|
47
|
+
self._root = self.tk.Tk()
|
|
47
48
|
self._root.withdraw()
|
|
48
49
|
|
|
49
50
|
# Configure window for borderless, always-on-top, no focus
|
|
@@ -54,7 +55,7 @@ class StateIndicator:
|
|
|
54
55
|
self._root.config(bg=self._TRANSPARENT_COLOR)
|
|
55
56
|
|
|
56
57
|
# Create canvas for the colored box, using transparent color as background
|
|
57
|
-
self._canvas = tk.Canvas(self._root, width=self._size[0], height=self._size[1],
|
|
58
|
+
self._canvas = self.tk.Canvas(self._root, width=self._size[0], height=self._size[1],
|
|
58
59
|
highlightthickness=0, bg=self._TRANSPARENT_COLOR)
|
|
59
60
|
self._canvas.pack()
|
|
60
61
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
zhmiscellany/__init__.py,sha256=Oh3gAJRWq2aUEgkolmQyiZOQ3iey5OC4NA2XaTHuVv4,1139
|
|
2
2
|
zhmiscellany/_discord_supportfuncs.py,sha256=RotSpurqFtL5q6v_ST1e2Y_1qJMaHp1CDsF5i-gR4ec,6524
|
|
3
3
|
zhmiscellany/_fileio_supportfuncs.py,sha256=soibLv9nOR79sHQ2MGQH2O6MhnqdXqI7ybxHSN2Tfac,434
|
|
4
|
-
zhmiscellany/_misc_supportfuncs.py,sha256=
|
|
4
|
+
zhmiscellany/_misc_supportfuncs.py,sha256=RH1keGtoVjJOFh7MWOTJ2BJijLLeEvsMy9tNumdd6Uk,9944
|
|
5
5
|
zhmiscellany/_processing_supportfuncs.py,sha256=u5dzW-2OtyViC74r5fhqd5_2uQ92ZhieRJRTJMevqbg,11071
|
|
6
6
|
zhmiscellany/_py_resources.py,sha256=HqJs5aRLymLZ2J5Io8g6bY58pGWhN9b8vCktC2DW4KQ,229009
|
|
7
7
|
zhmiscellany/_resource_files_lookup.py,sha256=hsgPW0dngokgqWrAVAv5rUo-eobzJPjvWHt4xrOG5l0,856
|
|
@@ -9,7 +9,7 @@ zhmiscellany/cpp.py,sha256=XEUEoIKCDCdY5VgwNWE5oXrGjtsmGdz_MnaVwQmi2dk,179
|
|
|
9
9
|
zhmiscellany/dict.py,sha256=0BZJ5eK-MurAHYV1OPa0jdGTr-QEWos7ZM0npb-tN9I,81
|
|
10
10
|
zhmiscellany/discord.py,sha256=nzXjRnJbuYbuH4hScqqdsF61VeXx8xiYrwp_AKTWt9o,19774
|
|
11
11
|
zhmiscellany/fileio.py,sha256=KmRnWWZJWBc5Or3_mKcRY2ehE_Fuk870iS-imtyERyg,18169
|
|
12
|
-
zhmiscellany/gui.py,sha256=
|
|
12
|
+
zhmiscellany/gui.py,sha256=BDmM7e5ITKQuzxSzaYvPapQuPbQjCMTOq-GyMcLCIgg,10198
|
|
13
13
|
zhmiscellany/image.py,sha256=qUjxiYpc2VVZp2vwr1vN36O2PVQ7YlMKzhegQ1u4c0M,8198
|
|
14
14
|
zhmiscellany/list.py,sha256=S8Z85bLJEP9lk2JkGpzUcG6kpRB7a-NWDIHMPiF5bKo,1473
|
|
15
15
|
zhmiscellany/macro.py,sha256=kKtKYoHLSnBBHyGl8FlnfMaAoraKKSK023VA-mOezO0,27861
|
|
@@ -21,7 +21,7 @@ zhmiscellany/pipes.py,sha256=zETvWP4PF-PuSzYwR1UCodY4ftNAgmCChb9DUMofXok,4657
|
|
|
21
21
|
zhmiscellany/processing.py,sha256=sDKIbzG9TNFyT6yJ4TJL59taG-59_v3CBLekVSLrwgE,10899
|
|
22
22
|
zhmiscellany/rust.py,sha256=znN6DYNoa_p-braTuDZKvUnXX8reWLFu_dG4fv2vLR0,442
|
|
23
23
|
zhmiscellany/string.py,sha256=xyqE6V5YF2nieZDcg5ZrXTIrH2D9oDRbZ5vQGz8rPys,4787
|
|
24
|
-
zhmiscellany-6.1.
|
|
25
|
-
zhmiscellany-6.1.
|
|
26
|
-
zhmiscellany-6.1.
|
|
27
|
-
zhmiscellany-6.1.
|
|
24
|
+
zhmiscellany-6.1.6.dist-info/METADATA,sha256=74DbT6MYJYmfIGsC-NHS8E3DorFcbB-bJgwwxwbTStI,43823
|
|
25
|
+
zhmiscellany-6.1.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
26
|
+
zhmiscellany-6.1.6.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
|
|
27
|
+
zhmiscellany-6.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|