Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a tkinter.systray module for system tray icons and desktop notifications #153259

Description

@serhiy-storchaka

Feature or enhancement

Tk 8.7/9.0 added the tk systray and tk sysnotify commands, which display a system tray (or taskbar) icon and send desktop notifications. tkinter currently has no interface to them.

I propose adding a tkinter.systray module with:

  • a SysTrayIcon class wrapping tk systray (one icon per interpreter, with image, text, and button1/button3 click callbacks);
  • a notify() function and a SysTrayIcon.notify() method wrapping tk sysnotify.

This complements the other native interfaces in tkinter (tkinter.colorchooser, tkinter.filedialog, tkinter.fontchooser).

Tk manual: https://www.tcl-lang.org/man/tcl9.0/TkCmd/systray.html

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-tkintertype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions