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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file traymenu-0.10.tar.gz.

File metadata

  • Download URL: traymenu-0.10.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for traymenu-0.10.tar.gz
Algorithm Hash digest
SHA256 bf2273718db3cc43ef4a9322d785cf228044364267638645b6d26870dfcbf233
MD5 debdb803c8c5b9a6b86c81ff7f006cf2
BLAKE2b-256 383eb4de94dd5ed95ed7f418371919d73dfffc8bb89095f749450ec610b7e9f8

See more details on using hashes here.

File details

Details for the file traymenu-0.10-py3-none-any.whl.

File metadata

  • Download URL: traymenu-0.10-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for traymenu-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1a47cb19082aa8ab8dee412981c4ee6b0463d576b948b9b5f2bfb8ff4e4c1733
MD5 2dc74dda797d336be08bcbe3a30a6366
BLAKE2b-256 161c25135a858a25b404b18c27495b85f9685e6e36cb8de5bee8bef2f97d23a3

See more details on using hashes here.

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