TrayIcon Class Reference

List of all members.

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

Detailed Description

Tray icon, providing ability to pause/resume, skip and quit and a
tooltip with track information.

Definition at line 5 of file trayicon.py.


Member Function Documentation

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]

Callback to create the context menu.

Definition at line 74 of file trayicon.py.

def _onNext (   self,
  widget 
) [private]

Callback for the 'Next' menu item.

Definition at line 69 of file trayicon.py.

def _onNotify (   self  )  [private]

Private callback. Updates state.

Definition at line 31 of file trayicon.py.

def _onQuit (   self,
  widget 
) [private]

Callback for the 'Quit' menu item

Definition at line 82 of file trayicon.py.

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.


Member Data Documentation

_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.


The documentation for this class was generated from the following file:
Generated on Mon Aug 6 21:24:45 2007 for plai by  doxygen 1.5.1