Back to index

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

List of all members.

Public Member Functions

def get_ordered_entries
def get_indicator_by_name_hint
def geometry

Static Public Attributes

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

Detailed Description

The Indicators View class.

Definition at line 287 of file

Member Function Documentation

Returns a tuple of (x,y,w,h) for the indicators area.

Definition at line 307 of file

00308     def geometry(self):
00309         """Returns a tuple of (x,y,w,h) for the indicators area."""
00310         return (self.x, self.y, self.width, self.height)

Here is the call graph for this function:

Return the IndicatorEntry with the name_hint

Definition at line 300 of file

00301     def get_indicator_by_name_hint(self, name_hint):
00302         """Return the IndicatorEntry with the name_hint"""
00303         indicators = self.get_children_by_type(IndicatorEntry, name_hint=name_hint)
00304         assert(len(indicators) == 1)
00305         return indicators[0]

def unity.emulators.panel.Indicators.get_ordered_entries (   self,
  visible_only = True 
Return a list of indicators, ordered by their priority

Definition at line 290 of file

00291     def get_ordered_entries(self, visible_only=True):
00292         """Return a list of indicators, ordered by their priority"""
00294         if visible_only:
00295             entries = self.get_children_by_type(IndicatorEntry, visible=True)
00296         else:
00297             entries = self.get_children_by_type(IndicatorEntry)
00299         return sorted(entries, key=lambda entry: entry.priority)

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: