Ejemplo n.º 1
0
 def __init__(self, spec=None, search=None, static=False):
     DynStrActionBase.__init__(
         self, spec=str(spec), static=(spec is None))
     if not search:
         self.search = 'any'
     else:
         self.search = str(search)
Ejemplo n.º 2
0
 def __init__(self, spec, static=False, space=True,
              title=False, upper=False, lower=False, camel=False):
     DynStrActionBase.__init__(self, spec=str(spec), static=static)
     self.space = space
     self.title = title
     self.upper = upper
     self.lower = lower
     self.camel = camel
Ejemplo n.º 3
0
    def __init__(self, spec=None, static=False):
        """
            Arguments:
             - *spec* (*str*) -- the mouse actions to execute
             - *static* (boolean) --
               if *True*, do not dynamically interpret *spec*
               when executing this action

        """
        DynStrActionBase.__init__(self, spec=spec, static=static)
Ejemplo n.º 4
0
 def __init__(self, contents, format=None, paste=None, static=False):
     if not format: format = self._default_format
     if not paste: paste = self._default_paste
     if isinstance(contents, basestring):
         spec = contents
         self.contents = None
     else:
         spec = ""
         self.contents = contents
     self.format = format
     self.paste = paste
     DynStrActionBase.__init__(self, spec, static=static)
Ejemplo n.º 5
0
 def __init__(self, contents, format=None, paste=None, static=False):
     if not format: format = self._default_format
     if not paste: paste = self._default_paste
     if isinstance(contents, basestring):
         spec = contents
         self.contents = None
     else:
         spec = ""
         self.contents = contents
     self.format = format
     self.paste = paste
     DynStrActionBase.__init__(self, spec, static=static)
Ejemplo n.º 6
0
 def __init__(self, contents, format=None, paste=None, static=False):
     if not format:
         format = self._default_format
     if paste is None:
         # Pass use_hardware=True to guarantee that Ctrl+V is always
         # pressed, regardless of the keyboard layout.
         paste = Key(self._default_paste_spec, use_hardware=True)
     if isinstance(contents, string_types):
         spec = contents
         self.contents = None
     else:
         spec = ""
         self.contents = contents
     self.format = format
     self.paste = paste
     DynStrActionBase.__init__(self, spec, static=static)
Ejemplo n.º 7
0
 def __init__(self, spec=None, static=False, pause=_pause_default, autofmt=False):
     self._pause = pause
     self._autofmt = autofmt
     DynStrActionBase.__init__(self, spec=spec, static=static)
Ejemplo n.º 8
0
 def __init__(self, spec, static = False, forget = False):
     DynStrActionBase.__init__(self, spec = str(spec), static = static)
     self.search = 'id'
     self.forget =  forget
Ejemplo n.º 9
0
 def __init__(self, spec=None, static=False, pause=_pause_default,
              autofmt=False):
     self._pause = pause
     self._autofmt = autofmt
     DynStrActionBase.__init__(self, spec=spec, static=static)