System Tray Menu for Windows - no dependencies
Project description
System Tray Menu for Windows - no dependencies
pip install traymenu
Tested against Windows 10 / Python 3.10 / Anaconda
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()
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
traymenu-0.10.tar.gz
(10.6 kB
view details)
Built Distribution
traymenu-0.10-py3-none-any.whl
(11.1 kB
view details)