Public Member Functions | |
| def | __init__ |
Private Member Functions | |
| def | _onActivate |
| def | _onMenu |
| def | _onNext |
| def | _onNotify |
| def | _onQuit |
| def | _Update_icon |
| def | _UpdateTooltip |
Private Attributes | |
| _icon | |
| _player | |
| _traymenu | |
| _traypause | |
| _trayplay | |
Tray icon, providing ability to pause/resume, skip and quit and a tooltip with track information.
Definition at line 5 of file trayicon.py.
| def __init__ | ( | self, | ||
| player | ||||
| ) |
Pass me the player object so I can communicate, and the glade object with my menu in.
Definition at line 7 of file trayicon.py.
| def _onActivate | ( | self, | ||
| widget | ||||
| ) | [private] |
Callback to handle direct clicks, either pauses or resumes the current track.
Definition at line 60 of file trayicon.py.
| def _onMenu | ( | self, | ||
| widget, | ||||
| button, | ||||
| time | ||||
| ) | [private] |
| def _onNext | ( | self, | ||
| widget | ||||
| ) | [private] |
| def _onNotify | ( | self | ) | [private] |
| def _onQuit | ( | self, | ||
| widget | ||||
| ) | [private] |
| def _Update_icon | ( | self | ) | [private] |
Private. Updates _icon depending whether the player is currently playing or paused.
Definition at line 37 of file trayicon.py.
| def _UpdateTooltip | ( | self | ) | [private] |
Private. Updates tooltip text to reflect the current track.
Definition at line 46 of file trayicon.py.
_icon [private] |
Definition at line 16 of file trayicon.py.
_player [private] |
Definition at line 15 of file trayicon.py.
_traymenu [private] |
Definition at line 13 of file trayicon.py.
_traypause [private] |
Definition at line 11 of file trayicon.py.
_trayplay [private] |
Definition at line 12 of file trayicon.py.
1.5.1