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
[legend]
Collaboration diagram for unity.emulators.panel.MenuView:
Collaboration graph
[legend]

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 panel.py.


Member Function Documentation

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

Definition at line 208 of file panel.py.

00208 
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)
00212 

Here is the call graph for this function:

Return a list of menu entries

Definition at line 198 of file panel.py.

00198 
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,
  entry_label 
)
Return the first indicator entry found with the given label

Definition at line 202 of file panel.py.

00202 
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 __init__.py.

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

Definition at line 18 of file __init__.py.


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