Back to index

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

List of all members.

Public Member Functions

def get_entries
def get_menu_by_label
def geometry

Static Public Attributes

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

Detailed Description

The Menu View class.

Definition at line 195 of file

Member Function Documentation

Returns a tuple of (x,y,w,h) for the current menu view.

Definition at line 208 of file

00209     def geometry(self):
00210         """Returns a tuple of (x,y,w,h) for the current menu view."""
00211         return (self.x, self.y, self.width, self.height)

Here is the call graph for this function:

Return a list of menu entries

Definition at line 198 of file

00199     def get_entries(self):
00200         """Return a list of menu entries"""
00201         return self.get_children_by_type(IndicatorEntry)

def unity.emulators.panel.MenuView.get_menu_by_label (   self,
Return the first indicator entry found with the given label

Definition at line 202 of file

00203     def get_menu_by_label(self, entry_label):
00204         """Return the first indicator entry found with the given label"""
00205         indicators = self.get_children_by_type(IndicatorEntry, label=entry_label)
00206         return indicators[0] if indicators else None

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: