-
Notifications
You must be signed in to change notification settings - Fork 2
Tray
themixray edited this page Nov 8, 2021
·
5 revisions
Initialization a tray
tray(tooltip, iconpath)
- tooltip Tray tooltip.
- iconpath Tray icon path.
Returns tray
Start tray loop
tray.start(thread=True)
- thread Start in a new thread.
Returns None
Stop tray loop
tray.stop()
Returns None
Set tray icon
tray.setIcon(path)
- path Icon path.
Returns None
Set tray tooltip
tray.setTooltip(tooltip)
- tooltip Tray tooltip.
Returns None
Add command menu
tray.addCommand(text, func=None)
- text Command label.
- func Command func.
Returns None
Add separator menu
tray.addSeparator()
Returns None
Callback on left mouse button
tray.onLeftMouseButton
Returns function