1
#! /usr/bin/env python3
2
# -*- coding: utf-8 -*-
4
# Copyright (C) 2013 Canonical Ltd.
5
# Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7
# This program is free software: you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License version 3, as published
9
# by the Free Software Foundation.
11
from autopilot.introspection import CustomEmulatorBase
13
class EmulatorBase(CustomEmulatorBase):
14
"""A base class for all emulators within this test suite."""
18
(x, y, w, h) = self.globalRect
19
return (x + w / 2, y + h / 2)