Back to index

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

List of all members.

Public Member Functions

def __init__
def mouse_move_to
def mouse_click
def geometry

Static Public Attributes

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

Private Attributes


Detailed Description

The Window WindowButton class.

Definition at line 254 of file

Constructor & Destructor Documentation

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

Definition at line 257 of file

00258     def __init__(self, *args, **kwargs):
00259         super(WindowButton, self).__init__(*args, **kwargs)
00260         self._mouse = Mouse()

Member Function Documentation

Returns a tuple of (x,y,w,h) for the window button.

Definition at line 273 of file

00274     def geometry(self):
00275         """Returns a tuple of (x,y,w,h) for the window button."""
00276         return (self.x, self.y, self.width, self.height)

Here is the call graph for this function:

Definition at line 266 of file

00267     def mouse_click(self):
00268         self.mouse_move_to()
00269         sleep(.2)
00271         sleep(.01)

Here is the call graph for this function:

Definition at line 261 of file

00262     def mouse_move_to(self):
00263         target_x = self.x + self.width / 2
00264         target_y = self.y + self.height / 2
00265         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 259 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: