commotion_client.GUI.system_tray.TrayIcon Class Reference
Inheritance diagram for commotion_client.GUI.system_tray.TrayIcon:

Public Member Functions

def __init__
 
def tray_iconActivated
 

Public Attributes

 log
 
 exit
 
 tray_icon
 

Static Public Attributes

tuple show_main = QtCore.pyqtSignal()
 

Detailed Description

The Commotion tray icon. This icon object is the only object that can close the entire application.

Member Function Documentation

def commotion_client.GUI.system_tray.TrayIcon.tray_iconActivated (   self,
  reason 
)
Defines the tray icon behavior on different types of interactions.
30 
31  def tray_iconActivated(self, reason):
32  """
33  Defines the tray icon behavior on different types of interactions.
34  """
35  if reason == QtGui.QSystemTrayIcon.Context:
36  self.tray_icon.contextMenu().show()
37  elif reason == QtGui.QSystemTrayIcon.Trigger:
38  self.show_main.emit()
def tray_iconActivated
Definition: system_tray.py:30

The documentation for this class was generated from the following file:
  • commotion_client/GUI/system_tray.py