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

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

 _mouse

Detailed Description

The IndicatorEntry View class.

Definition at line 312 of file panel.py.


Constructor & Destructor Documentation

def unity.emulators.panel.IndicatorEntry.__init__ (   self,
  args,
  kwargs 
)

Definition at line 315 of file panel.py.

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

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

00337 
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)
00341 
def unity.emulators.panel.IndicatorEntry.mouse_click (   self,
  button = 1 
)

Definition at line 324 of file panel.py.

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

Here is the call graph for this function:

Definition at line 319 of file panel.py.

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

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: