Skip to main content

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

This version

0.10

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 hashes)

Uploaded Source

Built Distribution

traymenu-0.10-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page