zhmiscellany 6.1.4__py3-none-any.whl → 6.1.5__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/gui.py +4 -3
- {zhmiscellany-6.1.4.dist-info → zhmiscellany-6.1.5.dist-info}/METADATA +1 -1
- {zhmiscellany-6.1.4.dist-info → zhmiscellany-6.1.5.dist-info}/RECORD +5 -5
- {zhmiscellany-6.1.4.dist-info → zhmiscellany-6.1.5.dist-info}/WHEEL +0 -0
- {zhmiscellany-6.1.4.dist-info → zhmiscellany-6.1.5.dist-info}/top_level.txt +0 -0
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
|
|
|
@@ -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.5.dist-info/METADATA,sha256=HoZwRdmgNquJi2LeCIHfTruD0RaJ1oFOiQ5UV7e4itU,43823
|
|
25
|
+
zhmiscellany-6.1.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
26
|
+
zhmiscellany-6.1.5.dist-info/top_level.txt,sha256=ioDtsrevCI52rTxZntMPljRIBsZs73tD0hI00HektiE,13
|
|
27
|
+
zhmiscellany-6.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|