Tk Source Code

View Ticket
Login
Ticket UUID: 6bb7fd9ea99aed72613674dee0ae9cd787b89642
Title: Generalise tk systray for multi-display systems
Type: Bug Version: Tk 8.7
Submitter: kjnash Created on: 2023-08-19 03:44:40
Subsystem: (unused) Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2023-08-19 03:44:40
Resolution: None Closed By: nobody
    Closed on:
Description:
The "tk systray" command manages a system tray icon on the display of the root window ".".

The command could be generalised so that on a multi-display system it manages a separate system tray on each display, by giving each subcommand an option -displayof.  The value of the option defaults to ".".

The option does not have the same status as the other systray options, and is really an identifier: e.g.

% tk systray configure -displayof .foo
-image ::tk::icons::information -text {} -button1 {} -button3 {}

I have listed this as a bug, not a RFE because Tk has aimed for full compatibility with multiple monitors since Tk 4.0.