Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(416)  |  Call(385)  |  Derive(0)  |  Import(31)

src/l/d/ldtp2-HEAD/ldtpd/table.py   ldtp2(Download)
import pyatspi 
from utils import Utils
from server_exception import LdtpServerException
from keypress_actions import KeyComboAction, KeyPressAction, KeyReleaseAction
 
            itable = obj.queryTable()
        except NotImplementedError:
            raise LdtpServerException('object %s is not a table' % object_name)
 
        return itable.nRows
            tablei = obj.queryTable()
        except NotImplementedError:
            raise LdtpServerException('Object not table type.')
 
        for i in range(0, tablei.nRows):
                    self._grab_focus(cell)
                    return 1
        raise LdtpServerException('Unable to select row: %s' % row_text)
 
    def selectrowpartialmatch(self, window_name, object_name, row_text):
            tablei = obj.queryTable()
        except NotImplementedError:
            raise LdtpServerException('Object not table type.')
 
        for i in range(0, tablei.nRows):

src/l/d/ldtp2-HEAD/ldtpd/value.py   ldtp2(Download)
import pyatspi 
from utils import Utils
from server_exception import LdtpServerException
 
class Value(Utils):
            valuei = obj.queryValue()
        except NotImplementedError:
            raise LdtpServerException('Value cannot be entered into object.')
 
        valuei.currentValue = float(data)
            valuei = obj.queryValue()
        except NotImplementedError:
            raise LdtpServerException('Value cannot be entered into object.')
 
        return valuei.currentValue
            valuei = obj.queryValue()
        except NotImplementedError:
            raise LdtpServerException('Value cannot be entered into object.')
 
        return valuei.minimumValue
            valuei = obj.queryValue()
        except NotImplementedError:
            raise LdtpServerException('Value cannot be entered into object.')
 
        return valuei.minimumIncrement

src/a/t/atomac-1.1.0/atomac/ldtpd/utils.py   atomac(Download)
 
from constants import abbreviated_roles, ldtp_class_type
from server_exception import LdtpServerException
 
importPsUtil = False
        """
        if not importPsUtil:
            raise LdtpServerException('python-psutil package is not installed')
        threading.Thread.__init__(self)
        self._appname = appname
    def _singleclick(self, window_name, object_name):
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        size=self._getobjectsize(object_handle)
    def _grabfocus(self, handle):
        if not handle:
            raise LdtpServerException("Invalid handle")
        if handle.AXRole == "AXWindow":
            # Raise window
    def _getobjectsize(self, handle):
        if not handle:
            raise LdtpServerException("Invalid handle")
        x, y=handle.AXPosition
        width, height=handle.AXSize

src/p/y/pyatom-HEAD/atomac/ldtpd/table.py   pyatom(Download)
from text import Text
from utils import Utils
from server_exception import LdtpServerException
 
class Table(Utils):
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        return len(object_handle.AXRows)
 
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
 
        for cell in object_handle.AXRows:
                    pass
                return 1
        raise LdtpServerException(u"Unable to select row: %s" % row_text)
 
    def multiselect(self, window_name, object_name, row_text_list, partial_match = False):
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
 
        object_handle.activate()

src/a/t/atomac-1.1.0/atomac/ldtpd/combo_box.py   atomac(Download)
 
from utils import Utils
from server_exception import LdtpServerException
 
class ComboBox(Utils):
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        self._grabfocus(object_handle.AXWindow)
        try:
            self.wait(1)
            if not menu_handle.AXEnabled:
                raise LdtpServerException(u"Object %s state disabled" % \
                                          menu_list[-1])
            menu_handle.Press()
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        self._grabfocus(object_handle.AXWindow)
        try:
        self.wait(2)
        if not object_handle.AXChildren:
            raise LdtpServerException(u"Unable to find menu")
        # Get AXMenu
        children=object_handle.AXChildren[0]

src/l/d/ldtp2-HEAD/ldtpd/utils.py   ldtp2(Download)
from constants import abbreviated_roles
from fnmatch import translate as glob_trans
from server_exception import LdtpServerException
 
importStatGrab = False
        """
        if not importStatGrab:
            raise LdtpServerException('python-statgrab package is not installed')
        threading.Thread.__init__(self)
        self._appname = appname
            self._populate_appmap(gui, _parent, gui.getIndexInParent())
        except LookupError:
            raise LdtpServerException("Unable to find window/object")
        self._appmap[window_name] = self.ldtpized_list
        return self.ldtpized_list
            # Fixes bug #590111 - It would be nice if doesmenuexist could
            # search for strict hierarchies
            raise LdtpServerException("Invalid menu hierarchy input")
        if not re.search('^mnu', _menu_hierarchy[0], re.M | re.U):
            # Add mnu to the first object, if it doesn't exist
            if not _flag:
                raise LdtpServerException(
                    'Menu item "%s" doesn\'t exist in hierarchy' % _menu)
        return obj
 

src/p/y/pyatom-HEAD/atomac/ldtpd/combo_box.py   pyatom(Download)
 
from utils import Utils
from server_exception import LdtpServerException
 
class ComboBox(Utils):
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        self._grabfocus(object_handle.AXWindow)
        try:
            self.wait(1)
            if not menu_handle.AXEnabled:
                raise LdtpServerException(u"Object %s state disabled" % \
                                          menu_list[-1])
            menu_handle.Press()
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        self._grabfocus(object_handle.AXWindow)
        try:
        self.wait(2)
        if not object_handle.AXChildren:
            raise LdtpServerException(u"Unable to find menu")
        # Get AXMenu
        children=object_handle.AXChildren[0]

src/a/t/atomac-1.1.0/atomac/ldtpd/value.py   atomac(Download)
 
from utils import Utils
from server_exception import LdtpServerException
 
class Value(Utils):
      """
      if not self.verifyscrollbarvertical(window_name, object_name):
         raise LdtpServerException('Object not vertical scrollbar')
      return self.setmin(window_name, object_name)
 
      """
      if not self.verifyscrollbarvertical(window_name, object_name):
         raise LdtpServerException('Object not vertical scrollbar')
      return self.setmax(window_name, object_name)
 
      """
      if not self.verifyscrollbarhorizontal(window_name, object_name):
         raise LdtpServerException('Object not horizontal scrollbar')
      return self.setmin(window_name, object_name)
 
      """
      if not self.verifyscrollbarhorizontal(window_name, object_name):
         raise LdtpServerException('Object not horizontal scrollbar')
      return self.setmax(window_name, object_name)
 

src/p/y/pyatom-HEAD/atomac/ldtpd/value.py   pyatom(Download)
 
from utils import Utils
from server_exception import LdtpServerException
 
class Value(Utils):
      """
      if not self.verifyscrollbarvertical(window_name, object_name):
         raise LdtpServerException('Object not vertical scrollbar')
      return self.setmin(window_name, object_name)
 
      """
      if not self.verifyscrollbarvertical(window_name, object_name):
         raise LdtpServerException('Object not vertical scrollbar')
      return self.setmax(window_name, object_name)
 
      """
      if not self.verifyscrollbarhorizontal(window_name, object_name):
         raise LdtpServerException('Object not horizontal scrollbar')
      return self.setmin(window_name, object_name)
 
      """
      if not self.verifyscrollbarhorizontal(window_name, object_name):
         raise LdtpServerException('Object not horizontal scrollbar')
      return self.setmax(window_name, object_name)
 

src/p/y/pyatom-HEAD/atomac/ldtpd/utils.py   pyatom(Download)
 
from constants import abbreviated_roles, ldtp_class_type
from server_exception import LdtpServerException
 
importPsUtil = False
        """
        if not importPsUtil:
            raise LdtpServerException('python-psutil package is not installed')
        threading.Thread.__init__(self)
        self._appname = appname
    def _singleclick(self, window_name, object_name):
        object_handle=self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        size=self._getobjectsize(object_handle)
    def _grabfocus(self, handle):
        if not handle:
            raise LdtpServerException("Invalid handle")
        if handle.AXRole == "AXWindow":
            # Raise window
    def _getobjectsize(self, handle):
        if not handle:
            raise LdtpServerException("Invalid handle")
        x, y=handle.AXPosition
        width, height=handle.AXSize

  1 | 2 | 3 | 4  Next