Back to index

unity  6.0.0
Public Member Functions | Static Public Attributes
unity.emulators.panel.PanelController Class Reference
Inheritance diagram for unity.emulators.panel.PanelController:
Inheritance graph
Collaboration diagram for unity.emulators.panel.PanelController:
Collaboration graph

List of all members.

Public Member Functions

def get_panel_for_monitor
def get_active_panel
def get_active_indicator
def get_panels

Static Public Attributes

string DBUS_SERVICE = "com.canonical.Unity"
string DBUS_OBJECT = "/com/canonical/Unity/Debug"

Detailed Description

The PanelController class.

Definition at line 22 of file

Member Function Documentation

Definition at line 37 of file

00038     def get_active_indicator(self):
00039         for panel in self.get_panels:
00040             active = panel.get_active_indicator()
00041             if active:
00042                 return active
00044         return None

Here is the call graph for this function:

Here is the caller graph for this function:

Return the active panel, or None.

Definition at line 31 of file

00032     def get_active_panel(self):
00033         """Return the active panel, or None."""
00034         panels = self.get_children_by_type(UnityPanel, active=True)
00035         assert(len(panels) == 1)
00036         return panels[0]

Return an instance of panel for the specified monitor, or None.

Definition at line 25 of file

00026     def get_panel_for_monitor(self, monitor_num):
00027         """Return an instance of panel for the specified monitor, or None."""
00028         panels = self.get_children_by_type(UnityPanel, monitor=monitor_num)
00029         assert(len(panels) == 1)
00030         return panels[0]

Return the available panels, or None.

Definition at line 46 of file

00047     def get_panels(self):
00048         """Return the available panels, or None."""
00049         return self.get_children_by_type(UnityPanel)

Here is the caller graph for this function:

Member Data Documentation

string unity.emulators.UnityIntrospectionObject.DBUS_OBJECT = "/com/canonical/Unity/Debug" [static, inherited]

Definition at line 19 of file

string unity.emulators.UnityIntrospectionObject.DBUS_SERVICE = "com.canonical.Unity" [static, inherited]

Definition at line 18 of file

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