Back to index

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

List of all members.

Public Member Functions

def __init__
def mouse_move_to
def mouse_click
def geometry
def menu_geometry

Static Public Attributes

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

Private Attributes


Detailed Description

The IndicatorEntry View class.

Definition at line 312 of file

Constructor & Destructor Documentation

def unity.emulators.panel.IndicatorEntry.__init__ (   self,

Definition at line 315 of file

00316     def __init__(self, *args, **kwargs):
00317         super(IndicatorEntry, self).__init__(*args, **kwargs)
00318         self._mouse = Mouse()

Member Function Documentation

Returns a tuple of (x,y,w,h) for the indicator entry.

Definition at line 332 of file

00333     def geometry(self):
00334         """Returns a tuple of (x,y,w,h) for the indicator entry."""
00335         return (self.x, self.y, self.width, self.height)

Here is the call graph for this function:

Returns a tuple of (x,y,w,h) for the opened menu geometry.

Definition at line 337 of file

00338     def menu_geometry(self):
00339         """Returns a tuple of (x,y,w,h) for the opened menu geometry."""
00340         return (self.menu_x, self.menu_y, self.menu_width, self.menu_height)
def unity.emulators.panel.IndicatorEntry.mouse_click (   self,
  button = 1 

Definition at line 324 of file

00325     def mouse_click(self, button=1):
00326         self.mouse_move_to()
00327         sleep(.2)
00328         assert(self.visible)
00330         sleep(.01)

Here is the call graph for this function:

Definition at line 319 of file

00320     def mouse_move_to(self):
00321         target_x = self.x + self.width / 2
00322         target_y = self.y + self.height / 2
00323         self._mouse.move(target_x, target_y, rate=20, time_between_events=0.005)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 317 of file

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: