taskbridgeapp.gui.viewmodel.trayicon.TaskBridgeTray

class taskbridgeapp.gui.viewmodel.trayicon.TaskBridgeTray(icon, parent, *args, **kwargs)

Bases: QSystemTrayIcon

Handles the system tray icon.

Methods

set_animated_icon

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