# System Tray Menu for Windows - no dependencies
## pip install traymenu
### Tested against Windows 10 / Python 3.10 / Anaconda
# ![](https://github.com/hansalemaos/screenshots/blob/main/traymenu.png?raw=true)
```python
from traymenu import TrayMenu,quitsystray
if __name__ == "__main__":
# Adapted from: https://gist.github.com/jasonbot/5759510 (Python 2)
tm = TrayMenu(
icon=r"C:\Users\hansc\Downloads\pinpng.com-anime-girl-face-png-6144106.ico",
functions=(
("Men1", lambda: print(331)),
("Men2", False), # not clickable
("!Default", lambda: print(22)), # default [bold]
"--", # Separator
("Men3", lambda: print(str(1))),
("Quit", lambda: quitsystray()),
),
)
tm.letsgo()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/traymenu",
"name": "traymenu",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "ctypes,windows,toast,tray",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/38/3e/b4de94dd5ed95ed7f418371919d73dfffc8bb89095f749450ec610b7e9f8/traymenu-0.10.tar.gz",
"platform": null,
"description": "\r\n# System Tray Menu for Windows - no dependencies\r\n\r\n\r\n\r\n## pip install traymenu\r\n\r\n\r\n\r\n### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n\r\n\r\n# ![](https://github.com/hansalemaos/screenshots/blob/main/traymenu.png?raw=true)\r\n\r\n\r\n\r\n```python\r\n\r\n\r\n\r\nfrom traymenu import TrayMenu,quitsystray\r\n\r\n\r\n\r\nif __name__ == \"__main__\":\r\n\r\n # Adapted from: https://gist.github.com/jasonbot/5759510 (Python 2)\r\n\r\n tm = TrayMenu(\r\n\r\n icon=r\"C:\\Users\\hansc\\Downloads\\pinpng.com-anime-girl-face-png-6144106.ico\",\r\n\r\n functions=(\r\n\r\n (\"Men1\", lambda: print(331)),\r\n\r\n (\"Men2\", False), # not clickable\r\n\r\n (\"!Default\", lambda: print(22)), # default [bold]\r\n\r\n \"--\", # Separator\r\n\r\n (\"Men3\", lambda: print(str(1))),\r\n\r\n (\"Quit\", lambda: quitsystray()),\r\n\r\n ),\r\n\r\n )\r\n\r\n tm.letsgo()\r\n\r\n\r\n\r\n\r\n\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "System Tray Menu for Windows - no dependencies",
"version": "0.10",
"split_keywords": [
"ctypes",
"windows",
"toast",
"tray"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "161c25135a858a25b404b18c27495b85f9685e6e36cb8de5bee8bef2f97d23a3",
"md5": "2dc74dda797d336be08bcbe3a30a6366",
"sha256": "1a47cb19082aa8ab8dee412981c4ee6b0463d576b948b9b5f2bfb8ff4e4c1733"
},
"downloads": -1,
"filename": "traymenu-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2dc74dda797d336be08bcbe3a30a6366",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11106,
"upload_time": "2023-04-01T12:54:24",
"upload_time_iso_8601": "2023-04-01T12:54:24.403541Z",
"url": "https://files.pythonhosted.org/packages/16/1c/25135a858a25b404b18c27495b85f9685e6e36cb8de5bee8bef2f97d23a3/traymenu-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "383eb4de94dd5ed95ed7f418371919d73dfffc8bb89095f749450ec610b7e9f8",
"md5": "debdb803c8c5b9a6b86c81ff7f006cf2",
"sha256": "bf2273718db3cc43ef4a9322d785cf228044364267638645b6d26870dfcbf233"
},
"downloads": -1,
"filename": "traymenu-0.10.tar.gz",
"has_sig": false,
"md5_digest": "debdb803c8c5b9a6b86c81ff7f006cf2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10566,
"upload_time": "2023-04-01T12:54:26",
"upload_time_iso_8601": "2023-04-01T12:54:26.672565Z",
"url": "https://files.pythonhosted.org/packages/38/3e/b4de94dd5ed95ed7f418371919d73dfffc8bb89095f749450ec610b7e9f8/traymenu-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-01 12:54:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "traymenu",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "traymenu"
}