macOS utilities: tray/status bar apps and dialog notifications
Project description
mm-pymac
macOS utilities for Python CLI apps: tray/status bar and alert dialogs.
Installation
uv add mm-pymac
Usage
Tray / Status Bar
from mm_pymac import TrayApp, MenuItem, MenuSeparator
app = TrayApp(title="My App")
app.set_menu([
MenuItem("Status: running", enabled=False),
MenuSeparator(),
MenuItem("Quit", callback=lambda _: app.quit()),
])
app.start_timer(1.0, lambda: print("tick"))
app.run()
Alerts
from mm_pymac import show_alert
result = show_alert(
"Your task is complete.",
title="Done",
buttons=("Cancel", "OK"),
default_button="OK",
)
if result == "OK":
print("User confirmed")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mm_pymac-0.0.1.tar.gz
(32.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mm_pymac-0.0.1.tar.gz.
File metadata
- Download URL: mm_pymac-0.0.1.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aac2fe2cae1fe7cc124a75c1b1c47e846a5704d0fbe08314047e0bed2bea081
|
|
| MD5 |
1f4391ef93cd96f4a387f702e5a6fb46
|
|
| BLAKE2b-256 |
2c9768a2e4c38ef5541548a7c9d358da36579fac58b2559d3692c3c7663733f7
|
File details
Details for the file mm_pymac-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mm_pymac-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee9e8cafa9a67ad0df791ab01f2a309a76d6a6d6349d7ae19e29fa026ed077d1
|
|
| MD5 |
762be519503812175b4658fe3f0c0de6
|
|
| BLAKE2b-256 |
63df57765bb894b6eac9f68388a1b3b3999208bebbcf38979cd6a3a5b710ebea
|