Skip to content
themixray edited this page Nov 8, 2021 · 5 revisions

Init

Initialization a tray

tray(tooltip, iconpath)
  • tooltip Tray tooltip.
  • iconpath Tray icon path.

Returns tray

Start

Start tray loop

tray.start(thread=True)
  • thread Start in a new thread.

Returns None

Stop

Stop tray loop

tray.stop()

Returns None

Set icon

Set tray icon

tray.setIcon(path)
  • path Icon path.

Returns None

Set tooltip

Set tray tooltip

tray.setTooltip(tooltip)
  • tooltip Tray tooltip.

Returns None

Add command

Add command menu

tray.addCommand(text, func=None)
  • text Command label.
  • func Command func.

Returns None

Add separator

Add separator menu

tray.addSeparator()

Returns None

Callback on LMBC

Callback on left mouse button

tray.onLeftMouseButton

Returns function

Clone this wiki locally