taskbridgeapp.gui.viewmodel.trayicon.TaskBridgeTray
- class taskbridgeapp.gui.viewmodel.trayicon.TaskBridgeTray(icon, parent, *args, **kwargs)
Bases:
QSystemTrayIconHandles the system tray icon.
Methods
Sets an animated icon using
QMovie.Attributes
__display_name____name____orig_bases____sphinx_decorator_args____sphinx_mock__- __call__(*args, **kwargs)
Call self as a function.
- Return type:
Any
- __init__(icon, parent, *args, **kwargs)
Initialises the system tray icon.
- Parameters:
icon (
QIcon) – the icon to be displayed.parent (
TaskBridgeApp) – the GUI controller.
- _update_animated_icon()
Called on every frame of an animated GIF to update the displayed icon.
- Return type:
None
- set_animated_icon(path)
Sets an animated icon using
QMovie.- Parameters:
path (
str) – path string to an animated GIF.- Return type:
None