Fun with PWM  0.32
TrayIcon.TrayIcon Class Reference

System tray icon with context menus. More...

Public Member Functions

def __init__ (self, scheduler=None)
 
def initLeftMenu (self)
 
def initRightMenu (self)
 
def update (self)
 
def exit (self, widget)
 
def setExitCallback (self, cb)
 
def showLeftMenu (self, widget)
 
def hideLeftMenu (self, widget, event)
 
def showRightMenu (self, widget, event_button, event_time, menu)
 
def showAbout (self, widget)
 
def displayAppInfo (self)
 
def displayPair (self, label, value)
 

Public Attributes

 scheduler
 
 enabled
 
 widgets
 
 exitCallback
 

Detailed Description

System tray icon with context menus.

Constructor & Destructor Documentation

§ __init__()

def TrayIcon.TrayIcon.__init__ (   self,
  scheduler = None 
)
Initializes the TrayIcon object

Member Function Documentation

§ displayAppInfo()

def TrayIcon.TrayIcon.displayAppInfo (   self)
display app information

@return gtk.VBox

§ displayPair()

def TrayIcon.TrayIcon.displayPair (   self,
  label,
  value 
)
display label and value

@return gtk.HBox

§ exit()

def TrayIcon.TrayIcon.exit (   self,
  widget 
)
run exit callback

§ hideLeftMenu()

def TrayIcon.TrayIcon.hideLeftMenu (   self,
  widget,
  event 
)
hide left menu

§ initLeftMenu()

def TrayIcon.TrayIcon.initLeftMenu (   self)
setup left click menu

§ initRightMenu()

def TrayIcon.TrayIcon.initRightMenu (   self)
setup right click menu

§ setExitCallback()

def TrayIcon.TrayIcon.setExitCallback (   self,
  cb 
)
set the exit callback

§ showAbout()

def TrayIcon.TrayIcon.showAbout (   self,
  widget 
)
show about info

§ showLeftMenu()

def TrayIcon.TrayIcon.showLeftMenu (   self,
  widget 
)
show left menu

§ showRightMenu()

def TrayIcon.TrayIcon.showRightMenu (   self,
  widget,
  event_button,
  event_time,
  menu 
)
show right menu
auto hides due to popup behaviour

§ update()

def TrayIcon.TrayIcon.update (   self)
perform gtk iteration

The documentation for this class was generated from the following file: