quickmacapp 2025.1.21__py3-none-any.whl → 2025.3.16__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.
- quickmacapp/_quickapp.py +10 -4
- {quickmacapp-2025.1.21.dist-info → quickmacapp-2025.3.16.dist-info}/METADATA +1 -1
- quickmacapp-2025.3.16.dist-info/RECORD +9 -0
- {quickmacapp-2025.1.21.dist-info → quickmacapp-2025.3.16.dist-info}/WHEEL +1 -1
- quickmacapp-2025.1.21.dist-info/RECORD +0 -9
- {quickmacapp-2025.1.21.dist-info → quickmacapp-2025.3.16.dist-info}/LICENSE +0 -0
- {quickmacapp-2025.1.21.dist-info → quickmacapp-2025.3.16.dist-info}/top_level.txt +0 -0
quickmacapp/_quickapp.py
CHANGED
|
@@ -18,6 +18,7 @@ from AppKit import (
|
|
|
18
18
|
NSEvent,
|
|
19
19
|
NSResponder,
|
|
20
20
|
NSMenu,
|
|
21
|
+
NSImage,
|
|
21
22
|
NSMenuItem,
|
|
22
23
|
NSStatusBar,
|
|
23
24
|
NSVariableStatusItemLength,
|
|
@@ -82,7 +83,7 @@ class Status:
|
|
|
82
83
|
Application status (top menu bar, on right)
|
|
83
84
|
"""
|
|
84
85
|
|
|
85
|
-
def __init__(self, text: str) -> None:
|
|
86
|
+
def __init__(self, text: str | None = None, image: NSImage | None = None) -> None:
|
|
86
87
|
"""
|
|
87
88
|
Create a L{Status} with some text to use as its label.
|
|
88
89
|
|
|
@@ -91,9 +92,14 @@ class Status:
|
|
|
91
92
|
self.item = NSStatusBar.systemStatusBar().statusItemWithLength_(
|
|
92
93
|
NSVariableStatusItemLength
|
|
93
94
|
)
|
|
94
|
-
self.item.
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
self.item.button().setEnabled_(True)
|
|
96
|
+
if image is not None:
|
|
97
|
+
self.item.button().setImage_(image)
|
|
98
|
+
elif text is None:
|
|
99
|
+
from __main__ import __file__ as default
|
|
100
|
+
text = os.path.basename(default)
|
|
101
|
+
if text is not None:
|
|
102
|
+
self.item.button().setTitle_(text)
|
|
97
103
|
|
|
98
104
|
def menu(self, items: list[tuple[str, Callable[[], object]]]) -> None:
|
|
99
105
|
"""
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
quickmacapp/__init__.py,sha256=w__TD52X29oKrDsFT_f5cJI8IE5HRJ6q48xLsufdlTU,263
|
|
2
|
+
quickmacapp/_interactions.py,sha256=eLv_mVf5Jr-puNizlR8tDL_DlLy1Rc82XQ80o0GP5R4,3439
|
|
3
|
+
quickmacapp/_quickapp.py,sha256=UdZQKIJG40OSzzJ4bdMWix7bpgyZnDAGftF-ksk1VDw,7571
|
|
4
|
+
quickmacapp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
quickmacapp-2025.3.16.dist-info/LICENSE,sha256=7RIBNNvrnKHR3lw9z3KXv3Q6RRjhyxtNQoMnoUsf3_M,1091
|
|
6
|
+
quickmacapp-2025.3.16.dist-info/METADATA,sha256=qkgzp4WyUHJye5Z9RaTNiUXhDKB4bPVJsqwlzneY91Q,1298
|
|
7
|
+
quickmacapp-2025.3.16.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
|
|
8
|
+
quickmacapp-2025.3.16.dist-info/top_level.txt,sha256=_iJkekUYnuWhCZbFSQyo2d5_6B7OoPwx7k527bokzeA,12
|
|
9
|
+
quickmacapp-2025.3.16.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
quickmacapp/__init__.py,sha256=w__TD52X29oKrDsFT_f5cJI8IE5HRJ6q48xLsufdlTU,263
|
|
2
|
-
quickmacapp/_interactions.py,sha256=eLv_mVf5Jr-puNizlR8tDL_DlLy1Rc82XQ80o0GP5R4,3439
|
|
3
|
-
quickmacapp/_quickapp.py,sha256=kVjaev5Vnwz9u5b3uDRm_BeNSxBFZJHOX3Xb0lROZxU,7302
|
|
4
|
-
quickmacapp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
quickmacapp-2025.1.21.dist-info/LICENSE,sha256=7RIBNNvrnKHR3lw9z3KXv3Q6RRjhyxtNQoMnoUsf3_M,1091
|
|
6
|
-
quickmacapp-2025.1.21.dist-info/METADATA,sha256=zaKBisVAeONgCLLNmzMVVfvWmVBoEczA194GSHl_kQw,1298
|
|
7
|
-
quickmacapp-2025.1.21.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
8
|
-
quickmacapp-2025.1.21.dist-info/top_level.txt,sha256=_iJkekUYnuWhCZbFSQyo2d5_6B7OoPwx7k527bokzeA,12
|
|
9
|
-
quickmacapp-2025.1.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|